public class CancellingFlowNodeStateImpl extends java.lang.Object implements FlowNodeState
ID_ACTIVITY_EXECUTING, ID_ACTIVITY_FAILED, ID_ACTIVITY_READY
Constructor and Description |
---|
CancellingFlowNodeStateImpl() |
Modifier and Type | Method and Description |
---|---|
StateCode |
execute(SProcessDefinition processDefinition,
SFlowNodeInstance instance) |
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
|
boolean |
shouldExecuteState(SProcessDefinition processDefinition,
SFlowNodeInstance flowNodeInstance) |
public boolean shouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)
shouldExecuteState
in interface FlowNodeState
public StateCode execute(SProcessDefinition processDefinition, SFlowNodeInstance instance)
execute
in interface State<SFlowNodeInstance>
public boolean hit(SProcessDefinition processDefinition, SFlowNodeInstance parentInstance, SFlowNodeInstance childInstance)
State
hit
in interface State<SFlowNodeInstance>
public int getId()
getId
in interface State<SFlowNodeInstance>
public java.lang.String getName()
getName
in interface State<SFlowNodeInstance>
public boolean isInterrupting()
isInterrupting
in interface State<SFlowNodeInstance>
public boolean isStable()
isStable
in interface State<SFlowNodeInstance>
public boolean isTerminal()
State
isTerminal
in interface State<SFlowNodeInstance>
public SStateCategory getStateCategory()
State
getStateCategory
in interface State<SFlowNodeInstance>
public boolean mustAddSystemComment(SFlowNodeInstance flowNodeInstance)
FlowNodeState
mustAddSystemComment
in interface FlowNodeState
public java.lang.String getSystemComment(SFlowNodeInstance flowNodeInstance)
FlowNodeState
getSystemComment
in interface FlowNodeState