curl --request POST \
--url http://{host}:{port}/{contextPath}/process-definition/{id}/restart-async \
--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
}
'{
"id": "aBatchId",
"type": "aBatchType",
"totalJobs": 10,
"jobsCreated": 10,
"batchJobsPerSeed": 100,
"invocationsPerBatchJob": 1,
"seedJobDefinitionId": "aSeedJobDefinitionId",
"monitorJobDefinitionId": "aMonitorJobDefinitionId",
"batchJobDefinitionId": "aBatchJobDefinitionId",
"tenantId": "aTenantId",
"suspended": false,
"createUserId": "demo"
}异步重新启动进程实例
Restarts process instances that were canceled or terminated asynchronously. 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 method.
For more information about the difference between synchronous and asynchronous execution, please refer to the related section of the User Guide.
curl --request POST \
--url http://{host}:{port}/{contextPath}/process-definition/{id}/restart-async \
--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
}
'{
"id": "aBatchId",
"type": "aBatchType",
"totalJobs": 10,
"jobsCreated": 10,
"batchJobsPerSeed": 100,
"invocationsPerBatchJob": 1,
"seedJobDefinitionId": "aSeedJobDefinitionId",
"monitorJobDefinitionId": "aMonitorJobDefinitionId",
"batchJobDefinitionId": "aBatchJobDefinitionId",
"tenantId": "aTenantId",
"suspended": false,
"createUserId": "demo"
}Authorizations
Path Parameters
Body
Skip execution of input/output variable mappings for activities that are started as part of this request.
Response
Request successful.
The type of the batch. See the User Guide for more information about batch types.
The time the batch was started. Default format yyyy-MM-dd'T'HH:mm:ss.SSSZ. For further information,
please see the [documentation] (https://docs.camunda.org/manual/7.22/reference/rest/overview/date-format/)
The time the batch execution was started, i.e., at least one batch job has been executed. Default
format yyyy-MM-dd'T'HH:mm:ss.SSSZ. For further information, please see the [documentation]
(https://docs.camunda.org/manual/7.22/reference/rest/overview/date-format/)