001: /*
002: * $Id: Process.java,v 1.9 2004/12/09 12:34:35 kowap Exp $
003: *
004: * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
005: * Berne University of Applied Sciences
006: * School of Engineering and Information Technology
007: * All rights reserved.
008: */
009:
010: package bexee.model.process;
011:
012: import bexee.model.BPELElement;
013: import bexee.model.activity.Activity;
014: import bexee.model.activity.CompensationHandler;
015: import bexee.model.elements.CorrelationSets;
016: import bexee.model.elements.EventHandlers;
017: import bexee.model.elements.FaultHandlers;
018: import bexee.model.elements.PartnerLinks;
019: import bexee.model.elements.Partners;
020: import bexee.model.elements.Variables;
021:
022: /**
023: * This is a representation of a BPEL process element from a BPEL document.
024: * Usually an instance of this class will be embedded in a BPELProcess instance
025: * containing additional information about a business process.
026: *
027: * @version $Revision: 1.9 $, $Date: 2004/12/09 12:34:35 $
028: * @author Patric Fornasier
029: * @author Pawel Kowalski
030: */
031: public interface Process extends BPELElement {
032:
033: /**
034: * Default query language.
035: */
036: public static final String DEFAULT_QUERY_LANGUAGE = "http://www.w3.org/TR/1999/REC-xpath-19991116";
037:
038: /**
039: * Default expression language.
040: */
041: public static final String DEFAULT_EXPRESSION_LANGUAGE = "http://www.w3.org/TR/1999/REC-xpath-19991116";
042:
043: /**
044: * Default suppress join failure value.
045: */
046: public static final boolean DEFAULT_SUPPRESS_JOIN_FAILURE = false;
047:
048: /**
049: * Default instance compensation value.
050: */
051: public static final boolean DEFAULT_ENABLE_INSTANCE_COMPENSATION = false;
052:
053: /**
054: * Default value for the abstractness of a BPEL process.
055: */
056: public static final boolean DEFAULT_ABSTRACT_PROCESS = false;
057:
058: //**************************************************/
059: // xml attributes
060: //**************************************************/
061:
062: /**
063: * Set the name of this process.
064: *
065: * @param name
066: */
067: public void setName(String name);
068:
069: /**
070: * Get the name of this process.
071: *
072: * @return
073: */
074: public String getName();
075:
076: /**
077: * Set the targetNamespace of this process.
078: *
079: * @param targetNamespace
080: */
081: public void setTargetNamespace(String targetNamespace);
082:
083: /**
084: * Get the targetNamespace of this process.
085: *
086: * @return
087: */
088: public String getTargetNamespace();
089:
090: /**
091: * Set the queryLanguage of this process.
092: *
093: * @param queryLanguage
094: */
095: public void setQueryLanguage(String queryLanguage);
096:
097: /**
098: * Get the queryLanguage of this process.
099: *
100: * @return
101: */
102: public String getQueryLanguage();
103:
104: /**
105: * Set the expressionLanguage of this process.
106: *
107: * @param expressionLanguage
108: */
109: public void setExpressionLanguage(String expressionLanguage);
110:
111: /**
112: * Get the expressionLanguage of this process.
113: *
114: * @return
115: */
116: public String getExpressionLanguage();
117:
118: /**
119: * Set the suppressJoinFailure property of this process.
120: *
121: * @param suppressJoinFailure
122: */
123: public void setSuppressJoinFailure(boolean suppressJoinFailure);
124:
125: /**
126: * Are join failures suppressed in this process.
127: *
128: * @return
129: */
130: public boolean isSuppressJoinFailure();
131:
132: /**
133: * Set the EnableInstanceCompensation property of this process.
134: *
135: * @param isInstanceCompensable
136: */
137: public void setEnableInstanceCompensation(
138: boolean isInstanceCompensable);
139:
140: /**
141: * Get the EnableInstanceCompensation property of this process.
142: *
143: * @return
144: */
145: public boolean isInstanceCompensable();
146:
147: /**
148: * Set a property indicating whether this process is abstract.
149: *
150: * @param isAbstractProcess
151: */
152: public void setAbstractProcess(boolean isAbstractProcess);
153:
154: /**
155: * Is this an abstract process.
156: *
157: * @return
158: */
159: public boolean isAbstractProcess();
160:
161: //**************************************************/
162: // xml elements
163: //**************************************************/
164:
165: /**
166: * Set the PartnerLinks of this process.
167: *
168: * @param partnerLinks
169: */
170: public void setPartnerLinks(PartnerLinks partnerLinks);
171:
172: /**
173: * Get the PartnerLinks of this process.
174: *
175: * @return
176: */
177: public PartnerLinks getPartnerLinks();
178:
179: /**
180: * Set the Partners of this process.
181: *
182: * @param partners
183: */
184: public void setPartners(Partners partners);
185:
186: /**
187: * Get the Partners of this process.
188: *
189: * @return
190: */
191: public Partners getPartners();
192:
193: /**
194: * Set the Variables of this process.
195: *
196: * @param variables
197: */
198: public void setVariables(Variables variables);
199:
200: /**
201: * Get the Variables of this process.
202: *
203: * @return
204: */
205: public Variables getVariables();
206:
207: /**
208: * Set the CorrelationSets of this process.
209: *
210: * @param correlationSets
211: */
212: public void setCorrelationSets(CorrelationSets correlationSets);
213:
214: /**
215: * Get the CorrelationSets of this process.
216: *
217: * @return
218: */
219: public CorrelationSets getCorrelationSets();
220:
221: /**
222: * Set the FaultHandlers of this process.
223: *
224: * @param faultHandlers
225: */
226: public void setFaultHandlers(FaultHandlers faultHandlers);
227:
228: /**
229: * Get the FaultHandlers of this process.
230: *
231: * @return
232: */
233: public FaultHandlers getFaultHandlers();
234:
235: /**
236: * Set the CompensationHandler of this process.
237: *
238: * @param handler
239: */
240: public void setCompensationHandler(CompensationHandler handler);
241:
242: /**
243: * Get the CompensationHandler of this process.
244: *
245: * @return
246: */
247: public CompensationHandler getCompensationHandler();
248:
249: /**
250: * Set the EventHandlers of this process.
251: *
252: * @param handlers
253: */
254: public void setEventHandlers(EventHandlers handlers);
255:
256: /**
257: * Get the EventHandlers of this process.
258: *
259: * @return
260: */
261: public EventHandlers getEventHandlers();
262:
263: /**
264: * Set the root activity of this process.
265: *
266: * @param activity
267: */
268: public void setActivity(Activity activity);
269:
270: /**
271: * Get the root activity of this process.
272: *
273: * @return
274: */
275: public Activity getActivity();
276:
277: }
|