Class EngineWorkflowExecutor
- java.lang.Object
-
- com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowExecutor
-
- com.dtolabs.rundeck.core.execution.workflow.EngineWorkflowExecutor
-
- All Implemented Interfaces:
WorkflowExecutor
public class EngineWorkflowExecutor extends BaseWorkflowExecutor
Primary executor for workflows
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEngineWorkflowExecutor.AugmentorCan augment behavior of this workflow executorstatic classEngineWorkflowExecutor.BaseProfileBase profile which provides initial statesstatic classEngineWorkflowExecutor.DefaultAugmentor-
Nested classes/interfaces inherited from class com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowExecutor
BaseWorkflowExecutor.BaseWorkflowExecutionResult, BaseWorkflowExecutor.StepResultCapture
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSTEP_AFTER_KEYstatic java.lang.StringSTEP_ANY_FLOW_CONTROL_HALT_KEYstatic java.lang.StringSTEP_ANY_STATE_FAILED_KEYstatic java.lang.StringSTEP_ANY_STATE_SKIPPED_KEYstatic java.lang.StringSTEP_ANY_STATE_SUCCESS_KEYstatic java.lang.StringSTEP_BEFORE_KEYstatic java.lang.StringSTEP_COMPLETED_KEYstatic java.lang.StringSTEP_CONTROL_KEYstatic java.lang.StringSTEP_CONTROL_SKIP_KEYstatic java.lang.StringSTEP_CONTROL_STARTstatic java.lang.StringSTEP_DATA_RESULT_KEY_PREFIXstatic java.lang.StringSTEP_FLOW_CONTROL_KEYstatic java.lang.StringSTEP_FLOW_CONTROL_STATUS_KEYstatic java.lang.StringSTEP_STATE_KEYstatic java.lang.StringSTEP_STATE_RESULT_FAILUREstatic java.lang.StringSTEP_STATE_RESULT_SKIPPEDstatic java.lang.StringSTEP_STATE_RESULT_SUCCESSstatic java.lang.StringVALUE_FALSEstatic java.lang.StringVALUE_TRUEstatic java.lang.StringWORKFLOW_KEEPGOING_KEYstatic java.lang.StringWORKFLOW_STATE_KEYstatic java.lang.StringWORKFLOW_STATE_STARTED-
Fields inherited from class com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowExecutor
OPTION_KEY, SECURE_OPTION_KEY, SECURE_OPTION_VALUE, WorkflowResultFailed
-
Fields inherited from interface com.dtolabs.rundeck.core.execution.workflow.WorkflowExecutor
NODE_FIRST, PARALLEL, STEP_FIRST
-
-
Constructor Summary
Constructors Constructor Description EngineWorkflowExecutor(IFramework framework)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.util.Set<StepOperation>buildOperations(EngineWorkflowExecutor engineWorkflowExecutor, StepExecutionContext executionContext, WorkflowExecutionItem item, IWorkflow workflow, WorkflowExecutionListener wlistener, RuleEngine ruleEngine, MutableStateObj state, WorkflowStrategyProfile profile, com.dtolabs.rundeck.core.execution.workflow.EngineWorkflowExecutor.LogOut log)WorkflowExecutionResultexecuteWorkflowImpl(StepExecutionContext executionContext, WorkflowExecutionItem item)static WorkflowStrategysetupWorkflowStrategy(StepExecutionContext executionContext, WorkflowExecutionItem item, IWorkflow workflow, IFramework framework)static java.lang.StringstepKey(java.lang.String key, java.lang.Object stepNum)static voidupdateStateWithStepResultData(MutableStateObj state, java.lang.Object identity, java.util.Map<java.lang.String,java.lang.Object> failureData)-
Methods inherited from class com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowExecutor
addNodeStepFailureContextData, addStepFailureContextData, combineNodeResultData, combineResultData, convertFailures, createPrintableDataContext, createPrintableDataContext, executeWFItem, executeWorkflow, executeWorkflowItemsForNodeSet, executeWorkflowStep, getFramework, getWorkflowListener, nodeStepResultFromNodeStepException, replaceFailedNodesListenerInContext, reportNodesMatched, validateNodeSet, workflowResult
-
-
-
-
Field Detail
-
STEP_FLOW_CONTROL_KEY
public static final java.lang.String STEP_FLOW_CONTROL_KEY
- See Also:
- Constant Field Values
-
STEP_ANY_FLOW_CONTROL_HALT_KEY
public static final java.lang.String STEP_ANY_FLOW_CONTROL_HALT_KEY
- See Also:
- Constant Field Values
-
STEP_FLOW_CONTROL_STATUS_KEY
public static final java.lang.String STEP_FLOW_CONTROL_STATUS_KEY
- See Also:
- Constant Field Values
-
WORKFLOW_STATE_KEY
public static final java.lang.String WORKFLOW_STATE_KEY
- See Also:
- Constant Field Values
-
WORKFLOW_KEEPGOING_KEY
public static final java.lang.String WORKFLOW_KEEPGOING_KEY
- See Also:
- Constant Field Values
-
WORKFLOW_STATE_STARTED
public static final java.lang.String WORKFLOW_STATE_STARTED
- See Also:
- Constant Field Values
-
STEP_BEFORE_KEY
public static final java.lang.String STEP_BEFORE_KEY
- See Also:
- Constant Field Values
-
STEP_AFTER_KEY
public static final java.lang.String STEP_AFTER_KEY
- See Also:
- Constant Field Values
-
STEP_STATE_KEY
public static final java.lang.String STEP_STATE_KEY
- See Also:
- Constant Field Values
-
STEP_ANY_STATE_SKIPPED_KEY
public static final java.lang.String STEP_ANY_STATE_SKIPPED_KEY
- See Also:
- Constant Field Values
-
STEP_ANY_STATE_SUCCESS_KEY
public static final java.lang.String STEP_ANY_STATE_SUCCESS_KEY
- See Also:
- Constant Field Values
-
STEP_ANY_STATE_FAILED_KEY
public static final java.lang.String STEP_ANY_STATE_FAILED_KEY
- See Also:
- Constant Field Values
-
STEP_COMPLETED_KEY
public static final java.lang.String STEP_COMPLETED_KEY
- See Also:
- Constant Field Values
-
VALUE_TRUE
public static final java.lang.String VALUE_TRUE
-
VALUE_FALSE
public static final java.lang.String VALUE_FALSE
-
STEP_STATE_RESULT_SUCCESS
public static final java.lang.String STEP_STATE_RESULT_SUCCESS
- See Also:
- Constant Field Values
-
STEP_STATE_RESULT_FAILURE
public static final java.lang.String STEP_STATE_RESULT_FAILURE
- See Also:
- Constant Field Values
-
STEP_STATE_RESULT_SKIPPED
public static final java.lang.String STEP_STATE_RESULT_SKIPPED
- See Also:
- Constant Field Values
-
STEP_CONTROL_KEY
public static final java.lang.String STEP_CONTROL_KEY
- See Also:
- Constant Field Values
-
STEP_CONTROL_SKIP_KEY
public static final java.lang.String STEP_CONTROL_SKIP_KEY
- See Also:
- Constant Field Values
-
STEP_CONTROL_START
public static final java.lang.String STEP_CONTROL_START
- See Also:
- Constant Field Values
-
STEP_DATA_RESULT_KEY_PREFIX
public static final java.lang.String STEP_DATA_RESULT_KEY_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EngineWorkflowExecutor
public EngineWorkflowExecutor(IFramework framework)
-
-
Method Detail
-
stepKey
public static java.lang.String stepKey(java.lang.String key, java.lang.Object stepNum)
-
updateStateWithStepResultData
public static void updateStateWithStepResultData(MutableStateObj state, java.lang.Object identity, java.util.Map<java.lang.String,java.lang.Object> failureData)
-
executeWorkflowImpl
public WorkflowExecutionResult executeWorkflowImpl(StepExecutionContext executionContext, WorkflowExecutionItem item)
- Specified by:
executeWorkflowImplin classBaseWorkflowExecutor
-
setupWorkflowStrategy
public static WorkflowStrategy setupWorkflowStrategy(StepExecutionContext executionContext, WorkflowExecutionItem item, IWorkflow workflow, IFramework framework) throws ExecutionServiceException
- Throws:
ExecutionServiceException
-
buildOperations
protected static java.util.Set<StepOperation> buildOperations(EngineWorkflowExecutor engineWorkflowExecutor, StepExecutionContext executionContext, WorkflowExecutionItem item, IWorkflow workflow, WorkflowExecutionListener wlistener, RuleEngine ruleEngine, MutableStateObj state, WorkflowStrategyProfile profile, com.dtolabs.rundeck.core.execution.workflow.EngineWorkflowExecutor.LogOut log)
-
-