public class FlowNodeExecutorImpl extends java.lang.Object implements FlowNodeExecutor
| Constructor and Description |
|---|
FlowNodeExecutorImpl(FlowNodeStateManager flowNodeStateManager,
ActivityInstanceService activityInstanceManager,
ArchiveService archiveService,
DataInstanceService dataInstanceService,
ContainerRegistry containerRegistry,
ProcessDefinitionService processDefinitionService,
SCommentService commentService,
ProcessInstanceService processInstanceService,
ConnectorInstanceService connectorInstanceService,
ClassLoaderService classLoaderService,
WorkService workService,
BPMWorkFactory workFactory,
ContractDataService contractDataService,
ProcessInstanceInterruptor processInstanceInterruptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
archiveFlowNodeInstance(SFlowNodeInstance flowNodeInstance,
boolean deleteAfterArchive,
long processDefinitionId)
Archive the flow node instance given as parameter.
|
void |
childFinished(long processDefinitionId,
long parentId,
SFlowNodeInstance flowNodeInstance)
Method called to notify this container executor that a child reached the given state
|
void |
childReachedState(SProcessInstance childProcInst,
org.bonitasoft.engine.bpm.process.ProcessInstanceState childState,
boolean hasActionsToExecute) |
FlowNodeState |
executeFlowNode(SFlowNodeInstance flowNodeInstance,
java.lang.Long executerId,
java.lang.Long executerSubstituteId)
Execute a flow node in the context of this container executor
|
StateCode |
executeState(SProcessDefinition processDefinition,
SFlowNodeInstance flowNodeInstance,
FlowNodeState state) |
java.lang.String |
getHandledType() |
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) |
public FlowNodeExecutorImpl(FlowNodeStateManager flowNodeStateManager, ActivityInstanceService activityInstanceManager, ArchiveService archiveService, DataInstanceService dataInstanceService, ContainerRegistry containerRegistry, ProcessDefinitionService processDefinitionService, SCommentService commentService, ProcessInstanceService processInstanceService, ConnectorInstanceService connectorInstanceService, ClassLoaderService classLoaderService, WorkService workService, BPMWorkFactory workFactory, ContractDataService contractDataService, ProcessInstanceInterruptor processInstanceInterruptor)
public StateCode executeState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance, FlowNodeState state) throws SActivityStateExecutionException, SActivityExecutionException
executeState in interface FlowNodeExecutorprocessDefinition - 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 statepublic FlowNodeState stepForward(SFlowNodeInstance flowNodeInstance, java.lang.Long executerId, java.lang.Long executerSubstituteId) throws SFlowNodeExecutionException
stepForward in interface FlowNodeExecutorSFlowNodeExecutionExceptionpublic void setStateByStateId(long flowNodeInstanceId,
int stateId)
throws SActivityStateExecutionException
FlowNodeExecutorsetStateByStateId in interface FlowNodeExecutorSActivityStateExecutionExceptionpublic void childFinished(long processDefinitionId,
long parentId,
SFlowNodeInstance flowNodeInstance)
throws SFlowNodeNotFoundException,
SFlowNodeReadException,
SProcessDefinitionNotFoundException,
SBonitaReadException,
SArchivingException,
SFlowNodeModificationException,
SFlowNodeExecutionException,
SWorkRegisterException
ContainerExecutorchildFinished in interface ContainerExecutorprocessDefinitionId - The identifier of the process definitionparentId - The identifier of the parent of the flow nodeSFlowNodeNotFoundExceptionSFlowNodeReadExceptionSProcessDefinitionNotFoundExceptionSBonitaReadExceptionSArchivingExceptionSFlowNodeModificationExceptionSFlowNodeExecutionExceptionSWorkRegisterExceptionpublic void childReachedState(SProcessInstance childProcInst, org.bonitasoft.engine.bpm.process.ProcessInstanceState childState, boolean hasActionsToExecute) throws SBonitaException
childReachedState in interface FlowNodeExecutorSBonitaExceptionpublic java.lang.String getHandledType()
getHandledType in interface ContainerExecutorpublic FlowNodeState executeFlowNode(SFlowNodeInstance flowNodeInstance, java.lang.Long executerId, java.lang.Long executerSubstituteId) throws SFlowNodeExecutionException
ContainerExecutorexecuteFlowNode in interface ContainerExecutorflowNodeInstance - The flow node instanceexecuterId - The identifier of the user which execute the flow nodeexecuterSubstituteId - The identifier of the delegated user which execute the flow nodeSFlowNodeExecutionException - Throw if there is an error when execute the flow nodepublic void archiveFlowNodeInstance(SFlowNodeInstance flowNodeInstance, boolean deleteAfterArchive, long processDefinitionId) throws SArchivingException
FlowNodeExecutorarchiveFlowNodeInstance in interface FlowNodeExecutorflowNodeInstance - The flow node instance to be archived.processDefinitionId - the identifier of process definitionSArchivingException