public class ExecutingCallActivityStateImpl extends java.lang.Object implements FlowNodeState
ID_ACTIVITY_EXECUTING, ID_ACTIVITY_FAILED, ID_ACTIVITY_READY| Constructor and Description |
|---|
ExecutingCallActivityStateImpl(StateBehaviors stateBehaviors) |
| 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 ExecutingCallActivityStateImpl(StateBehaviors stateBehaviors)
public int getId()
getId in interface State<SFlowNodeInstance>public boolean isStable()
isStable in interface State<SFlowNodeInstance>public StateCode execute(SProcessDefinition processDefinition, SFlowNodeInstance instance) throws SActivityStateExecutionException
execute in interface State<SFlowNodeInstance>SActivityStateExecutionExceptionpublic boolean hit(SProcessDefinition processDefinition, SFlowNodeInstance parentInstance, SFlowNodeInstance childInstance)
Statehit in interface State<SFlowNodeInstance>public boolean isTerminal()
StateisTerminal in interface State<SFlowNodeInstance>public java.lang.String getName()
getName in interface State<SFlowNodeInstance>public boolean shouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)
shouldExecuteState in interface FlowNodeStatepublic 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 FlowNodeStatepublic boolean isInterrupting()
isInterrupting in interface State<SFlowNodeInstance>