Skip to main content
POST
/
migration
/
execute
Execute Migration Plan
curl --request POST \
  --url http://{host}:{port}/{contextPath}/migration/execute \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "migrationPlan": {
    "sourceProcessDefinitionId": "aProcessDefinitionId1",
    "targetProcessDefinitionId": "aProcessDefinitionId2",
    "instructions": [
      {
        "sourceActivityIds": [
          "aUserTask"
        ],
        "targetActivityIds": [
          "aUserTask"
        ]
      },
      {
        "sourceActivityIds": [
          "anEvent"
        ],
        "targetActivityIds": [
          "anotherEvent"
        ],
        "updateEventTrigger": true
      }
    ],
    "variables": {
      "foo": {
        "type": "Object",
        "value": "[5,9]",
        "valueInfo": {
          "objectTypeName": "java.util.ArrayList",
          "serializationDataFormat": "application/json"
        }
      }
    }
  },
  "processInstanceIds": [
    "aProcessInstance",
    "anotherProcessInstance"
  ],
  "processInstanceQuery": {
    "processDefinitionId": "aProcessDefinitionId1"
  },
  "skipCustomListeners": true
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
migrationPlan
object
processInstanceIds
string[] | null

A list of process instance ids to migrate.

processInstanceQuery
object

A process instance query which defines a group of process instances

skipCustomListeners
boolean | null

A boolean value to control whether execution listeners should be invoked during migration.

skipIoMappings
boolean | null

A boolean value to control whether input/output mappings should be executed during migration.

Response

Request successful. This method returns no content.