[jboss-user] [jBPM] - Re: Propagation of ABORT state in Sub process to parent.

Maciej Swiderski do-not-reply at jboss.com
Thu Nov 3 04:25:17 EDT 2011

Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Propagation of ABORT state in Sub process to parent."

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

HI Joao,

first of all thanks for giving a lot of details of your case, this certainly helps to understand what you do and what are the goals to achieve.

I would like to suggest to use throwing/catching events for your case. So when your sub process goes to aborted state it should trigger an error end event which will thrown an error and then use boundary (attached to your sub process) error catching event that will catch this error and execute alternative flow. It would look like this (very simplified case to illustrate usage of events):
 http://community.jboss.org/servlet/JiveServlet/showImage/2-634757-17264/process-ex.jpg  http://community.jboss.org/servlet/JiveServlet/downloadImage/2-634757-17264/450-332/process-ex.jpg 
If you make the boundary event interrupting (which is by default) it should cancel the regular flow and move though the sequence flow defined for boundary event. So that should suit your case, I think.


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111103/fd6e7a5f/attachment-0001.html 

More information about the jboss-user mailing list