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