Package io.nflow.engine.internal.dao
Class WorkflowInstanceDao
java.lang.Object
io.nflow.engine.internal.dao.WorkflowInstanceDao
Use setter injection because constructor injection may not work when nFlow is used in some legacy systems.
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowInstanceDao(SQLVariants sqlVariants, JdbcTemplate nflowJdbcTemplate, TransactionTemplate transactionTemplate, NamedParameterJdbcTemplate nflowNamedParameterJdbcTemplate, ExecutorDao executorDao, WorkflowInstanceExecutor workflowInstanceExecutor, WorkflowInstanceFactory workflowInstanceFactory, Environment env) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckStateVariableValueLength(String name, String value) voidclearExecutorId(List<Long> workflowInstances) getSignal(long workflowInstanceId) getWorkflowInstance(long id, Set<WorkflowInstanceInclude> includes, Long maxActions, boolean queryArchive) getWorkflowInstanceState(long workflowInstanceId) getWorkflowInstanceType(long workflowInstanceId) longinsertWorkflowInstance(WorkflowInstance instance) longlonginsertWorkflowInstanceAction(WorkflowInstance instance, WorkflowInstanceAction action) pollNextWorkflowInstanceIds(int batchSize) voidbooleansetSignal(long workflowInstanceId, Optional<Integer> signal, String reason, WorkflowInstanceAction.WorkflowActionType actionType) booleanintupdateWorkflowInstance(WorkflowInstance instance) voidupdateWorkflowInstanceAfterExecution(WorkflowInstance instance, WorkflowInstanceAction action, List<WorkflowInstance> childWorkflows, List<WorkflowInstance> workflows, boolean createAction) booleanwakeUpWorkflowExternally(long workflowInstanceId, List<String> expectedStates) booleanwakeupWorkflowInstanceIfNotExecuting(long workflowInstanceId, List<String> expectedStates)
-
Constructor Details
-
WorkflowInstanceDao
@Inject public WorkflowInstanceDao(SQLVariants sqlVariants, JdbcTemplate nflowJdbcTemplate, TransactionTemplate transactionTemplate, NamedParameterJdbcTemplate nflowNamedParameterJdbcTemplate, ExecutorDao executorDao, WorkflowInstanceExecutor workflowInstanceExecutor, WorkflowInstanceFactory workflowInstanceFactory, Environment env)
-
-
Method Details
-
insertWorkflowInstance
-
updateWorkflowInstanceAfterExecution
public void updateWorkflowInstanceAfterExecution(WorkflowInstance instance, WorkflowInstanceAction action, List<WorkflowInstance> childWorkflows, List<WorkflowInstance> workflows, boolean createAction) -
updateWorkflowInstance
-
recoverWorkflowInstancesFromDeadNodes
public void recoverWorkflowInstancesFromDeadNodes() -
checkStateVariableValueLength
-
updateNotRunningWorkflowInstance
-
wakeUpWorkflowExternally
-
wakeupWorkflowInstanceIfNotExecuting
-
getWorkflowInstance
public WorkflowInstance getWorkflowInstance(long id, Set<WorkflowInstanceInclude> includes, Long maxActions, boolean queryArchive) -
pollNextWorkflowInstanceIds
-
clearExecutorId
-
queryWorkflowInstances
-
queryWorkflowInstancesAsStream
-
insertWorkflowInstanceAction
@Transactional(propagation=MANDATORY) public long insertWorkflowInstanceAction(WorkflowInstance instance, WorkflowInstanceAction action) -
insertWorkflowInstanceAction
-
getWorkflowInstanceState
-
getSignal
-
setSignal
@Transactional public boolean setSignal(long workflowInstanceId, Optional<Integer> signal, String reason, WorkflowInstanceAction.WorkflowActionType actionType) -
getWorkflowInstanceType
-