AnsweredAssumed Answered

BpmnError not caught in boundary

Question asked by larxxor on Mar 8, 2016
Latest reply on Mar 14, 2016 by larxxor
I'm doing som investigations in Activiti 6 beta2.

Created a flow, with different type of tasks, listeners etc.

Wanting to test boundary error catching, I put a ServiceTask in a subprocess.
The ServiceTask calls a java delegate, which throws a BpmnError in the execute method :


LOGGER.info("throw BpmnError");
throw new BpmnError("123");


I attach an "ErrorBoundaryEvent" on the subprocess. ErrorCode = "". The boundary event is attached to a ServiceTask, and has a listener with log statements on the "start" event.

Execution of the main flow stops on the BpmnError, but nothing happens in the listener at the ErrorBoundaryEvent. No logs. I have listeners in place on UserTasks and ServiceTasks, they all log nicely.
If I investigate the tables, I can see in "ACT_HI_ACTINST", that the flow hits the Error Boundary and continues to the attached ServiceTask. The flow is ok then.

This leaves the question : why is the listener on the ErrorBoundaryEvent not running notify()?

Outcomes