public class ExecutingLoopActivityStateImpl extends java.lang.Object implements FlowNodeState
ID_ACTIVITY_EXECUTING, ID_ACTIVITY_FAILED, ID_ACTIVITY_READY| Constructor and Description |
|---|
ExecutingLoopActivityStateImpl(ExpressionResolverService expressionResolverService,
BPMInstancesCreator bpmInstancesCreator,
ContainerRegistry containerRegistry,
ActivityInstanceService activityInstanceService) |
| Modifier and Type | Method and Description |
|---|---|
StateCode |
execute(SProcessDefinition processDefinition,
SFlowNodeInstance flowNodeInstance) |
int |
getId() |
java.lang.String |
getName() |
SStateCategory |
getStateCategory()
Get the state's category
|
java.lang.String |
getSystemComment(SFlowNodeInstance flowNodeInstance)
Add a system comment "User XYZ has XYZ(state change) task XYZ(task name)"
|
boolean |
hit(SProcessDefinition processDefinition,
SFlowNodeInstance flowNodeInstance,
SFlowNodeInstance childInstance)
Called when a children of the flow node parentInstance finish
|
boolean |
isInterrupting() |
boolean |
isStable() |
boolean |
isTerminal()
Checks whether the state is a terminal one.
|
boolean |
mustAddSystemComment(SFlowNodeInstance flowNodeInstance)
Return true if flowNodeInstance instance of SHumanTaskInstance
|
boolean |
shouldExecuteState(SProcessDefinition processDefinition,
SFlowNodeInstance flowNodeInstance) |
public ExecutingLoopActivityStateImpl(ExpressionResolverService expressionResolverService, BPMInstancesCreator bpmInstancesCreator, ContainerRegistry containerRegistry, ActivityInstanceService activityInstanceService)
public StateCode execute(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)
execute in interface State<SFlowNodeInstance>public int getId()
getId in interface State<SFlowNodeInstance>public boolean isInterrupting()
isInterrupting in interface State<SFlowNodeInstance>public boolean isStable()
isStable in interface State<SFlowNodeInstance>public boolean isTerminal()
StateisTerminal in interface State<SFlowNodeInstance>public java.lang.String getName()
getName in interface State<SFlowNodeInstance>public boolean hit(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance, SFlowNodeInstance childInstance) throws SActivityStateExecutionException
Statehit in interface State<SFlowNodeInstance>SActivityStateExecutionExceptionpublic boolean shouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) throws SActivityExecutionException
shouldExecuteState in interface FlowNodeStateSActivityExecutionExceptionpublic SStateCategory getStateCategory()
StategetStateCategory in interface State<SFlowNodeInstance>public boolean mustAddSystemComment(SFlowNodeInstance flowNodeInstance)
FlowNodeStatemustAddSystemComment in interface FlowNodeStatepublic java.lang.String getSystemComment(SFlowNodeInstance flowNodeInstance)
FlowNodeStategetSystemComment in interface FlowNodeState