Attach an error handler to an existing Process Engine

I have a shared process engine deployed on a Tomcat on which I then deploy a webapp which contains my processes.

As a part of this deployment I would like to add new Task Incident Handler to the process engine (in particular, for some process, I would need to customize it) but unfortunately I didn’t find any API to customize this behaviour.

Can new Task Incident Handler be added to an already existing process engine?

Are you looking for a sort of interceptor? Something that watches overall behavior, such as error handling, for an entire application? Goal being the ability to intercept all incidents (exceptions) originating from an arbitrary set of process-applications.

Yes but I am looking to append that “later” when I deploy the process not when I instanstiate a shared process engine on my tomcat