cancel
Showing results for 
Search instead for 
Did you mean: 

How to use boundary error event handler on sub process

joeysr20det
Champ in-the-making
Champ in-the-making
I'm trying to come up with a way to have an all inclusive error hander in my workflow processes. I've looked at the BPMN 2.0 spec and it appears that if you enclose all activities within a subprocess and place a boundary error event handler on the subprocess it will work as a catch all. Then you point the boundry event handler at an activity back up in the main process. Activiti gives me a BPMNParse error "Make sure that the referenced activity is defined in the same scope as the boundary event" when i try this.

Is there something I'm missing? I've attached an example of my workflow process I believe should deploy but does not.
2 REPLIES 2

workflowuser2
Champ in-the-making
Champ in-the-making
I see two error boundary events.

The first one:
<boundaryEvent attachedToRef="_6"

This refers to an activiti with id "_6" but I did not see any activiti with this id.

joeysr20det
Champ in-the-making
Champ in-the-making
I appologize, there must be a bug in the designer tool I'm using. I most definitely have only one boundary event on my screen but two are defined in the XML as you said. I corrected the XML and was able to deploy this process and have it work as its suppose to.