public class FlowNodeExecutorImpl extends Object implements FlowNodeExecutor
| Constructor and Description |
|---|
FlowNodeExecutorImpl(FlowNodeStateManager flowNodeStateManager,
ActivityInstanceService activityInstanceManager,
OperationService operationService,
ArchiveService archiveService,
DataInstanceService dataInstanceService,
ContainerRegistry containerRegistry,
ProcessDefinitionService processDefinitionService,
SCommentService commentService,
ProcessInstanceService processInstanceService,
ConnectorInstanceService connectorInstanceService,
ClassLoaderService classLoaderService,
WorkService workService,
BPMWorkFactory workFactory,
ContractDataService contractDataService,
EventInstanceService eventInstanceService) |
| 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 sFlowNodeInstanceChild)
Method called to notify this container executor that a child reached the given state
|
void |
childReachedState(SProcessInstance childProcInst,
ProcessInstanceState childState,
boolean hasActionsToExecute) |
FlowNodeState |
executeFlowNode(long flowNodeInstanceId,
Long executerId,
Long executerSubstituteId)
Execute a flow node in the context of this container executor
|
StateCode |
executeState(SProcessDefinition processDefinition,
SFlowNodeInstance flowNodeInstance,
FlowNodeState state) |
String |
getHandledType() |
void |
setStateByStateId(long flowNodeInstanceId,
int stateId)
force the state of a flow node toa particular state
|
FlowNodeState |
stepForward(long flowNodeInstanceId,
Long executerId,
Long executerSubstituteId) |
public FlowNodeExecutorImpl(FlowNodeStateManager flowNodeStateManager, ActivityInstanceService activityInstanceManager, OperationService operationService, ArchiveService archiveService, DataInstanceService dataInstanceService, ContainerRegistry containerRegistry, ProcessDefinitionService processDefinitionService, SCommentService commentService, ProcessInstanceService processInstanceService, ConnectorInstanceService connectorInstanceService, ClassLoaderService classLoaderService, WorkService workService, BPMWorkFactory workFactory, ContractDataService contractDataService, EventInstanceService eventInstanceService)
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(long flowNodeInstanceId, Long executerId, 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 sFlowNodeInstanceChild)
throws SFlowNodeNotFoundException,
SFlowNodeReadException,
SProcessDefinitionNotFoundException,
SBonitaReadException,
SArchivingException,
SFlowNodeModificationException,
SFlowNodeExecutionException,
SContractDataDeletionException,
SWorkRegisterException
ContainerExecutorchildFinished in interface ContainerExecutorprocessDefinitionId - The identifier of the process definitionparentId - The identifier of the parent of the flow nodeSFlowNodeNotFoundExceptionSFlowNodeReadExceptionSProcessDefinitionNotFoundExceptionSBonitaReadExceptionSArchivingExceptionSFlowNodeModificationExceptionSFlowNodeExecutionExceptionSContractDataDeletionExceptionSWorkRegisterExceptionpublic void childReachedState(SProcessInstance childProcInst, ProcessInstanceState childState, boolean hasActionsToExecute) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
childReachedState in interface FlowNodeExecutororg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic String getHandledType()
getHandledType in interface ContainerExecutorpublic FlowNodeState executeFlowNode(long flowNodeInstanceId, Long executerId, Long executerSubstituteId) throws SFlowNodeExecutionException
ContainerExecutorexecuteFlowNode in interface ContainerExecutorflowNodeInstanceId - The identifier of 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 definitionSArchivingExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.