For more information about the difference between synchronous andasynchronous execution, please refer to the relatedsection of the user guide.

Method

POST

Parameters

A JSON object with the following properties:


|type|Mandatory. One of the following values: startBeforeActivity, startAfterActivity, startTransition. A startBeforeActivity instruction requests to enter a given activity. A instruction requests to execute the single outgoing sequence flow of a given activity. A startTransition instruction requests to execute a specific sequence flow.|activityId|Can be used with instructions of types startBeforeActivity and startAfterActivity. Specifies the activity the instruction targets.|transitionId|Can be used with instructions of types startTransition. Specifies the sequence flow to start.
|type|Mandatory. One of the following values: startBeforeActivity, startAfterActivity, startTransition. A startBeforeActivity instruction requests to enter a given activity. A startAfterActivity instruction requests to execute the single outgoing sequence flow of a given activity. A startTransition instruction requests to execute a specific sequence flow.
|activityId|Can be used with instructions of types startBeforeActivity and startAfterActivity. Specifies the activity the instruction targets.
|transitionId|Can be used with instructions of types startTransition. Specifies the sequence flow to start.

Result

This method returns no content.

Response codes

Example

POST

Status 204. No content.

POST /process-definition/aProcessDefinitionId/restart

Request Body:

  1. {
  2. "instructions": [
  3. {
  4. "type": "startAfterActivity",
  5. "activityId": "aUserTask"
  6. ],
  7. "initialVariables" : true,
  8. "skipCustomListeners" : true,
  9. "withoutBusinessKey" : true,
  10. "historicProcessInstanceQuery": {
  11. "processDefinitionId": "aProcessDefinitionId",
  12. "processInstanceBusinessKey" : "businessKey"