View Javadoc

1   package org.rundeck.api.domain;
2   
3   import java.util.List;
4   import java.util.Set;
5   
6   /**
7    * Represents the state of a workflow of steps
8    */
9   public class WorkflowState extends BaseState {
10      private int stepCount;
11      private Set<RundeckNodeIdentity> targetNodes;
12      private List<WorkflowStepState> steps;
13  
14      /**
15       * Return the number of steps in this workflow
16       * @return
17       */
18      public int getStepCount() {
19          return stepCount;
20      }
21  
22      public void setStepCount(int stepCount) {
23          this.stepCount = stepCount;
24      }
25  
26      /**
27       * Identify the target nodes of this workflow
28       * @return
29       */
30      public Set<RundeckNodeIdentity> getTargetNodes() {
31          return targetNodes;
32      }
33  
34      public void setTargetNodes(Set<RundeckNodeIdentity> targetNodes) {
35          this.targetNodes = targetNodes;
36      }
37  
38      /**
39       * Return the list of steps for this workflow
40       * @return
41       */
42      public List<WorkflowStepState> getSteps() {
43          return steps;
44      }
45  
46      public void setSteps(List<WorkflowStepState> steps) {
47          this.steps = steps;
48      }
49  
50  }