I’m trying to provide a last-resort option to end a process that is not finishing normally using a ‘force-close’ button on my UI that will execute java code to end the process.
One possible cause of the stoppage is a message task that never receives it’s message. I can’t use a timer event so I tried to put a boundary cancel event on the message task. However, when I try to fire the abort signal (using runtimeService.signalEventReceived(“abort”)), there are no subscribers and the catching event is never triggered.
There may be other reasons for the stoppage that I have not found yet. It is a vary large process with many sub-process and Service Tasks. So I would prefer a solution that would be implemented at the top level process that would trigger the termination of any running process.
What is the best practice for this?