Class ExecutingAutomaticActivityState
java.lang.Object
org.bonitasoft.engine.execution.state.OnEnterAndFinishConnectorState
org.bonitasoft.engine.execution.state.ExecutingAutomaticActivityState
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterOnFinish(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) protected voidbeforeOnEnter(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) 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 SHumanTaskInstanceprotected voidonEnterToOnFinish(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) booleanshouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) Methods inherited from class org.bonitasoft.engine.execution.state.OnEnterAndFinishConnectorState
executeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bonitasoft.engine.core.process.instance.api.states.FlowNodeState
notifyChildFlowNodeHasFinished
-
Constructor Details
-
ExecutingAutomaticActivityState
-
-
Method Details
-
afterOnFinish
protected void afterOnFinish(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) throws SActivityStateExecutionException - Specified by:
afterOnFinishin classOnEnterAndFinishConnectorState- Throws:
SActivityStateExecutionException
-
onEnterToOnFinish
protected void onEnterToOnFinish(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) throws SActivityStateExecutionException - Specified by:
onEnterToOnFinishin classOnEnterAndFinishConnectorState- Throws:
SActivityStateExecutionException
-
beforeOnEnter
protected void beforeOnEnter(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) throws SActivityStateExecutionException - Specified by:
beforeOnEnterin classOnEnterAndFinishConnectorState- Throws:
SActivityStateExecutionException
-
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
-
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
Description copied from interface:FlowNodeStateGet the state's category- Returns:
- the state's category
-
mustAddSystemComment
Description copied from interface:FlowNodeStateReturn true if flowNodeInstance instance of SHumanTaskInstance- Returns:
- true or false
-
getSystemComment
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)"
-