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.
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?
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.