curl --request POST \
--url http://{host}:{port}/{contextPath}/history/process-instance/set-removal-time \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"absoluteRemovalTime": "2019-05-05T11:56:24.725+0200",
"hierarchical": true,
"historicProcessInstanceQuery": {
"unfinished": true
},
"historicProcessInstanceIds": [
"b4d2ad98-7240-11e9-98b7-be5e0f7575b7",
"b4d2ad94-7240-11e9-98b7-be5e0f7575b7"
]
}
'{
"id": "120b568d-724a-11e9-98b7-be5e0f7575b7",
"type": "process-set-removal-time",
"totalJobs": 12,
"batchJobsPerSeed": 100,
"invocationsPerBatchJob": 1,
"seedJobDefinitionId": "120b5690-724a-11e9-98b7-be5e0f7575b7",
"monitorJobDefinitionId": "120b568f-724a-11e9-98b7-be5e0f7575b7",
"batchJobDefinitionId": "120b568e-724a-11e9-98b7-be5e0f7575b7",
"tenantId": "accounting",
"suspended": false,
"createUserId": null
}设置异步删除时间(POST)
Sets the removal time to multiple historic process instances asynchronously (batch).
At least historicProcessInstanceIds or historicProcessInstanceQuery has to be provided.
If both are provided, all instances matching query criterion and instances from the list will be updated with a removal time.
curl --request POST \
--url http://{host}:{port}/{contextPath}/history/process-instance/set-removal-time \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"absoluteRemovalTime": "2019-05-05T11:56:24.725+0200",
"hierarchical": true,
"historicProcessInstanceQuery": {
"unfinished": true
},
"historicProcessInstanceIds": [
"b4d2ad98-7240-11e9-98b7-be5e0f7575b7",
"b4d2ad94-7240-11e9-98b7-be5e0f7575b7"
]
}
'{
"id": "120b568d-724a-11e9-98b7-be5e0f7575b7",
"type": "process-set-removal-time",
"totalJobs": 12,
"batchJobsPerSeed": 100,
"invocationsPerBatchJob": 1,
"seedJobDefinitionId": "120b5690-724a-11e9-98b7-be5e0f7575b7",
"monitorJobDefinitionId": "120b568f-724a-11e9-98b7-be5e0f7575b7",
"batchJobDefinitionId": "120b568e-724a-11e9-98b7-be5e0f7575b7",
"tenantId": "accounting",
"suspended": false,
"createUserId": null
}Authorizations
Body
Handles removal time updates in chunks, taking into account the defined size in
removalTimeUpdateChunkSize in the process engine configuration. The size of the
chunks can also be overridden per call with the updateChunkSize parameter.
Enabling this option can lead to multiple executions of the resulting jobs, preventing
the database transaction from timing out by limiting the number of rows to update.
Value may only be true, as false is the default behavior.
Defines the size of the chunks in which removal time updates are processed.
The value must be a positive integer between 1 and 500. This only has an
effect if updateInChunks is set to true. If undefined, the operation uses the
removalTimeUpdateChunkSize defined in the process engine configuration.
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/)