Class BpmnActivityBehavior
- java.lang.Object
-
- org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior
-
- All Implemented Interfaces:
java.io.Serializable
public class BpmnActivityBehavior extends java.lang.Object implements java.io.SerializableHelper class for implementing BPMN 2.0 activities, offering convenience methods specific to BPMN 2.0.This class can be used by inheritance or aggregation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BpmnActivityBehavior()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddispatchJobCanceledEvents(ExecutionEntity activityExecution)dispatch job canceled event for job associated with given execution entityvoidperformDefaultOutgoingBehavior(ExecutionEntity activityExecution)Performs the default outgoing BPMN 2.0 behavior, which is having parallel paths of executions for the outgoing sequence flow.voidperformIgnoreConditionsOutgoingBehavior(ExecutionEntity activityExecution)Performs the default outgoing BPMN 2.0 behavior (@seeperformDefaultOutgoingBehavior(ExecutionEntity)), but without checking the conditions on the outgoing sequence flow.protected voidperformOutgoingBehavior(ExecutionEntity execution, boolean checkConditions, boolean throwExceptionIfExecutionStuck)Actual implementation of leaving an activity.
-
-
-
Method Detail
-
performDefaultOutgoingBehavior
public void performDefaultOutgoingBehavior(ExecutionEntity activityExecution)
Performs the default outgoing BPMN 2.0 behavior, which is having parallel paths of executions for the outgoing sequence flow.More precisely: every sequence flow that has a condition which evaluates to true (or which doesn't have a condition), is selected for continuation of the process instance. If multiple sequencer flow are selected, multiple, parallel paths of executions are created.
-
dispatchJobCanceledEvents
protected void dispatchJobCanceledEvents(ExecutionEntity activityExecution)
dispatch job canceled event for job associated with given execution entity- Parameters:
activityExecution-
-
performIgnoreConditionsOutgoingBehavior
public void performIgnoreConditionsOutgoingBehavior(ExecutionEntity activityExecution)
Performs the default outgoing BPMN 2.0 behavior (@seeperformDefaultOutgoingBehavior(ExecutionEntity)), but without checking the conditions on the outgoing sequence flow.This means that every outgoing sequence flow is selected for continuing the process instance, regardless of having a condition or not. In case of multiple outgoing sequence flow, multiple parallel paths of executions will be created.
-
performOutgoingBehavior
protected void performOutgoingBehavior(ExecutionEntity execution, boolean checkConditions, boolean throwExceptionIfExecutionStuck)
Actual implementation of leaving an activity.- Parameters:
execution- The current execution contextcheckConditions- Whether or not to check conditions before determining whether or not to take a transition.throwExceptionIfExecutionStuck- If true, anActivitiExceptionwill be thrown in case no transition could be found to leave the activity.
-
-