Package org.bonitasoft.engine.execution
Interface ContainerExecutor
- All Known Subinterfaces:
FlowNodeExecutor,ProcessExecutor
- All Known Implementing Classes:
FlowNodeExecutorImpl,ProcessExecutorImpl
public interface ContainerExecutor
- Author:
- Baptiste Mesta, Celine Souchet
-
Method Summary
Modifier and TypeMethodDescriptionvoidchildFinished(long processDefinitionId, long parentId, SFlowNodeInstance childFlowNode) Method called to notify this container executor that a child reached the given stateexecuteFlowNode(SFlowNodeInstance flowNodeInstance, Long executerId, Long executerSubstituteId) Execute a flow node in the context of this container executor
-
Method Details
-
childFinished
void childFinished(long processDefinitionId, long parentId, SFlowNodeInstance childFlowNode) throws SBonitaException Method called to notify this container executor that a child reached the given state- Parameters:
processDefinitionId- The identifier of the process definitionparentId- The identifier of the parent of the flow nodechildFlowNode-- Throws:
SBonitaException
-
executeFlowNode
FlowNodeState executeFlowNode(SFlowNodeInstance flowNodeInstance, Long executerId, Long executerSubstituteId) throws SFlowNodeReadException, SFlowNodeExecutionException Execute a flow node in the context of this container executor- Parameters:
flowNodeInstance- The flow node instanceexecuterId- The identifier of the user which execute the flow nodeexecuterSubstituteId- The identifier of the delegated user which execute the flow node- Returns:
- The new state of the flow node after execution
- Throws:
SFlowNodeReadExceptionSFlowNodeExecutionException- Throw if there is an error when execute the flow node
-
getHandledType
String getHandledType()- Returns:
- The handled type
-