001: package hero.xpdl;
002:
003: /**
004: *
005: * Bonita
006: * Copyright (C) 1999 Bull S.A.
007: * Bull 68 route de versailles 78434 Louveciennes Cedex France
008: * Further information: bonita@objectweb.org
009: *
010: * This library is free software; you can redistribute it and/or
011: * modify it under the terms of the GNU Lesser General Public
012: * License as published by the Free Software Foundation; either
013: * version 2.1 of the License, or any later version.
014: *
015: * This library is distributed in the hope that it will be useful,
016: * but WITHOUT ANY WARRANTY; without even the implied warranty of
017: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
018: * Lesser General Public License for more details.
019: *
020: * You should have received a copy of the GNU Lesser General Public
021: * License along with this library; if not, write to the Free Software
022: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
023: * USA
024: *
025: *
026: --------------------------------------------------------------------------
027: * $Id: XPDLActivity.java,v 1.4 2007/06/20 12:01:00 blachonm Exp $
028: *
029: --------------------------------------------------------------------------
030: */
031:
032: import java.io.Serializable;
033: import java.util.ArrayList;
034: import java.util.Hashtable;
035:
036: public final class XPDLActivity implements Serializable,
037: java.lang.Cloneable {
038:
039: // --------------------------------------------------- Instance Variables
040:
041: private String name = "";
042: private String id = "";
043: private String description = "";
044: private String mode = "";
045: private String split = "";
046: private String join = "";
047: private String performer = "";
048: private boolean deadline = false;
049: private ArrayList deadlineExecution = new ArrayList();
050: private ArrayList deadlineCondition = new ArrayList();
051: private ArrayList deadlineFixedTimes = new ArrayList();
052: private ArrayList deadlineRelativeTimes = new ArrayList();
053: private ArrayList properties = new ArrayList();
054: private ArrayList propagations = new ArrayList();
055: private String exceptionName = "";
056: private ArrayList xpdlHooks = new ArrayList();
057: private String performerAssignName = "";
058: private String performerAssignType = "";
059: private String performerAssignProperty = "";
060: private ArrayList actualParameters = new ArrayList();
061: //patch defect #307177 iteration: 1 multiple per activity
062: /*
063: private String iterationName = "";
064: private String iterationCondition = "";
065: private String iterationFrom = "";
066: private String iterationTo = "";
067: */
068: private Hashtable iteration = new Hashtable();
069: private String tempIterationCondition = "";
070:
071: private String implementation = "";
072: private String subFlowVersion = "";
073: private String subFlowName = "";
074:
075: // ----------------------------------------------------------- Properties
076:
077: public String getName() {
078: return (name);
079: }
080:
081: public void setName(String name) {
082: this .name = name;
083: }
084:
085: public String getId() {
086: return (id);
087: }
088:
089: public void setId(String id) {
090: this .id = id;
091: }
092:
093: public String getMode() {
094: return (mode);
095: }
096:
097: public void setMode(String mode) {
098: this .mode = mode;
099: }
100:
101: public String getDescription() {
102: return (description);
103: }
104:
105: public void setDescription(String description) {
106: this .description = description;
107: }
108:
109: public String getSplit() {
110: return (split);
111: }
112:
113: public void setSplit(String split) {
114: this .split = split;
115: }
116:
117: public String getJoin() {
118: return (join);
119: }
120:
121: public void setJoin(String join) {
122: this .join = join;
123: }
124:
125: public String getPerformer() {
126: return (performer);
127: }
128:
129: public void setPerformer(String performer) {
130: this .performer = performer;
131: }
132:
133: public boolean getDeadline() {
134: return (deadline);
135: }
136:
137: public void setDeadline(boolean deadline) {
138: this .deadline = deadline;
139: }
140:
141: public ArrayList getDeadlineExecution() {
142: return (deadlineExecution);
143: }
144:
145: public void setDeadlineExecution(String deadlineExecution) {
146: this .deadlineExecution.add(deadlineExecution);
147: }
148:
149: // deadline condition
150: public ArrayList getDeadlineCondition() {
151: return (deadlineCondition);
152: }
153:
154: public void setDeadlineCondition(String deadlineCondition) {
155: this .deadlineCondition.add(deadlineCondition);
156: }
157:
158: // fixed deadline
159: public ArrayList getFixedTimeDeadline() {
160: return (deadlineFixedTimes);
161: }
162:
163: public void setFixedTimeDeadline(String deadlineTime) {
164: this .deadlineFixedTimes.add(new Long(deadlineTime));
165: }
166:
167: // relative deadline
168: public ArrayList getRelativeTimeDeadline() {
169: return (deadlineRelativeTimes);
170: }
171:
172: public void setRelativeTimeDeadline(String deadlineTime) {
173: this .deadlineRelativeTimes.add(new Long(deadlineTime));
174: }
175:
176: // extended Bonita properties : contains Ids of the datafields to be created
177: public ArrayList getProperties() {
178: return (properties);
179: }
180:
181: public void setProperties(String datafieldId) {
182: this .properties.add(datafieldId);
183: }
184:
185: // Complexe type for Extended Bonita properties :
186: public ArrayList getPropagations() {
187: return (propagations);
188: }
189:
190: public void setPropagations(Boolean bool) {
191: this .propagations.add(bool);
192: }
193:
194: // Exception
195: public String getExceptionName() {
196: return (exceptionName);
197: }
198:
199: public void setExceptionName(String exceptionName) {
200: this .exceptionName = exceptionName;
201: }
202:
203: // hook bean feature
204: public ArrayList getXpdlHook() {
205: return (xpdlHooks);
206: }
207:
208: public void setXpdlHook(XPDLHook xpdlHook) {
209: this .xpdlHooks.add(xpdlHook);
210: }
211:
212: // performer Assignment
213: public String getPerformerAssignName() {
214: return (performerAssignName);
215: }
216:
217: public void setPerformerAssignName(String performerAssignName) {
218: this .performerAssignName = performerAssignName;
219: }
220:
221: public String getPerformerAssignType() {
222: return (performerAssignType);
223: }
224:
225: public void setPerformerAssignType(String performerAssignType) {
226: this .performerAssignType = performerAssignType;
227: }
228:
229: public String getPerformerAssignProperty() {
230: return (performerAssignProperty);
231: }
232:
233: public void setPerformerAssignProperty(
234: String performerAssignProperty) {
235: this .performerAssignProperty = performerAssignProperty;
236: }
237:
238: // ActualParameters
239: public ArrayList getActualParameter() {
240: return (actualParameters);
241: }
242:
243: public void setActualParameter(String actualParameter) {
244: this .actualParameters.add(actualParameter);
245: }
246:
247: // tempIterationCondition
248: public String getTempIterationCondition() {
249: return (tempIterationCondition);
250: }
251:
252: public void setTempIterationCondition(String tempIterationCondition) {
253: this .tempIterationCondition = tempIterationCondition;
254: }
255:
256: public Hashtable getIteration() {
257: return (iteration);
258: }
259:
260: public void setIteration(String iterationTo,
261: String iterationCondition) {
262: this .iteration.put(iterationTo, iterationCondition);
263: }
264:
265: // implementation
266: public String getImplementation() {
267: return (implementation);
268: }
269:
270: public void setImplementation(String implementation) {
271: this .implementation = implementation;
272: }
273:
274: // subflowVersion
275: public String getSubFlowVersion() {
276: return (subFlowVersion);
277: }
278:
279: public void setSubFlowVersion(String subFlowVersion) {
280: this .subFlowVersion = subFlowVersion;
281: }
282:
283: // subflowName
284: public String getSubFlowName() {
285: return (subFlowName);
286: }
287:
288: public void setSubFlowName(String subFlowName) {
289: this .subFlowName = subFlowName;
290: }
291:
292: public XPDLActivity() {
293: }
294:
295: public Object clone() throws java.lang.CloneNotSupportedException {
296: return super.clone();
297: }
298:
299: }
|