View Javadoc

1   package org.rundeck.api.domain;
2   
3   import java.util.Map;
4   
5   /**
6    * Represents the state of a step in a workflow
7    */
8   public class WorkflowStepState extends WorkflowStepContextState {
9       private boolean nodeStep;
10      private WorkflowState subWorkflow;
11      private Map<String, WorkflowStepContextState> nodeStates;
12  
13      /**
14       * Return true if this step runs on each target node
15       * @return
16       */
17      public boolean isNodeStep() {
18          return nodeStep;
19      }
20  
21      public void setNodeStep(boolean nodeStep) {
22          this.nodeStep = nodeStep;
23      }
24  
25      /**
26       * Return sub workflow if this step has one
27       * @return
28       */
29      public WorkflowState getSubWorkflow() {
30          return subWorkflow;
31      }
32  
33      public void setSubWorkflow(WorkflowState subWorkflow) {
34          this.subWorkflow = subWorkflow;
35      }
36  
37      /**
38       * Return the state of each target node if this step runs on each target node
39       * @return
40       */
41      public Map<String, WorkflowStepContextState> getNodeStates() {
42          return nodeStates;
43      }
44  
45      public void setNodeStates(Map<String, WorkflowStepContextState> nodeStates) {
46          this.nodeStates = nodeStates;
47      }
48  }