Class EndingCallActivityExceptionState
java.lang.Object
org.bonitasoft.engine.execution.state.EndingCallActivityExceptionState
- All Implemented Interfaces:
FlowNodeState
- Direct Known Subclasses:
AbortingCallActivityState,CancellingCallActivityState
@Component
public abstract class EndingCallActivityExceptionState
extends 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
ConstructorsConstructorDescriptionEndingCallActivityExceptionState(ProcessInstanceService processInstanceService, ProcessInstanceInterruptor processInstanceInterruptor, BPMArchiverService bpmArchiverService) -
Method Summary
Modifier and TypeMethodDescriptionexecute(SProcessDefinition processDefinition, SFlowNodeInstance instance) booleanisStable()booleanChecks whether the state is a terminal one.booleannotifyChildFlowNodeHasFinished(SProcessDefinition processDefinition, SFlowNodeInstance parentInstance, SFlowNodeInstance childInstance) Called when a child of the flow node parentInstance finishes.booleanshouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) Methods 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
getId, getName, getStateCategory, getSystemComment, mustAddSystemComment
-
Constructor Details
-
EndingCallActivityExceptionState
public EndingCallActivityExceptionState(ProcessInstanceService processInstanceService, ProcessInstanceInterruptor processInstanceInterruptor, BPMArchiverService bpmArchiverService)
-
-
Method Details
-
shouldExecuteState
public boolean shouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) throws SActivityExecutionException - 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
- Throws:
SActivityExecutionException
-
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
-