001: /*
002: * Copyright 2005-2006 The Kuali Foundation.
003: *
004: *
005: * Licensed under the Educational Community License, Version 1.0 (the "License");
006: * you may not use this file except in compliance with the License.
007: * You may obtain a copy of the License at
008: *
009: * http://www.opensource.org/licenses/ecl1.php
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package edu.iu.uis.eden.clientapp.vo;
018:
019: import java.io.Serializable;
020:
021: import edu.iu.uis.eden.engine.node.RouteNodeInstance;
022:
023: /**
024: * Transport object representing a {@link RouteNodeInstance}.
025: *
026: * @author ewestfal
027: *
028: * @workflow.webservice-object
029: */
030: public class RouteNodeInstanceVO implements Serializable {
031:
032: private static final long serialVersionUID = -5456548621231617447L;
033:
034: private Long routeNodeInstanceId;
035: private Long documentId;
036: private Long branchId;
037: private Long routeNodeId;
038: private Long processId;
039: private String name;
040: private boolean active;
041: private boolean complete;
042: private boolean initial;
043: private StateVO[] state = new StateVO[0];
044: private RouteNodeInstanceVO[] nextNodes = new RouteNodeInstanceVO[0];
045:
046: public boolean isActive() {
047: return active;
048: }
049:
050: public void setActive(boolean active) {
051: this .active = active;
052: }
053:
054: public Long getBranchId() {
055: return branchId;
056: }
057:
058: public void setBranchId(Long branchId) {
059: this .branchId = branchId;
060: }
061:
062: public boolean isComplete() {
063: return complete;
064: }
065:
066: public void setComplete(boolean complete) {
067: this .complete = complete;
068: }
069:
070: public Long getDocumentId() {
071: return documentId;
072: }
073:
074: public void setDocumentId(Long documentId) {
075: this .documentId = documentId;
076: }
077:
078: public boolean isInitial() {
079: return initial;
080: }
081:
082: public void setInitial(boolean initial) {
083: this .initial = initial;
084: }
085:
086: public Long getProcessId() {
087: return processId;
088: }
089:
090: public void setProcessId(Long processId) {
091: this .processId = processId;
092: }
093:
094: public String getName() {
095: return name;
096: }
097:
098: public void setName(String name) {
099: this .name = name;
100: }
101:
102: public Long getRouteNodeId() {
103: return routeNodeId;
104: }
105:
106: public void setRouteNodeId(Long routeNodeId) {
107: this .routeNodeId = routeNodeId;
108: }
109:
110: public Long getRouteNodeInstanceId() {
111: return routeNodeInstanceId;
112: }
113:
114: public void setRouteNodeInstanceId(Long routeNodeInstanceId) {
115: this .routeNodeInstanceId = routeNodeInstanceId;
116: }
117:
118: public StateVO[] getState() {
119: return state;
120: }
121:
122: public void setState(StateVO[] state) {
123: this .state = state;
124: }
125:
126: public StateVO getState(String key) {
127: for (int index = 0; index < getState().length; index++) {
128: StateVO nodeState = (StateVO) getState()[index];
129: if (nodeState.getKey().equals(key)) {
130: return nodeState;
131: }
132: }
133: return null;
134: }
135:
136: public RouteNodeInstanceVO[] getNextNodes() {
137: return nextNodes;
138: }
139:
140: public void setNextNodes(RouteNodeInstanceVO[] nextNodes) {
141: this.nextNodes = nextNodes;
142: }
143: }
|