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,
org.bonitasoft.engine.core.process.instance.model.builder.BPMInstanceBuilders bpmInstanceBuilders,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
ContainerRegistry containerRegistry,
org.bonitasoft.engine.core.process.definition.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.transaction.TransactionService transactionService) |
| Modifier and Type | Method and Description |
|---|---|
void |
archiveFlowNodeInstance(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
boolean deleteAfterArchive,
long processDefinitionId)
Archive the flownode instance given as parameter.
|
void |
childFinished(long processDefinitionId,
long flowNodeInstanceId,
int stateId,
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 executerDelegateId)
execute a flow node in the context of this container executor
|
org.bonitasoft.engine.core.process.instance.api.states.StateCode |
executeState(org.bonitasoft.engine.core.process.definition.model.SProcessDefinition processDefinition,
org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
org.bonitasoft.engine.core.process.instance.api.states.FlowNodeState state) |
String |
getHandledType() |
protected org.bonitasoft.engine.core.process.instance.model.builder.SFlowNodeInstanceLogBuilder |
getQueriableLog(org.bonitasoft.engine.queriablelogger.model.builder.HasCRUDEAction.ActionType actionType,
String message) |
protected <T extends org.bonitasoft.engine.queriablelogger.model.builder.SLogBuilder> |
initializeLogBuilder(T logBuilder,
String message) |
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 executerDelegateId) |
protected <T extends org.bonitasoft.engine.queriablelogger.model.builder.HasCRUDEAction> |
updateLog(org.bonitasoft.engine.queriablelogger.model.builder.HasCRUDEAction.ActionType actionType,
T logBuilder) |
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, org.bonitasoft.engine.core.process.instance.model.builder.BPMInstanceBuilders bpmInstanceBuilders, org.bonitasoft.engine.log.technical.TechnicalLoggerService logger, ContainerRegistry containerRegistry, org.bonitasoft.engine.core.process.definition.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.transaction.TransactionService transactionService)
public org.bonitasoft.engine.core.process.instance.api.states.StateCode executeState(org.bonitasoft.engine.core.process.definition.model.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 executerDelegateId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeExecutionException
stepForward in interface FlowNodeExecutororg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeExecutionExceptionprotected <T extends org.bonitasoft.engine.queriablelogger.model.builder.SLogBuilder> void initializeLogBuilder(T logBuilder,
String message)
protected <T extends org.bonitasoft.engine.queriablelogger.model.builder.HasCRUDEAction> void updateLog(org.bonitasoft.engine.queriablelogger.model.builder.HasCRUDEAction.ActionType actionType,
T logBuilder)
protected org.bonitasoft.engine.core.process.instance.model.builder.SFlowNodeInstanceLogBuilder getQueriableLog(org.bonitasoft.engine.queriablelogger.model.builder.HasCRUDEAction.ActionType actionType,
String message)
public 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,
int stateId,
long parentId)
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
ContainerExecutorchildFinished in interface ContainerExecutororg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic 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 executerDelegateId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeExecutionException
ContainerExecutorexecuteFlowNode in interface ContainerExecutororg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeExecutionExceptionpublic void archiveFlowNodeInstance(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
boolean deleteAfterArchive,
long processDefinitionId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityExecutionException
FlowNodeExecutorarchiveFlowNodeInstance in interface FlowNodeExecutorflowNodeInstance - The flow node instance to be archived.processDefinitionId - the identifier of process definitionorg.bonitasoft.engine.core.process.instance.api.exceptions.SActivityExecutionException - in case an error occursCopyright © 2013 BonitaSoft. All Rights Reserved.