JBoss Community

How to catch error event outside a sub-process?

created by Antoine T in jBPM - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in jBPM at Community