curl --request POST \
--url http://{host}:{port}/{contextPath}/process-definition/{id}/restart \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"instructions": [
{
"type": "startAfterActivity",
"activityId": "aUserTask"
}
],
"processInstanceIds": [
"aProcessInstance",
"anotherProcessInstance"
],
"initialVariables": true,
"skipCustomListeners": true,
"withoutBusinessKey": true
}
'{
"type": "<string>",
"message": "<string>",
"code": 123
}{
"type": "<string>",
"message": "<string>",
"code": 123
}流程定义
重新启动流程实例
Restarts process instances that were canceled or terminated synchronously. Can also restart completed process instances. It will create a new instance using the original instance information. To execute the restart asynchronously, use the Restart Process Instance Async method.
For more information about the difference between synchronous and asynchronous execution, please refer to the related section of the User Guide.
POST
/
process-definition
/
{id}
/
restart
curl --request POST \
--url http://{host}:{port}/{contextPath}/process-definition/{id}/restart \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"instructions": [
{
"type": "startAfterActivity",
"activityId": "aUserTask"
}
],
"processInstanceIds": [
"aProcessInstance",
"anotherProcessInstance"
],
"initialVariables": true,
"skipCustomListeners": true,
"withoutBusinessKey": true
}
'{
"type": "<string>",
"message": "<string>",
"code": 123
}{
"type": "<string>",
"message": "<string>",
"code": 123
}Authorizations
Path Parameters
Body
application/json
Skip execution of input/output variable mappings for activities that are started as part of this request.
Response
Request successful.