public abstract class BaseWorkflowStrategy extends java.lang.Object implements WorkflowStrategy
NODE_FIRST, STEP_FIRST
Constructor and Description |
---|
BaseWorkflowStrategy(Framework framework) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.util.Collection<StepExecutionResult>> |
convertFailures(java.util.Map<java.lang.Integer,StepExecutionResult> failedMap)
Convert map of step execution results keyed by step number, to a collection of step execution results
keyed by node name
|
protected StepExecutionResult |
executeWFItem(StepExecutionContext executionContext,
java.util.Map<java.lang.Integer,StepExecutionResult> failedMap,
int c,
StepExecutionItem cmd)
Execute a workflow item, returns true if the item succeeds.
|
WorkflowExecutionResult |
executeWorkflow(StepExecutionContext executionContext,
WorkflowExecutionItem item) |
abstract WorkflowExecutionResult |
executeWorkflowImpl(StepExecutionContext executionContext,
WorkflowExecutionItem item) |
protected boolean |
executeWorkflowItemsForNodeSet(StepExecutionContext executionContext,
java.util.Map<java.lang.Integer,StepExecutionResult> failedMap,
java.util.List<StepExecutionResult> resultList,
java.util.List<StepExecutionItem> iWorkflowCmdItems,
boolean keepgoing)
Execute the sequence of ExecutionItems within the context, and with the given keepgoing value, return true if
successful
|
protected boolean |
executeWorkflowItemsForNodeSet(StepExecutionContext executionContext,
java.util.Map<java.lang.Integer,StepExecutionResult> failedMap,
java.util.List<StepExecutionResult> resultList,
java.util.List<StepExecutionItem> iWorkflowCmdItems,
boolean keepgoing,
int beginStepIndex)
Execute the sequence of ExecutionItems within the context, and with the given keepgoing value, return true if
successful
|
protected WorkflowExecutionListener |
getWorkflowListener(ExecutionContext executionContext) |
public BaseWorkflowStrategy(Framework framework)
public final WorkflowExecutionResult executeWorkflow(StepExecutionContext executionContext, WorkflowExecutionItem item)
executeWorkflow
in interface WorkflowExecutor
protected WorkflowExecutionListener getWorkflowListener(ExecutionContext executionContext)
public abstract WorkflowExecutionResult executeWorkflowImpl(StepExecutionContext executionContext, WorkflowExecutionItem item)
protected StepExecutionResult executeWFItem(StepExecutionContext executionContext, java.util.Map<java.lang.Integer,StepExecutionResult> failedMap, int c, StepExecutionItem cmd)
failedMap
- List to add any messages if the item failsc
- index of the WF itemcmd
- WF item descriptorprotected boolean executeWorkflowItemsForNodeSet(StepExecutionContext executionContext, java.util.Map<java.lang.Integer,StepExecutionResult> failedMap, java.util.List<StepExecutionResult> resultList, java.util.List<StepExecutionItem> iWorkflowCmdItems, boolean keepgoing)
protected boolean executeWorkflowItemsForNodeSet(StepExecutionContext executionContext, java.util.Map<java.lang.Integer,StepExecutionResult> failedMap, java.util.List<StepExecutionResult> resultList, java.util.List<StepExecutionItem> iWorkflowCmdItems, boolean keepgoing, int beginStepIndex)
protected java.util.Map<java.lang.String,java.util.Collection<StepExecutionResult>> convertFailures(java.util.Map<java.lang.Integer,StepExecutionResult> failedMap)