After I cancelled a process instance, it stays in "Aborting" status for a long time. Why? I want to delete this instance so that I can make its process definition back to "Draft" mode. How long should I wait before it is in "Aborted" status?
When you cancel a process instance on UI, the Application Service broadcasts an "Abort Process Instance" to the cluster and changes the status of the process instance to "Aborting". Upon receiving the message, a Process Engine will check whether the process instance is being loaded by this engine. If not, it ignores the message; otherwise, it will change the status of the process instance to "Aborted" and unload the process instance from the cache.
So after the process instance is cancelled on UI, if it stays in "Aborting" status for a long time, it can be one of the following: