Hi,
My workflow is pretty simple, for example
- a Java service task A
- a user task
- another Java service task B
I want to add a global event listener to collect JOB_EXECUTION_FAILURE jobs for the alerting.
Then I tried to throw exception in the JavaDelegate.
The result is that
- the custom FlowableEventListener can catch the JOB_EXECUTION_FAILURE event if task A fails.
- only ENGINE_CLOSED event is received if task B fails.
Debugging result shows the formal dispatches the error event through DefaultAsyncRunnableExecutionExceptionHandler, but I can’t find the right place for the latter.
Any idea? Thanks!
BTW, the only difference between the workflow demo and my real workflow is that my real workflow put user task and service B inside an independent sub process and called in the main process.