Class CancellingActivityWithBoundaryState
java.lang.Object
org.bonitasoft.engine.execution.state.CancellingActivityWithBoundaryState
- All Implemented Interfaces:
FlowNodeState
- Direct Known Subclasses:
CancellingReceiveTaskState
-
Field Summary
Fields inherited from interface org.bonitasoft.engine.core.process.instance.api.states.FlowNodeState
ID_ACTIVITY_EXECUTING, ID_ACTIVITY_FAILED, ID_ACTIVITY_READY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(SProcessDefinition processDefinition, SFlowNodeInstance instance) intgetId()getName()Get the state's categorygetSystemComment(SFlowNodeInstance flowNodeInstance) Add a system comment "User XYZ has XYZ(state change) task XYZ(task name)"booleanisStable()booleanChecks whether the state is a terminal one.booleanmustAddSystemComment(SFlowNodeInstance flowNodeInstance) Return true if flowNodeInstance instance of SHumanTaskInstancebooleannotifyChildFlowNodeHasFinished(SProcessDefinition processDefinition, SFlowNodeInstance parentInstance, SFlowNodeInstance childInstance) Called when a child of the flow node parentInstance finishes.booleanshouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)
-
Constructor Details
-
CancellingActivityWithBoundaryState
public CancellingActivityWithBoundaryState()
-
-
Method Details
-
mustAddSystemComment
Description copied from interface:FlowNodeStateReturn true if flowNodeInstance instance of SHumanTaskInstance- Specified by:
mustAddSystemCommentin interfaceFlowNodeState- Returns:
- true or false
-
getSystemComment
Description copied from interface:FlowNodeStateAdd a system comment "User XYZ has XYZ(state change) task XYZ(task name)"- Specified by:
getSystemCommentin interfaceFlowNodeState- Returns:
- system comment "User XYZ has XYZ(state change) task XYZ(task name)"
-
getId
public int getId()- Specified by:
getIdin interfaceFlowNodeState
-
getName
- Specified by:
getNamein interfaceFlowNodeState
-
getStateCategory
Description copied from interface:FlowNodeStateGet the state's category- Specified by:
getStateCategoryin interfaceFlowNodeState- Returns:
- the state's category
-
getBoundaryCategoryState
-
shouldExecuteState
public boolean shouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) - Specified by:
shouldExecuteStatein interfaceFlowNodeState- Returns:
- true the state must be executed, false if the execution must skip this state and go directly to the next one
-
execute
public StateCode execute(SProcessDefinition processDefinition, SFlowNodeInstance instance) throws SActivityStateExecutionException - Specified by:
executein interfaceFlowNodeState- Throws:
SActivityStateExecutionException
-
notifyChildFlowNodeHasFinished
public boolean notifyChildFlowNodeHasFinished(SProcessDefinition processDefinition, SFlowNodeInstance parentInstance, SFlowNodeInstance childInstance) Description copied from interface:FlowNodeStateCalled when a child of the flow node parentInstance finishes. Triggers what's next, if applicable. returns if all children activity is finished / triggered.- Specified by:
notifyChildFlowNodeHasFinishedin interfaceFlowNodeState- Returns:
- true if the state is finished (the flow node will continue its flow), false if there are still some children to be triggered / to wait for.
-
isStable
public boolean isStable()- Specified by:
isStablein interfaceFlowNodeState- Returns:
- true if the state is stable a final state is stable
-
isTerminal
public boolean isTerminal()Description copied from interface:FlowNodeStateChecks whether the state is a terminal one.- Specified by:
isTerminalin interfaceFlowNodeState- Returns:
- true is the state is a terminal one; false otherwise
-