Package org.bonitasoft.engine.execution
Interface FlowNodeExecutor
-
- All Superinterfaces:
ContainerExecutor
- All Known Implementing Classes:
FlowNodeExecutorImpl
public interface FlowNodeExecutor extends ContainerExecutor
- Author:
- Baptiste Mesta, Yanyan Liu, Elias Ricken de Medeiros, Celine Souchet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchildReachedState(SProcessInstance childProcInst, org.bonitasoft.engine.bpm.process.ProcessInstanceState childState, boolean hasActionsToExecute)StateCodeexecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance, FlowNodeState state)voidsetStateByStateId(long flowNodeInstanceId, int stateId)force the state of a flow node toa particular stateFlowNodeStatestepForward(SFlowNodeInstance flowNodeInstance, java.lang.Long executerId, java.lang.Long executerSubstituteId)-
Methods inherited from interface org.bonitasoft.engine.execution.ContainerExecutor
childFinished, executeFlowNode, getHandledType
-
-
-
-
Method Detail
-
stepForward
FlowNodeState stepForward(SFlowNodeInstance flowNodeInstance, java.lang.Long executerId, java.lang.Long executerSubstituteId) throws SFlowNodeExecutionException
- Parameters:
flowNodeInstance-executerId-executerSubstituteId-- Returns:
- Throws:
SFlowNodeExecutionException
-
setStateByStateId
void setStateByStateId(long flowNodeInstanceId, int stateId) throws SActivityStateExecutionExceptionforce the state of a flow node toa particular state- Parameters:
flowNodeInstanceId-stateId-- Throws:
SActivityStateExecutionException
-
childReachedState
void childReachedState(SProcessInstance childProcInst, org.bonitasoft.engine.bpm.process.ProcessInstanceState childState, boolean hasActionsToExecute) throws SBonitaException
- Parameters:
childProcInst-childState-hasActionsToExecute-- Throws:
SBonitaException- Since:
- 6.1
-
executeState
StateCode executeState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance, FlowNodeState state) throws SActivityStateExecutionException, SActivityExecutionException
- Parameters:
processDefinition- the process definition of the SFlowNodeInstance on which to execute the state.flowNodeInstance- theSFlowNodeInstancewhose state has to be executedstate- theFlowNodeStateto execute- Returns:
- the next
FlowNodeState, after executing current state - Throws:
SActivityStateExecutionException- if an exception occurs when executing current stateSActivityExecutionException- if an exception occurs when retrieving next state- Since:
- 6.0
-
-