com.dtolabs.rundeck.core.execution.workflow
Class StepFirstWorkflowStrategy
java.lang.Object
com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowStrategy
com.dtolabs.rundeck.core.execution.workflow.StepFirstWorkflowStrategy
- All Implemented Interfaces:
- WorkflowExecutor, WorkflowStrategy
public class StepFirstWorkflowStrategy
- extends BaseWorkflowStrategy
StepFirstWorkflowStrategy iterates over the workflow steps and dispatches each one to all nodes matching the filter.
This strategy is used either for an entire workflow and set of multiple nodes OR by the NodeFirstWorkflowStrategy as
the inner loop over a single node.
The WorkflowExecutionResult will contain as the resultSet a map of Node name to
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATA_CONTEXT_PREFIX
protected static final java.lang.String DATA_CONTEXT_PREFIX
- See Also:
- Constant Field Values
OPTION_KEY
protected static final java.lang.String OPTION_KEY
- See Also:
- Constant Field Values
SECURE_OPTION_KEY
protected static final java.lang.String SECURE_OPTION_KEY
- See Also:
- Constant Field Values
SECURE_OPTION_VALUE
protected static final java.lang.String SECURE_OPTION_VALUE
- See Also:
- Constant Field Values
StepFirstWorkflowStrategy
public StepFirstWorkflowStrategy(Framework framework)
executeWorkflowImpl
public WorkflowExecutionResult executeWorkflowImpl(StepExecutionContext executionContext,
WorkflowExecutionItem item)
- Specified by:
executeWorkflowImpl
in class BaseWorkflowStrategy
createPrintableDataContext
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> createPrintableDataContext(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> dataContext)
- Creates a copy of the given data context with the secure option values obfuscated.
This does not modify the original data context.
"secureOption" map values will always be obfuscated. "option" entries that are also in "secureOption"
will have their values obfuscated. All other maps within the data context will be added
directly to the copy.