Hi,
Could someone tell me the Java API to cancel a process instance at any point without removing any history in community version?
Thanks,
Sowmiya
Hi,
Could someone tell me the Java API to cancel a process instance at any point without removing any history in community version?
Thanks,
Sowmiya
Hi @Sowmiya you can suspend/activate the process instance using RuntimeService API.
To suspend the active process instance:
execution.getProcessEngineServices().getRuntimeService().suspendProcessInstanceById("ProcessInstanceId");
To activate the suspended process instance:
execution.getProcessEngineServices().getRuntimeService().activateProcessInstanceById("ProcessInstanceId");