Error event


#1

how do I do that when any kind of error occurs in the service task the flow go to the error boundary event

exemple.bpmn (4.7 KB)


#2

Throw an error code
which is caught by the event
example below:

               try{
		// code that runs
		
		}
		catch(Exception e){
		     throw new BpmnError("SomeErrorCode");
		}