I have a process deployed over AEM Forms with multiple instances of that process running. When terminating a process instance, the process instance is shown as terminated but it continues to work as per the process workflow for some time before the process gets terminated. The same thing happens when suspending a process Instance, the status of the process instance is marked as SUSPENDED but the activities defined in the workflow of the process keeps on executing for quite a while. Is there any way to instantly kill/terminate the process instance along with the activities being performed within the process?
When a process is marked for termination or suspension, the process would terminate or suspend after the the step which is being currently being executed. This is designed as such so as not to cause any inconsistent state in the system and better handling in a cluster setup.