01: package hero.xpdl;
02:
03: /**
04: *
05: * Bonita
06: * Copyright (C) 1999 Bull S.A.
07: * Bull 68 route de versailles 78434 Louveciennes Cedex France
08: * Further information: bonita@objectweb.org
09: *
10: * This library is free software; you can redistribute it and/or
11: * modify it under the terms of the GNU Lesser General Public
12: * License as published by the Free Software Foundation; either
13: * version 2.1 of the License, or any later version.
14: *
15: * This library is distributed in the hope that it will be useful,
16: * but WITHOUT ANY WARRANTY; without even the implied warranty of
17: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18: * Lesser General Public License for more details.
19: *
20: * You should have received a copy of the GNU Lesser General Public
21: * License along with this library; if not, write to the Free Software
22: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23: * USA
24: *
25: *
26: --------------------------------------------------------------------------
27: * $Id: XPDLWFProcess.java,v 1.1 2006/06/06 08:16:08 mvaldes Exp $
28: *
29: --------------------------------------------------------------------------
30: */
31:
32: import java.io.Serializable;
33: import java.util.ArrayList;
34:
35: public final class XPDLWFProcess implements Serializable,
36: java.lang.Cloneable {
37:
38: // --------------------------------------------------- Instance Variables
39:
40: private String name = "";
41: private String id = "";
42: private XPDLInitiatorMapper initiatorMapper = null;
43:
44: // Hook feature :
45: // TBD. : As Process Hook is dedicated to initialize Process properties
46: // Array is no more useful. (with older Hook process more than one hook could be set)
47: private ArrayList xpdlHooks = new ArrayList();
48:
49: // ----------------------------------------------------------- Properties
50:
51: public String getName() {
52: return (name);
53: }
54:
55: public void setName(String name) {
56: this .name = name;
57: }
58:
59: public String getId() {
60: return (id);
61: }
62:
63: public void setId(String id) {
64: this .id = id;
65: }
66:
67: // hook bean feature
68: public ArrayList getXpdlHook() {
69: return (xpdlHooks);
70: }
71:
72: public void setXpdlHook(XPDLHook xpdlHook) {
73: this .xpdlHooks.add(xpdlHook);
74: }
75:
76: // initiator mapper
77: public XPDLInitiatorMapper getInitiatorMapper() {
78: return (initiatorMapper);
79: }
80:
81: public void setInitiatorMapper(XPDLInitiatorMapper initiatorMapper) {
82: this .initiatorMapper = initiatorMapper;
83: }
84:
85: public XPDLWFProcess() {
86: }
87:
88: public Object clone() throws java.lang.CloneNotSupportedException {
89: return super.clone();
90: }
91:
92: }
|