I’m trying to add graphically an “error start event” in order to trigger all compensation tasks present in a process when an error happens.
I have that working by using the java code:
process.eventSubProcess().startEvent("ErrorCatched").error("java.lang.Throwable") .intermediateThrowEvent("ToBeCompensated").compensateEventDefinition().compensateEventDefinitionDone() .serviceTask("AuditLogID").name("AuditLogName").camundaClass(AuditLogErrorTask.class.getName()) .endEvent("ErrorHandled");
That generates the following subprocess:
Trying to model that completely by using the graphical editor, I can’t find the “error start event”.
How can I do to add it? Do I need to define something before the editor shows me the error start event?