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 java.lang.Object implements FlowNodeStateManagerDefault implementation of the activity state manager.- Author:
- Baptiste Mesta, Matthieu Chaffotte, Yanyan Liu, Zhang Bole, Celine Souchet
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.Integer,FlowNodeState>allStatesprotected StateBehaviorsstateBehaviors
-
Constructor Summary
Constructors Constructor Description FlowNodeStateManagerImpl(BPMInstancesCreator bpmInstancesCreator, StateBehaviors stateBehaviors, java.util.List<FlowNodeStateSequences> flowNodeStateSequences, java.util.List<FlowNodeState> allStates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowNodeStategetFirstState(SFlowNodeType nodeType)FlowNodeStategetNextState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance, int currentStateId)FlowNodeStategetState(int stateId)StateBehaviorsgetStateBehaviors()java.util.Set<java.lang.String>getSupportedState(SFlowNodeType nodeType)
-
-
-
Field Detail
-
allStates
protected final java.util.Map<java.lang.Integer,FlowNodeState> allStates
-
stateBehaviors
protected StateBehaviors stateBehaviors
-
-
Constructor Detail
-
FlowNodeStateManagerImpl
public FlowNodeStateManagerImpl(BPMInstancesCreator bpmInstancesCreator, StateBehaviors stateBehaviors, java.util.List<FlowNodeStateSequences> flowNodeStateSequences, java.util.List<FlowNodeState> allStates)
-
-
Method Detail
-
getStateBehaviors
public StateBehaviors getStateBehaviors()
- Specified by:
getStateBehaviorsin interfaceFlowNodeStateManager
-
getNextState
public FlowNodeState getNextState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance, int currentStateId) throws SActivityExecutionException
- Specified by:
getNextStatein interfaceFlowNodeStateManager- Throws:
SActivityExecutionException
-
getState
public FlowNodeState getState(int stateId)
- Specified by:
getStatein interfaceFlowNodeStateManager
-
getSupportedState
public java.util.Set<java.lang.String> getSupportedState(SFlowNodeType nodeType)
- Specified by:
getSupportedStatein interfaceFlowNodeStateManager
-
getFirstState
public FlowNodeState getFirstState(SFlowNodeType nodeType)
- Specified by:
getFirstStatein interfaceFlowNodeStateManager
-
-