1 Reply Latest reply on Mar 29, 2013 12:49 PM by Maciej Swiderski

    How to catch error event outside a sub-process?

    Anonymous User Anonymous User Newbie

      Hi,

       

      I am very new to jBPM. I used the last version (5.4.0). I would like a sub-process to catch an error event thrown outside of it (in the parent process). It seems this is not possible, however I managed to catch the error event only if it is thrown inside of it. In the example FigA below, the error is thrown outside of the sub-process. The println from the task printErrorCatched is not shown. Nevertheless, regarding the example FigB, the error event is thrown outside and now, the error is catch (the println works).

       

      Have I made any error? Is-it a misconception of BPMN? A bug? The reason I want to do this is because I want a user to cancel a sub-process.

       

      Thank you.

       

      Antoine

       

      FigA

      FigB.png

       

      FigB

      FigA.png