This content has been marked as final.
Show 2 replies
-
1. Re: How to end a ProcessInstance from an external process
jim.mcmaster Apr 20, 2006 5:10 PM (in response to jim.mcmaster)Is there really no one on this forum who can answer my question?
Does a processInstance.end() cancel the process immediately? Or does it take effect when the currently processing node ends?
This makes a big difference to me, because I have nodes with actions that can run more than an hour. -
2. Re: How to end a ProcessInstance from an external process
kukeltje Apr 20, 2006 5:55 PM (in response to jim.mcmaster)There is a process-end event which (afaik) can be put on the process-definition itself. I would assume (but then again, i am not the expert) that that event would be called when the process ends. Even if it was via the processInstance.end() method. On that event you could call your own action.
I'd like to stress some thing though. This project is open source. If you look at the source of ProcessInstance.end() you'd see the following:processDefinition.fireEvent(Event.EVENTTYPE_PROCESS_END, executionContext);
et voila.... give it a try and you would not have had to wait 2 days for an answer.
Ronald