AnsweredAssumed Answered

Flow global exception handler

Question asked by on Dec 5, 2014
Latest reply on Dec 8, 2014 by

I'm looking for an object able to catch any uncaught exception anywhere in the diagram.

This object will be responsible in doing a last resort operation before leaving the flow (I would like to avoid a try-catch block in which there is the starting of the flow, I would like to stay inside the flow).

Do you know if something like a "global exception handler" exists in Activiti ?

I first looked at listeners but it seems that there is no event like an "uncaught exception event". Moreover, I inspected the code (I sent a NullPointerException in my code) and I notice that Activiti rethrows the exception (I don't see any hook where I could put a piece of code to do my last resort operation).

I would really appreciate your help,