Class CancellingReceiveTaskState
- java.lang.Object
-
- org.bonitasoft.engine.execution.state.CancellingActivityWithBoundaryState
-
- org.bonitasoft.engine.execution.state.CancellingReceiveTaskState
-
- All Implemented Interfaces:
FlowNodeState
@Component public class CancellingReceiveTaskState extends CancellingActivityWithBoundaryState
-
-
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 CancellingReceiveTaskState(WaitingEventsInterrupter waitingEventsInterrupter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateCodeexecute(SProcessDefinition processDefinition, SFlowNodeInstance instance)intgetId()booleanshouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)-
Methods inherited from class org.bonitasoft.engine.execution.state.CancellingActivityWithBoundaryState
getBoundaryCategoryState, getName, getStateCategory, getSystemComment, isStable, isTerminal, mustAddSystemComment, notifyChildFlowNodeHasFinished
-
-
-
-
Constructor Detail
-
CancellingReceiveTaskState
public CancellingReceiveTaskState(WaitingEventsInterrupter waitingEventsInterrupter)
-
-
Method Detail
-
getId
public int getId()
- Specified by:
getIdin interfaceFlowNodeState- Overrides:
getIdin classCancellingActivityWithBoundaryState
-
execute
public StateCode execute(SProcessDefinition processDefinition, SFlowNodeInstance instance) throws SActivityStateExecutionException
- Specified by:
executein interfaceFlowNodeState- Overrides:
executein classCancellingActivityWithBoundaryState- Throws:
SActivityStateExecutionException
-
shouldExecuteState
public boolean shouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)
- Specified by:
shouldExecuteStatein interfaceFlowNodeState- Overrides:
shouldExecuteStatein classCancellingActivityWithBoundaryState- Returns:
- true the state must be executed, false if the execution must skip this state and go directly to the next one
-
-