Global Exception Handler in Modeler


#1

I have searched on this topic and seen questions/answers that are not quite what I am looking for.

I would like to create a “Global” error handler that catches any exceptions that are thrown during a flow. I have created an Error Start Event that looks for Error Code=java.lang.RuntimeException. This catches most errors, but misses exceptions like ‘java.text.ParseException’

Is there an Error Code that I could use that would catch ALL exceptions?


#2

So an error will result in a incident being generated. So you would likely want to create a incident handler

https://docs.camunda.org/manual/7.9/user-guide/process-engine/incidents/#implement-custom-incident-handlers


#3

If you are looking for even more granular control and only use modeler + scripting, take a look at: