public class ExecutingBoundaryEventStateImpl extends java.lang.Object implements FlowNodeState
ID_ACTIVITY_EXECUTING, ID_ACTIVITY_FAILED, ID_ACTIVITY_READY| Constructor and Description |
|---|
ExecutingBoundaryEventStateImpl(ActivityInstanceService activityInstanceService,
ContainerRegistry containerRegistry) |
| 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 ExecutingBoundaryEventStateImpl(ActivityInstanceService activityInstanceService, ContainerRegistry containerRegistry)
public boolean shouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)
shouldExecuteState in interface FlowNodeStatepublic boolean mustAddSystemComment(SFlowNodeInstance flowNodeInstance)
FlowNodeStatemustAddSystemComment in interface FlowNodeStatepublic java.lang.String getSystemComment(SFlowNodeInstance flowNodeInstance)
FlowNodeStategetSystemComment in interface FlowNodeStatepublic 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 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()
StateisTerminal in interface State<SFlowNodeInstance>public SStateCategory getStateCategory()
StategetStateCategory in interface State<SFlowNodeInstance>