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.engine.node;
18:
19: import java.io.Serializable;
20:
21: import edu.iu.uis.eden.doctype.DocumentType;
22:
23: /**
24: * Represents a route path defined on a {@link DocumentType}. A Process is a named entity which
25: * simply points to an initial {@link RouteNode} which represents the beginning of the Process.
26: * The path of the process can then be followed using the next nodes defined on the route nodes.
27: *
28: * @author ewestfal
29: */
30: public class Process implements Serializable {
31:
32: private static final long serialVersionUID = -6338857095673479752L;
33:
34: private Long processId;
35: private String name;
36: private DocumentType documentType;
37: private RouteNode initialRouteNode;
38: private boolean initial = false;
39: private Integer lockVerNbr;
40:
41: public Long getProcessId() {
42: return processId;
43: }
44:
45: public void setProcessId(Long processId) {
46: this .processId = processId;
47: }
48:
49: public DocumentType getDocumentType() {
50: return documentType;
51: }
52:
53: public void setDocumentType(DocumentType documentType) {
54: this .documentType = documentType;
55: }
56:
57: public RouteNode getInitialRouteNode() {
58: return initialRouteNode;
59: }
60:
61: public void setInitialRouteNode(RouteNode initialRouteNode) {
62: this .initialRouteNode = initialRouteNode;
63: }
64:
65: public String getName() {
66: return name;
67: }
68:
69: public void setName(String name) {
70: this .name = name;
71: }
72:
73: public boolean isInitial() {
74: return initial;
75: }
76:
77: public void setInitial(boolean initial) {
78: this .initial = initial;
79: }
80:
81: public Integer getLockVerNbr() {
82: return lockVerNbr;
83: }
84:
85: public void setLockVerNbr(Integer lockVerNbr) {
86: this.lockVerNbr = lockVerNbr;
87: }
88: }
|