cancel
Showing results for 
Search instead for 
Did you mean: 

How to use ErrorEvents in Activiti?

zlatan316
Champ on-the-rise
Champ on-the-rise
I have a workflow with goes like this:

StartEvent >> Service Task 1 >> Service Task 2 >> EndEvent

What id like to do is stop the flow and terminate the flow if there is an error at Service Task 1. I can see there are StartErrorEvents and EndErrorEvents, but how would I implement these in order to terminate the flow?
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Zlatan,

The first source of knowledge:
User guide : http://www.activiti.org/userguide/#bpmnErrorStartEvent

The second source of knowledge:
jUnit tests:
org.activiti.engine.test.bpmn.event.error.ErrorEventSubProcessTest
org.activiti.engine.test.bpmn.event.error.BoundaryErrorEventTest

Regards
Martin