public class FlowNodeExecutorImpl extends Object implements FlowNodeExecutor
| Constructor and Description |
|---|
FlowNodeExecutorImpl(FlowNodeStateManager flowNodeStateManager,
org.bonitasoft.engine.core.process.instance.api.ActivityInstanceService activityInstanceManager,
org.bonitasoft.engine.core.operation.OperationService operationService,
org.bonitasoft.engine.archive.ArchiveService archiveService,
org.bonitasoft.engine.data.instance.api.DataInstanceService dataInstanceService,
ContainerRegistry containerRegistry,
ProcessDefinitionService processDefinitionService,
org.bonitasoft.engine.core.process.comment.api.SCommentService commentService,
org.bonitasoft.engine.core.process.instance.api.ProcessInstanceService processInstanceService,
org.bonitasoft.engine.core.connector.ConnectorInstanceService connectorInstanceService,
org.bonitasoft.engine.classloader.ClassLoaderService classLoaderService,
org.bonitasoft.engine.work.WorkService workService,
org.bonitasoft.engine.core.contract.data.ContractDataService contractDataService) |
| Modifier and Type | Method and Description |
|---|---|
void |
archiveFlowNodeInstance(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
boolean deleteAfterArchive,
long processDefinitionId)
Archive the flow node instance given as parameter.
|
void |
childFinished(long processDefinitionId,
long flowNodeInstanceId,
long parentId)
Method called to notify this container executor that a child reached the given state
|
void |
childReachedState(org.bonitasoft.engine.core.process.instance.model.SProcessInstance childProcInst,
ProcessInstanceState childState,
boolean hasActionsToExecute) |
org.bonitasoft.engine.core.process.instance.api.states.FlowNodeState |
executeFlowNode(long flowNodeInstanceId,
org.bonitasoft.engine.core.expression.control.model.SExpressionContext contextDependency,
List<org.bonitasoft.engine.core.operation.model.SOperation> operations,
long processInstanceId,
Long executerId,
Long executerSubstituteId)
Execute a flow node in the context of this container executor
|
org.bonitasoft.engine.core.process.instance.api.states.StateCode |
executeState(SProcessDefinition processDefinition,
org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
org.bonitasoft.engine.core.process.instance.api.states.FlowNodeState state) |
String |
getHandledType() |
void |
setStateByStateId(long sProcessDefinitionId,
long flowNodeInstanceId,
int stateId) |
org.bonitasoft.engine.core.process.instance.api.states.FlowNodeState |
stepForward(long flowNodeInstanceId,
org.bonitasoft.engine.core.expression.control.model.SExpressionContext expressionContext,
List<org.bonitasoft.engine.core.operation.model.SOperation> operations,
long processInstanceId,
Long executerId,
Long executerSubstituteId) |
public FlowNodeExecutorImpl(FlowNodeStateManager flowNodeStateManager, org.bonitasoft.engine.core.process.instance.api.ActivityInstanceService activityInstanceManager, org.bonitasoft.engine.core.operation.OperationService operationService, org.bonitasoft.engine.archive.ArchiveService archiveService, org.bonitasoft.engine.data.instance.api.DataInstanceService dataInstanceService, ContainerRegistry containerRegistry, ProcessDefinitionService processDefinitionService, org.bonitasoft.engine.core.process.comment.api.SCommentService commentService, org.bonitasoft.engine.core.process.instance.api.ProcessInstanceService processInstanceService, org.bonitasoft.engine.core.connector.ConnectorInstanceService connectorInstanceService, org.bonitasoft.engine.classloader.ClassLoaderService classLoaderService, org.bonitasoft.engine.work.WorkService workService, org.bonitasoft.engine.core.contract.data.ContractDataService contractDataService)
public org.bonitasoft.engine.core.process.instance.api.states.StateCode executeState(SProcessDefinition processDefinition, org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance, org.bonitasoft.engine.core.process.instance.api.states.FlowNodeState state) throws org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityStateExecutionException, org.bonitasoft.engine.core.process.instance.api.exceptions.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 stateorg.bonitasoft.engine.core.process.instance.api.exceptions.SActivityStateExecutionException - if an exception occurs when executing current stateorg.bonitasoft.engine.core.process.instance.api.exceptions.SActivityExecutionException - if an exception occurs when retrieving next statepublic org.bonitasoft.engine.core.process.instance.api.states.FlowNodeState stepForward(long flowNodeInstanceId,
org.bonitasoft.engine.core.expression.control.model.SExpressionContext expressionContext,
List<org.bonitasoft.engine.core.operation.model.SOperation> operations,
long processInstanceId,
Long executerId,
Long executerSubstituteId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeExecutionException
stepForward in interface FlowNodeExecutororg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeExecutionExceptionpublic void setStateByStateId(long sProcessDefinitionId,
long flowNodeInstanceId,
int stateId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityStateExecutionException
setStateByStateId in interface FlowNodeExecutororg.bonitasoft.engine.core.process.instance.api.exceptions.SActivityStateExecutionExceptionpublic void childFinished(long processDefinitionId,
long flowNodeInstanceId,
long parentId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException,
SProcessDefinitionNotFoundException,
org.bonitasoft.engine.persistence.SBonitaReadException,
SArchivingException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeExecutionException,
org.bonitasoft.engine.core.contract.data.SContractDataDeletionException
ContainerExecutorchildFinished in interface ContainerExecutorprocessDefinitionId - The identifier of the process definitionflowNodeInstanceId - The identifier of the flow node instanceparentId - The identifier of the parent of the flow nodeorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionSProcessDefinitionNotFoundExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionSArchivingExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeExecutionExceptionorg.bonitasoft.engine.core.contract.data.SContractDataDeletionExceptionpublic void childReachedState(org.bonitasoft.engine.core.process.instance.model.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 org.bonitasoft.engine.core.process.instance.api.states.FlowNodeState executeFlowNode(long flowNodeInstanceId,
org.bonitasoft.engine.core.expression.control.model.SExpressionContext contextDependency,
List<org.bonitasoft.engine.core.operation.model.SOperation> operations,
long processInstanceId,
Long executerId,
Long executerSubstituteId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeExecutionException
ContainerExecutorexecuteFlowNode in interface ContainerExecutorflowNodeInstanceId - The identifier of the flow node instanceprocessInstanceId - The identifier of the process instanceexecuterId - The identifier of the user which execute the flow nodeexecuterSubstituteId - The identifier of the delegated user which execute the flow nodeorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeExecutionException - Throw if there is an error when execute the flow nodepublic void archiveFlowNodeInstance(org.bonitasoft.engine.core.process.instance.model.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 © 2015 Bonitasoft S.A.. All rights reserved.