cancel
Showing results for 
Search instead for 
Did you mean: 

Deal with Java exceptions and listeners

mtablado
Champ in-the-making
Champ in-the-making
I'm working on the way of ease the development for developers with an event that handles both java and job errors so that the core of my activiti application could notify a group of users every time a critical error occurr.

I have read the topic below and I would want to ask if you have reconsidered an update so that developers don't need to modify transitions in tasks code for java exceptions.

http://forums.activiti.org/content/catch-java-servicetask-exceptions-using-erroreventdefinition

Another approach that I am thinking to apply is an Spring Aspect that deals with exceptions, but I don't know if I will be able to access the proccess instance to get the necessary information for my notification. ¿What do you think?

Thanks in advance.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
If your use case is notifying someone on exception, one direction you could look into is adding a new command interceptor, that catches all exceptions and sends out an email. This would catch exceptions engine wide.