public class InitializingAndExecutingFlowNodeStateImpl extends OnEnterAndFinishConnectorState
ID_ACTIVITY_EXECUTING, ID_ACTIVITY_FAILED, ID_ACTIVITY_READY
Constructor and Description |
---|
InitializingAndExecutingFlowNodeStateImpl(StateBehaviors stateBehaviors) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterOnFinish(SProcessDefinition processDefinition,
SFlowNodeInstance flowNodeInstance) |
protected void |
beforeOnEnter(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 parentInstance,
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
|
protected void |
onEnterToOnFinish(SProcessDefinition processDefinition,
SFlowNodeInstance flowNodeInstance) |
boolean |
shouldExecuteState(SProcessDefinition processDefinition,
SFlowNodeInstance flowNodeInstance) |
execute
public InitializingAndExecutingFlowNodeStateImpl(StateBehaviors stateBehaviors)
public int getId()
public boolean isInterrupting()
public boolean isStable()
public boolean isTerminal()
State
public java.lang.String getName()
public boolean hit(SProcessDefinition processDefinition, SFlowNodeInstance parentInstance, SFlowNodeInstance childInstance)
State
public boolean shouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)
public SStateCategory getStateCategory()
State
public boolean mustAddSystemComment(SFlowNodeInstance flowNodeInstance)
FlowNodeState
public java.lang.String getSystemComment(SFlowNodeInstance flowNodeInstance)
FlowNodeState
protected void beforeOnEnter(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) throws SActivityStateExecutionException
beforeOnEnter
in class OnEnterAndFinishConnectorState
SActivityStateExecutionException
protected void onEnterToOnFinish(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) throws SActivityStateExecutionException
onEnterToOnFinish
in class OnEnterAndFinishConnectorState
SActivityStateExecutionException
protected void afterOnFinish(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) throws SActivityStateExecutionException
afterOnFinish
in class OnEnterAndFinishConnectorState
SActivityStateExecutionException