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

dme do-not-reply at jboss.com
Thu Nov 3 17:46:34 EDT 2011

dme [http://community.jboss.org/people/dme] created the discussion

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

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

Hi Maciej,

The exampe shown here uses an embeddable sub-process. How can I handle errors when I am using a reusable sub-process? Say for example, if I have a reusable subprocess (say sub1) which does some processing, and throws a fault on error. I now make a call to the sub-process from the main process (say proc1). Now during execution the subprocess throws the fault on error, how can I catch this fault in the main process? One approach I can think of is storing the exception in a sub-process variable, then map it to the process variable, and use a gateway to determine if there was a fault in the sub-process, and raise a fault in the main process, and use signals to handle the fault. however this is a lot of steps for handling sub-process errors, Is there a simpler way to handle faults thrown in reusable sub-processes?


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/de262d55/attachment.html 

More information about the jboss-user mailing list