public interface FlowNodeExecutor extends ContainerExecutor
| Modifier and Type | Method and Description |
|---|---|
void |
archiveFlowNodeInstance(SFlowNodeInstance flowNodeInstance,
boolean deleteAfterArchive,
long processDefinitionId)
Archive the flow node instance given as parameter.
|
void |
childReachedState(SProcessInstance childProcInst,
org.bonitasoft.engine.bpm.process.ProcessInstanceState childState,
boolean hasActionsToExecute) |
StateCode |
executeState(SProcessDefinition processDefinition,
SFlowNodeInstance flowNodeInstance,
FlowNodeState state) |
void |
setStateByStateId(long flowNodeInstanceId,
int stateId)
force the state of a flow node toa particular state
|
FlowNodeState |
stepForward(SFlowNodeInstance flowNodeInstance,
java.lang.Long executerId,
java.lang.Long executerSubstituteId) |
childFinished, executeFlowNode, getHandledTypeFlowNodeState stepForward(SFlowNodeInstance flowNodeInstance, java.lang.Long executerId, java.lang.Long executerSubstituteId) throws SFlowNodeExecutionException
flowNodeInstance - executerId - executerSubstituteId - SFlowNodeExecutionExceptionvoid setStateByStateId(long flowNodeInstanceId,
int stateId)
throws SActivityStateExecutionException
flowNodeInstanceId - stateId - SActivityStateExecutionExceptionvoid childReachedState(SProcessInstance childProcInst, org.bonitasoft.engine.bpm.process.ProcessInstanceState childState, boolean hasActionsToExecute) throws SBonitaException
childProcInst - childState - hasActionsToExecute - SBonitaExceptionvoid archiveFlowNodeInstance(SFlowNodeInstance flowNodeInstance, boolean deleteAfterArchive, long processDefinitionId) throws SArchivingException
flowNodeInstance - The flow node instance to be archived.deleteAfterArchive - processDefinitionId - the identifier of process definitionSActivityExecutionException - in case an error occursSArchivingExceptionStateCode executeState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance, FlowNodeState state) throws SActivityStateExecutionException, SActivityExecutionException
processDefinition - the process definition of the SFlowNodeInstance on which to execute the state.flowNodeInstance - the SFlowNodeInstance whose state has to be executedstate - the FlowNodeState to executeFlowNodeState, after executing current stateSActivityStateExecutionException - if an exception occurs when executing current stateSActivityExecutionException - if an exception occurs when retrieving next state