01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.clientapp.vo;
18:
19: import java.io.Serializable;
20:
21: import edu.iu.uis.eden.engine.node.Process;
22:
23: /**
24: * Transport object for a {@link Process}.
25: *
26: * @author ewestfal
27: *
28: * @workflow.webservice-object
29: */
30: public class ProcessVO implements Serializable {
31:
32: private static final long serialVersionUID = 1802130981664121439L;
33:
34: private Long processId;
35: private String name;
36: private RouteNodeVO initialRouteNode;
37: private boolean initial = false;
38: private RouteNodeVO[] nodes = new RouteNodeVO[0];
39:
40: public boolean isInitial() {
41: return initial;
42: }
43:
44: public void setInitial(boolean initial) {
45: this .initial = initial;
46: }
47:
48: public RouteNodeVO getInitialRouteNode() {
49: return initialRouteNode;
50: }
51:
52: public void setInitialRouteNode(RouteNodeVO initialRouteNode) {
53: this .initialRouteNode = initialRouteNode;
54: }
55:
56: public String getName() {
57: return name;
58: }
59:
60: public void setName(String name) {
61: this .name = name;
62: }
63:
64: public Long getProcessId() {
65: return processId;
66: }
67:
68: public void setProcessId(Long processId) {
69: this .processId = processId;
70: }
71:
72: public RouteNodeVO getRouteNode(Long routeNodeId) {
73: for (int index = 0; index < nodes.length; index++) {
74: RouteNodeVO node = nodes[index];
75: if (node.getRouteNodeId().equals(routeNodeId)) {
76: return node;
77: }
78: }
79: return null;
80: }
81:
82: }
|