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? Thanks. -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/634955#634955] Start a new discussion in jBPM at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
