[jboss-user] [jBPM] - jBPM 4.4 How do I force a process instance to end

Kevin Moodley do-not-reply at jboss.com
Thu Jul 29 18:45:08 EDT 2010


Kevin Moodley [http://community.jboss.org/people/kevinmoodley] replied to the discussion

"jBPM 4.4 How do I force a process instance to end"

To view the discussion, visit: http://community.jboss.org/message/555086#555086

--------------------------------------------------------------
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 :

processEngine.getExecutionService().endProcessInstance(pid,ProcessInstance.STATE_ENDED);

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
[http://community.jboss.org/message/555086#555086]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100729/2173769b/attachment.html 


More information about the jboss-user mailing list