JBoss Community

jBPM 4.4 How do I force a process instance to end

reply from Kevin Moodley in jBPM - View the full discussion

I am basically using a modified version of your concurrency example (attached) but I make one of the forks take an ERROR transition and then try to force the process instance to end via :




This works fine unless I have an <on event="end"> on the jPDL. In this case an event is fired, after the process ends,   to handle the on end event. But this results in a null pointer exception because there are no more activities or transitions at this point. UserCodeReference.getProcessDefinition returns null.


My basic problem is : How do I end a Process Instance if the join is not reached due to an error transition from one of the nodes feeding the join.

Reply to this message by going to Community

Start a new discussion in jBPM at Community