Class InitializingLoopActivityState
- java.lang.Object
-
- org.bonitasoft.engine.execution.state.InitializingLoopActivityState
-
- All Implemented Interfaces:
FlowNodeState
@Component public class InitializingLoopActivityState extends java.lang.Object implements FlowNodeState
-
-
Field Summary
-
Fields inherited from interface org.bonitasoft.engine.core.process.instance.api.states.FlowNodeState
ID_ACTIVITY_EXECUTING, ID_ACTIVITY_FAILED, ID_ACTIVITY_READY
-
-
Constructor Summary
Constructors Constructor Description InitializingLoopActivityState(ExpressionResolverService expressionResolverService, BPMInstancesCreator bpmInstancesCreator, ActivityInstanceService activityInstanceService, StateBehaviors stateBehaviors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateCode
execute(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)
int
getId()
java.lang.String
getName()
SStateCategory
getStateCategory()
Get the state's categoryjava.lang.String
getSystemComment(SFlowNodeInstance flowNodeInstance)
Add a system comment "User XYZ has XYZ(state change) task XYZ(task name)"boolean
isStable()
boolean
isTerminal()
Checks whether the state is a terminal one.boolean
mustAddSystemComment(SFlowNodeInstance flowNodeInstance)
Return true if flowNodeInstance instance of SHumanTaskInstanceboolean
shouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bonitasoft.engine.core.process.instance.api.states.FlowNodeState
notifyChildFlowNodeHasFinished
-
-
-
-
Constructor Detail
-
InitializingLoopActivityState
public InitializingLoopActivityState(ExpressionResolverService expressionResolverService, BPMInstancesCreator bpmInstancesCreator, ActivityInstanceService activityInstanceService, StateBehaviors stateBehaviors)
-
-
Method Detail
-
execute
public StateCode execute(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) throws SActivityStateExecutionException
- Specified by:
execute
in interfaceFlowNodeState
- Throws:
SActivityStateExecutionException
-
getId
public int getId()
- Specified by:
getId
in interfaceFlowNodeState
-
isStable
public boolean isStable()
- Specified by:
isStable
in interfaceFlowNodeState
- Returns:
- true if the state is stable a final state is stable
-
isTerminal
public boolean isTerminal()
Description copied from interface:FlowNodeState
Checks whether the state is a terminal one.- Specified by:
isTerminal
in interfaceFlowNodeState
- Returns:
- true is the state is a terminal one; false otherwise
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceFlowNodeState
-
shouldExecuteState
public boolean shouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)
- Specified by:
shouldExecuteState
in interfaceFlowNodeState
- Returns:
- true the state must be executed, false if the execution must skip this state and go directly to the next one
-
getStateCategory
public SStateCategory getStateCategory()
Description copied from interface:FlowNodeState
Get the state's category- Specified by:
getStateCategory
in interfaceFlowNodeState
- Returns:
- the state's category
-
mustAddSystemComment
public boolean mustAddSystemComment(SFlowNodeInstance flowNodeInstance)
Description copied from interface:FlowNodeState
Return true if flowNodeInstance instance of SHumanTaskInstance- Specified by:
mustAddSystemComment
in interfaceFlowNodeState
- Returns:
- true or false
-
getSystemComment
public java.lang.String getSystemComment(SFlowNodeInstance flowNodeInstance)
Description copied from interface:FlowNodeState
Add a system comment "User XYZ has XYZ(state change) task XYZ(task name)"- Specified by:
getSystemComment
in interfaceFlowNodeState
- Returns:
- system comment "User XYZ has XYZ(state change) task XYZ(task name)"
-
-