Error start event

Hi

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:

compensation

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?

Thanks

The error start event is a Event based start event: So you need to be inside of a Event Sub-process.

2 Likes

The start event needs to be in an event sub process to be selected.

Error

2 Likes