Class ExclusiveGatewayActivityBehavior
- java.lang.Object
-
- org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
-
- org.activiti.engine.impl.bpmn.behavior.GatewayActivityBehavior
-
- org.activiti.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior
-
- All Implemented Interfaces:
java.io.Serializable,ActivityBehavior,TriggerableActivityBehavior
public class ExclusiveGatewayActivityBehavior extends GatewayActivityBehavior
implementation of the Exclusive Gateway/XOR gateway/exclusive data-based gateway as defined in the BPMN specification.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
-
-
Constructor Summary
Constructors Constructor Description ExclusiveGatewayActivityBehavior()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidleave(DelegateExecution execution)The default behaviour of BPMN, taking every outgoing sequence flow (where the condition evaluates to true), is not valid for an exclusive gateway.-
Methods inherited from class org.activiti.engine.impl.bpmn.behavior.GatewayActivityBehavior
lockFirstParentScope
-
Methods inherited from class org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
execute, leaveIgnoreConditions, parseActivityType, trigger
-
-
-
-
Method Detail
-
leave
public void leave(DelegateExecution execution)
The default behaviour of BPMN, taking every outgoing sequence flow (where the condition evaluates to true), is not valid for an exclusive gateway. Hence, this behaviour is overridden and replaced by the correct behavior: selecting the first sequence flow which condition evaluates to true (or which hasn't got a condition) and leaving the activity through that sequence flow. If no sequence flow is selected (ie all conditions evaluate to false), then the default sequence flow is taken (if defined).- Overrides:
leavein classFlowNodeActivityBehavior
-
-