com.dtolabs.rundeck.core.execution.workflow
Class StepFirstWorkflowStrategy

java.lang.Object
  extended by com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowStrategy
      extended by 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


Field Summary
protected static java.lang.String DATA_CONTEXT_PREFIX
           
protected static java.lang.String OPTION_KEY
           
protected static java.lang.String SECURE_OPTION_KEY
           
protected static java.lang.String SECURE_OPTION_VALUE
           
 
Fields inherited from interface com.dtolabs.rundeck.core.execution.workflow.WorkflowStrategy
NODE_FIRST, STEP_FIRST
 
Constructor Summary
StepFirstWorkflowStrategy(Framework framework)
           
 
Method Summary
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.
 WorkflowExecutionResult executeWorkflowImpl(StepExecutionContext executionContext, WorkflowExecutionItem item)
           
 
Methods inherited from class com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowStrategy
convertFailures, executeWFItem, executeWorkflow, executeWorkflowItemsForNodeSet, executeWorkflowItemsForNodeSet, getWorkflowListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

StepFirstWorkflowStrategy

public StepFirstWorkflowStrategy(Framework framework)
Method Detail

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.