1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.rice.kew.dto;
18
19 import java.io.Serializable;
20
21
22
23
24
25
26 public class RouteNodeInstanceDTO implements Serializable {
27
28 private static final long serialVersionUID = -5456548621231617447L;
29
30 private Long routeNodeInstanceId;
31 private String documentId;
32 private Long branchId;
33 private Long routeNodeId;
34 private Long processId;
35 private String name;
36 private boolean active;
37 private boolean complete;
38 private boolean initial;
39 private StateDTO[] state = new StateDTO[0];
40 private RouteNodeInstanceDTO[] nextNodes = new RouteNodeInstanceDTO[0];
41
42 public boolean isActive() {
43 return active;
44 }
45 public void setActive(boolean active) {
46 this.active = active;
47 }
48 public Long getBranchId() {
49 return branchId;
50 }
51 public void setBranchId(Long branchId) {
52 this.branchId = branchId;
53 }
54 public boolean isComplete() {
55 return complete;
56 }
57 public void setComplete(boolean complete) {
58 this.complete = complete;
59 }
60 public String getDocumentId() {
61 return documentId;
62 }
63 public void setDocumentId(String documentId) {
64 this.documentId = documentId;
65 }
66 public boolean isInitial() {
67 return initial;
68 }
69 public void setInitial(boolean initial) {
70 this.initial = initial;
71 }
72 public Long getProcessId() {
73 return processId;
74 }
75 public void setProcessId(Long processId) {
76 this.processId = processId;
77 }
78 public String getName() {
79 return name;
80 }
81 public void setName(String name) {
82 this.name = name;
83 }
84 public Long getRouteNodeId() {
85 return routeNodeId;
86 }
87 public void setRouteNodeId(Long routeNodeId) {
88 this.routeNodeId = routeNodeId;
89 }
90 public Long getRouteNodeInstanceId() {
91 return routeNodeInstanceId;
92 }
93 public void setRouteNodeInstanceId(Long routeNodeInstanceId) {
94 this.routeNodeInstanceId = routeNodeInstanceId;
95 }
96 public StateDTO[] getState() {
97 return state;
98 }
99 public void setState(StateDTO[] state) {
100 this.state = state;
101 }
102
103 public StateDTO getState(String key) {
104 for (int index = 0; index < getState().length; index++) {
105 StateDTO nodeState = (StateDTO) getState()[index];
106 if (nodeState.getKey().equals(key)) {
107 return nodeState;
108 }
109 }
110 return null;
111 }
112
113 public RouteNodeInstanceDTO[] getNextNodes() {
114 return nextNodes;
115 }
116
117 public void setNextNodes(RouteNodeInstanceDTO[] nextNodes) {
118 this.nextNodes = nextNodes;
119 }
120 }