Class AbortingBoundaryEventsOnCompletingActivityState
- java.lang.Object
-
- org.bonitasoft.engine.execution.state.AbortingBoundaryEventsOnCompletingActivityState
-
- All Implemented Interfaces:
FlowNodeState
@Component public class AbortingBoundaryEventsOnCompletingActivityState extends java.lang.Object implements FlowNodeState
-
-
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 Constructor Description AbortingBoundaryEventsOnCompletingActivityState(StateBehaviors stateBehaviors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateCode
execute(SProcessDefinition processDefinition, SFlowNodeInstance instance)
int
getId()
java.lang.String
getName()
SStateCategory
getStateCategory()
Get the state's categoryjava.lang.String
getSystemComment(SFlowNodeInstance flowNodeInstance)
Add a system comment "User XYZ has XYZ(state change) task XYZ(task name)"boolean
isStable()
boolean
isTerminal()
Checks whether the state is a terminal one.boolean
mustAddSystemComment(SFlowNodeInstance flowNodeInstance)
Return true if flowNodeInstance instance of SHumanTaskInstanceboolean
notifyChildFlowNodeHasFinished(SProcessDefinition processDefinition, SFlowNodeInstance parentInstance, SFlowNodeInstance childInstance)
Called when a child of the flow node parentInstance finishes.boolean
shouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)
-
-
-
Constructor Detail
-
AbortingBoundaryEventsOnCompletingActivityState
public AbortingBoundaryEventsOnCompletingActivityState(StateBehaviors stateBehaviors)
-
-
Method Detail
-
mustAddSystemComment
public boolean mustAddSystemComment(SFlowNodeInstance flowNodeInstance)
Description copied from interface:FlowNodeState
Return true if flowNodeInstance instance of SHumanTaskInstance- Specified by:
mustAddSystemComment
in interfaceFlowNodeState
- Returns:
- true or false
-
getSystemComment
public java.lang.String getSystemComment(SFlowNodeInstance flowNodeInstance)
Description copied from interface:FlowNodeState
Add a system comment "User XYZ has XYZ(state change) task XYZ(task name)"- Specified by:
getSystemComment
in interfaceFlowNodeState
- Returns:
- system comment "User XYZ has XYZ(state change) task XYZ(task name)"
-
getId
public int getId()
- Specified by:
getId
in interfaceFlowNodeState
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceFlowNodeState
-
getStateCategory
public SStateCategory getStateCategory()
Description copied from interface:FlowNodeState
Get the state's category- Specified by:
getStateCategory
in interfaceFlowNodeState
- Returns:
- the state's category
-
shouldExecuteState
public boolean shouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)
- Specified by:
shouldExecuteState
in 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:
execute
in interfaceFlowNodeState
- Throws:
SActivityStateExecutionException
-
notifyChildFlowNodeHasFinished
public boolean notifyChildFlowNodeHasFinished(SProcessDefinition processDefinition, SFlowNodeInstance parentInstance, SFlowNodeInstance childInstance)
Description copied from interface:FlowNodeState
Called 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:
notifyChildFlowNodeHasFinished
in 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:
isStable
in interfaceFlowNodeState
- Returns:
- true if the state is stable a final state is stable
-
isTerminal
public boolean isTerminal()
Description copied from interface:FlowNodeState
Checks whether the state is a terminal one.- Specified by:
isTerminal
in interfaceFlowNodeState
- Returns:
- true is the state is a terminal one; false otherwise
-
-