curl --request PUT \
--url http://{host}:{port}/{contextPath}/process-instance/suspended \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"processDefinitionId": "aProcDefId",
"suspended": true
}
'{
"type": "<string>",
"message": "<string>",
"code": 123
}流程实例
在组中激活/挂起
Activates or suspends process instances by providing certain criteria:
Activate/Suspend Process Instance By Process Definition Id
suspendprocessDefinitionId
Activate/Suspend Process Instance By Process Definition Key
suspendprocessDefinitionKeyprocessDefinitionTenantIdprocessDefinitionWithoutTenantId
Activate/Suspend Process Instance In Group
suspendprocessInstanceIdsprocessInstanceQueryhistoricProcessInstanceQuery
PUT
/
process-instance
/
suspended
curl --request PUT \
--url http://{host}:{port}/{contextPath}/process-instance/suspended \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"processDefinitionId": "aProcDefId",
"suspended": true
}
'{
"type": "<string>",
"message": "<string>",
"code": 123
}Authorizations
Body
application/json
Only activate or suspend process instances of a process definition which belongs to no tenant. Value may only be true, as false is the default behavior.
Note: This parameter can be used only with combination of suspended, processDefinitionKey, and processDefinitionTenantId.
A Boolean value which indicates whether to activate or suspend a given instance (e.g. process instance, job, job definition, or batch). When the value is set to true, the given instance will be suspended and when the value is set to false, the given instance will be activated.
Response
Request successful.