@Component
public class ExecuteFlowNodes
extends java.lang.Object
This class is called after the start of the engine and will restart elements given their ids.
It will restart these elements using multiple transaction using a batch size configured by the property `bonita.tenant.work.batch_restart_size`
| Constructor and Description |
|---|
ExecuteFlowNodes(WorkService workService,
TechnicalLoggerService logger,
ActivityInstanceService activityInstanceService,
GatewayInstanceService gatewayInstanceService,
ProcessDefinitionService processDefinitionService,
FlowNodeStateManager flowNodeStateManager,
BPMWorkFactory workFactory,
UserTransactionService userTransactionService,
int batchRestartSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
executeBatch(org.bonitasoft.engine.tenant.restart.ExecuteFlowNodes.ExecutionMonitor executionMonitor,
java.util.List<java.lang.Long> flowNodeIds) |
void |
executeFlowNodes(java.util.List<java.lang.Long> flowNodeIds) |
public ExecuteFlowNodes(WorkService workService, @Qualifier(value="tenantTechnicalLoggerService") TechnicalLoggerService logger, ActivityInstanceService activityInstanceService, GatewayInstanceService gatewayInstanceService, ProcessDefinitionService processDefinitionService, FlowNodeStateManager flowNodeStateManager, BPMWorkFactory workFactory, UserTransactionService userTransactionService, @Value(value="${bonita.tenant.work.batch_restart_size:1000}") int batchRestartSize)
public void executeFlowNodes(java.util.List<java.lang.Long> flowNodeIds)
public void executeBatch(org.bonitasoft.engine.tenant.restart.ExecuteFlowNodes.ExecutionMonitor executionMonitor,
java.util.List<java.lang.Long> flowNodeIds)
throws SBonitaException
SBonitaException