Class SequentialWorkflowStrategy
java.lang.Object
org.tasktide.engine.policies.workflow.AbstractWorkflowStrategy
org.tasktide.engine.policies.workflow.SequentialWorkflowStrategy
- All Implemented Interfaces:
WorkflowAcquisitionStrategy
Sequential consummation strategy for steps of a workflow
-
Field Summary
Fields inherited from class AbstractWorkflowStrategy
activePolicy, counter, hasRun, id, limit, mode, policies, workflow -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure exhaustiveWorkflowStrategyModeif not mode was not specified on constructionevaluateWorkload(List<WorkItem> workload) Evaluate workload based on configuredWorkflowStrategyModeFetchesWorkItemcollection according to configuredTaskTideWorkloadAcquisitionPolicy.booleanhasNext()Implements own hasNExt logic depending on modevoidsetHasRun(boolean val) Set has run for cloningMethods inherited from class AbstractWorkflowStrategy
evaluateIterationCounter, getActive, getHasRun, getId, getIterationLimit, getQueueTargets, getStrategyMode, getTargetNames, resetPolicyQueue, setIterationLimit, setStrategyMode
-
Method Details
-
fetchWorkload
FetchesWorkItemcollection according to configuredTaskTideWorkloadAcquisitionPolicy. Stateless sequential processing of steps in the workflow, where flow is determined by the configuredWorkflowStrategyMode- Returns:
- List-
WorkItem
-
configureDefaultStrategyMode
public void configureDefaultStrategyMode()Configure exhaustiveWorkflowStrategyModeif not mode was not specified on construction -
evaluateWorkload
-
hasNext
public boolean hasNext()Implements own hasNExt logic depending on mode- Specified by:
hasNextin interfaceWorkflowAcquisitionStrategy- Overrides:
hasNextin classAbstractWorkflowStrategy- Returns:
- boolean
-
setHasRun
public void setHasRun(boolean val) Set has run for cloning- Specified by:
setHasRunin interfaceWorkflowAcquisitionStrategy- Overrides:
setHasRunin classAbstractWorkflowStrategy- Parameters:
val-
-