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:
{
"instructions": [
{
"type": "startAfterActivity",
"activityId": "aUserTask"
],
"initialVariables" : true,
"skipCustomListeners" : true,
"withoutBusinessKey" : true,
"historicProcessInstanceQuery": {
"processDefinitionId": "aProcessDefinitionId",
"processInstanceBusinessKey" : "businessKey"