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.
the only thing that I can see could prevent of catching the event is when subprocess is not active and thus its boundary event is not active either. If you sure subprocess is active at the time error is thrown then please open jira issue for this and attach process definition and test case for it.