Package org.bonitasoft.engine.execution
Class FlowNodeStateManagerImpl
java.lang.Object
org.bonitasoft.engine.execution.FlowNodeStateManagerImpl
- All Implemented Interfaces:
FlowNodeStateManager
@Component("flowNodeStateManager")
public class FlowNodeStateManagerImpl
extends Object
implements FlowNodeStateManager
Default implementation of the activity state manager.
- Author:
- Baptiste Mesta, Matthieu Chaffotte, Yanyan Liu, Zhang Bole, Celine Souchet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<Integer,FlowNodeState> protected StateBehaviors -
Constructor Summary
ConstructorsConstructorDescriptionFlowNodeStateManagerImpl(BPMInstancesCreator bpmInstancesCreator, StateBehaviors stateBehaviors, List<FlowNodeStateSequences> flowNodeStateSequences, List<FlowNodeState> allStates) -
Method Summary
Modifier and TypeMethodDescriptiongetFirstState(SFlowNodeType nodeType) getNextState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance, int currentStateId) getState(int stateId) getSupportedState(SFlowNodeType nodeType)
-
Field Details
-
allStates
-
stateBehaviors
-
-
Constructor Details
-
FlowNodeStateManagerImpl
public FlowNodeStateManagerImpl(BPMInstancesCreator bpmInstancesCreator, StateBehaviors stateBehaviors, List<FlowNodeStateSequences> flowNodeStateSequences, List<FlowNodeState> allStates)
-
-
Method Details
-
getStateBehaviors
- Specified by:
getStateBehaviorsin interfaceFlowNodeStateManager
-
getNextState
public FlowNodeState getNextState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance, int currentStateId) throws SActivityExecutionException - Specified by:
getNextStatein interfaceFlowNodeStateManager- Throws:
SActivityExecutionException
-
getState
- Specified by:
getStatein interfaceFlowNodeStateManager
-
getSupportedState
- Specified by:
getSupportedStatein interfaceFlowNodeStateManager
-
getFirstState
- Specified by:
getFirstStatein interfaceFlowNodeStateManager
-