Can someone please point me in the right direction. I have a case where I have a JBPM workflow that I am using to control the flow through a series of JBossESB services. Everything works as I would like until I try to cancel one of those workflows using a CancelProcessInstanceCommand. When that happens, the workflow is canceled correctly but the workflow's active node's action is allowed to run to completion. Since some of my service endpoints might take a significant amount of time to run, an hour or more, I would really like to somehow notify the running endpoint that it was canceled and allow it to stop and do some clean up. Is there any way to do this?
create an event-handler on the process-end event (or cancel, please check that). From the action in the event-handler, you can do anything you can do in Java. You could e.g. create a token, put that in a totally independent esb node and have that node do something.