Class InitializingBoundaryEventState
- java.lang.Object
-
- org.bonitasoft.engine.execution.state.OnEnterOrOnFinishConnectorState
-
- org.bonitasoft.engine.execution.state.OnEnterConnectorState
-
- org.bonitasoft.engine.execution.state.InitializingBoundaryEventState
-
- All Implemented Interfaces:
FlowNodeState
@Component public class InitializingBoundaryEventState extends OnEnterConnectorState
-
-
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 InitializingBoundaryEventState(StateBehaviors stateBehaviors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterConnectors(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)protected voidbeforeConnectors(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)intgetId()java.lang.StringgetName()SStateCategorygetStateCategory()Get the state's categoryjava.lang.StringgetSystemComment(SFlowNodeInstance flowNodeInstance)Add a system comment "User XYZ has XYZ(state change) task XYZ(task name)"booleanisStable()booleanisTerminal()Checks whether the state is a terminal one.booleanmustAddSystemComment(SFlowNodeInstance flowNodeInstance)Return true if flowNodeInstance instance of SHumanTaskInstancebooleanshouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)-
Methods inherited from class org.bonitasoft.engine.execution.state.OnEnterConnectorState
getConnectorEvent
-
Methods inherited from class org.bonitasoft.engine.execution.state.OnEnterOrOnFinishConnectorState
execute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bonitasoft.engine.core.process.instance.api.states.FlowNodeState
notifyChildFlowNodeHasFinished
-
-
-
-
Constructor Detail
-
InitializingBoundaryEventState
public InitializingBoundaryEventState(StateBehaviors stateBehaviors)
-
-
Method Detail
-
getId
public int getId()
-
isStable
public boolean isStable()
- 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.- Returns:
- true is the state is a terminal one; false otherwise
-
getName
public java.lang.String getName()
-
shouldExecuteState
public boolean shouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)
- Returns:
- true the state must be executed, false if the execution must skip this state and go directly to the next one
-
getStateCategory
public SStateCategory getStateCategory()
Description copied from interface:FlowNodeStateGet the state's category- Returns:
- the state's category
-
mustAddSystemComment
public boolean mustAddSystemComment(SFlowNodeInstance flowNodeInstance)
Description copied from interface:FlowNodeStateReturn true if flowNodeInstance instance of SHumanTaskInstance- Returns:
- true or false
-
getSystemComment
public java.lang.String getSystemComment(SFlowNodeInstance flowNodeInstance)
Description copied from interface:FlowNodeStateAdd a system comment "User XYZ has XYZ(state change) task XYZ(task name)"- Returns:
- system comment "User XYZ has XYZ(state change) task XYZ(task name)"
-
beforeConnectors
protected void beforeConnectors(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) throws SActivityStateExecutionException
- Specified by:
beforeConnectorsin classOnEnterOrOnFinishConnectorState- Throws:
SActivityStateExecutionException
-
afterConnectors
protected void afterConnectors(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) throws SActivityStateExecutionException
- Specified by:
afterConnectorsin classOnEnterOrOnFinishConnectorState- Throws:
SActivityStateExecutionException
-
-