001: package org.enhydra.shark.api.common;
002:
003: import org.enhydra.shark.api.client.wfmc.wapi.WMFilter;
004: import org.enhydra.shark.api.client.wfmc.wapi.WMSessionHandle;
005:
006: /**
007: * All methods are returning the WMFilter object
008: *
009: * @author V.Puskas
010: * @version 0.3
011: */
012: public interface ProcessFilterBuilder extends FilterBuilder {
013: /**
014: * Sets condition "process definition id == value of exp"
015: */
016: public WMFilter addPackageIdEquals(WMSessionHandle sHandle,
017: String exp) throws Exception;
018:
019: /**
020: * Sets condition "process definition id == value of exp"
021: */
022: public WMFilter addProcessDefIdEquals(WMSessionHandle sHandle,
023: String exp) throws Exception;
024:
025: /**
026: * Sets condition "process manager name == value of exp"
027: */
028: public WMFilter addMgrNameEquals(WMSessionHandle sHandle, String exp)
029: throws Exception;
030:
031: /**
032: * Sets condition "process manager version == value of exp"
033: */
034: public WMFilter addVersionEquals(WMSessionHandle sHandle, String exp)
035: throws Exception;
036:
037: /**
038: * Sets condition "process manager enabled"
039: */
040: public WMFilter addIsMgrEnabled(WMSessionHandle sHandle)
041: throws Exception;
042:
043: /**
044: * Sets condition "process state == arg"
045: */
046: public WMFilter addStateEquals(WMSessionHandle sHandle, String arg)
047: throws Exception;
048:
049: /**
050: * Sets condition "process state starts with arg"
051: */
052: public WMFilter addStateStartsWith(WMSessionHandle sHandle,
053: String arg) throws Exception;
054:
055: /**
056: * Sets condition "process id == arg"
057: */
058: public WMFilter addIdEquals(WMSessionHandle sHandle, String arg)
059: throws Exception;
060:
061: /**
062: * Sets condition "process name == arg"
063: */
064: public WMFilter addNameEquals(WMSessionHandle sHandle, String arg)
065: throws Exception;
066:
067: /**
068: * Sets condition "process description contains arg"
069: */
070: public WMFilter addNameContains(WMSessionHandle sHandle, String arg)
071: throws Exception;
072:
073: /**
074: * Sets condition "process priority == arg"
075: */
076: public WMFilter addPriorityEquals(WMSessionHandle sHandle, int arg)
077: throws Exception;
078:
079: /**
080: * Sets condition "process priority < arg"
081: */
082: public WMFilter addPriorityLessThan(WMSessionHandle sHandle, int arg)
083: throws Exception;
084:
085: /**
086: * Sets condition "process priority > arg"
087: */
088: public WMFilter addPriorityGreaterThan(WMSessionHandle sHandle,
089: int arg) throws Exception;
090:
091: /**
092: * Sets condition "process description == arg"
093: */
094: public WMFilter addDescriptionEquals(WMSessionHandle sHandle,
095: String arg) throws Exception;
096:
097: /**
098: * Sets condition "process description contains arg"
099: */
100: public WMFilter addDescriptionContains(WMSessionHandle sHandle,
101: String arg) throws Exception;
102:
103: /**
104: * Sets condition "process requester id == arg"
105: */
106: public WMFilter addRequesterIdEquals(WMSessionHandle sHandle,
107: String arg) throws Exception;
108:
109: /**
110: * Sets condition "process requester username == arg"
111: */
112: public WMFilter addRequesterUsernameEquals(WMSessionHandle sHandle,
113: String arg) throws Exception;
114:
115: /**
116: * Sets condition "process created time == arg"
117: */
118: public WMFilter addCreatedTimeEquals(WMSessionHandle sHandle,
119: long arg) throws Exception;
120:
121: /**
122: * Sets condition "process created time < arg"
123: */
124: public WMFilter addCreatedTimeBefore(WMSessionHandle sHandle,
125: long arg) throws Exception;
126:
127: /**
128: * Sets condition "process created time > arg"
129: */
130: public WMFilter addCreatedTimeAfter(WMSessionHandle sHandle,
131: long arg) throws Exception;
132:
133: /**
134: * Sets condition "process start time == arg"
135: */
136: public WMFilter addStartTimeEquals(WMSessionHandle sHandle, long arg)
137: throws Exception;
138:
139: /**
140: * Sets condition "process start time < arg"
141: */
142: public WMFilter addStartTimeBefore(WMSessionHandle sHandle, long arg)
143: throws Exception;
144:
145: /**
146: * Sets condition "process start time > arg"
147: */
148: public WMFilter addStartTimeAfter(WMSessionHandle sHandle, long arg)
149: throws Exception;
150:
151: /**
152: * Sets condition "process last state time == arg"
153: */
154: public WMFilter addLastStateTimeEquals(WMSessionHandle sHandle,
155: long arg) throws Exception;
156:
157: /**
158: * Sets condition "process last state time < arg"
159: */
160: public WMFilter addLastStateTimeBefore(WMSessionHandle sHandle,
161: long arg) throws Exception;
162:
163: /**
164: * Sets condition "process last state time > arg"
165: */
166: public WMFilter addLastStateTimeAfter(WMSessionHandle sHandle,
167: long arg) throws Exception;
168:
169: /**
170: * Sets condition "process finish time == arg"
171: */
172: public WMFilter addFinishTimeEquals(WMSessionHandle sHandle,
173: long arg) throws Exception;
174:
175: /**
176: * Sets condition "process finish time < arg"
177: */
178: public WMFilter addFinishTimeBefore(WMSessionHandle sHandle,
179: long arg) throws Exception;
180:
181: /**
182: * Sets condition "process finish time > arg"
183: */
184: public WMFilter addFinishTimeAfter(WMSessionHandle sHandle, long arg)
185: throws Exception;
186:
187: public WMFilter addLimitTimeEquals(WMSessionHandle sHandle, long arg)
188: throws Exception;
189:
190: public WMFilter addLimitTimeBefore(WMSessionHandle sHandle, long arg)
191: throws Exception;
192:
193: public WMFilter addLimitTimeAfter(WMSessionHandle sHandle, long arg)
194: throws Exception;
195:
196: /**
197: * Sets condition "process active activities count == arg"
198: */
199: public WMFilter addActiveActivitiesCountEquals(
200: WMSessionHandle sHandle, long arg) throws Exception;
201:
202: /**
203: * Sets condition "process active activities count > arg"
204: */
205: public WMFilter addActiveActivitiesCountGreaterThan(
206: WMSessionHandle sHandle, long arg) throws Exception;
207:
208: /**
209: * Sets condition "process active activities count < arg"
210: */
211: public WMFilter addActiveActivitiesCountLessThan(
212: WMSessionHandle sHandle, long arg) throws Exception;
213:
214: /**
215: * Sets condition "process variable vName == vValue"
216: */
217: public WMFilter addVariableEquals(WMSessionHandle sHandle,
218: String vName, Object vValue) throws Exception;
219:
220: /**
221: * Sets condition "process variable vName == vValue"
222: */
223: public WMFilter addVariableStringEquals(WMSessionHandle sHandle,
224: String vName, String vValue) throws Exception;
225:
226: /**
227: * Sets condition "process variable vName == vValue"
228: */
229: public WMFilter addVariableLongEquals(WMSessionHandle sHandle,
230: String vName, long vValue) throws Exception;
231:
232: /**
233: * Sets condition "process variable vName > vValue"
234: */
235: public WMFilter addVariableLongGreaterThan(WMSessionHandle sHandle,
236: String vName, long vValue) throws Exception;
237:
238: /**
239: * Sets condition "process variable vName < vValue"
240: */
241: public WMFilter addVariableLongLessThan(WMSessionHandle sHandle,
242: String vName, long vValue) throws Exception;
243:
244: /**
245: * Sets condition "process variable vName == vValue"
246: */
247: public WMFilter addVariableDoubleEquals(WMSessionHandle sHandle,
248: String vName, double vValue) throws Exception;
249:
250: /**
251: * Sets condition "process variable vName > vValue"
252: */
253: public WMFilter addVariableDoubleGreaterThan(
254: WMSessionHandle sHandle, String vName, double vValue)
255: throws Exception;
256:
257: /**
258: * Sets condition "process variable vName < vValue"
259: */
260: public WMFilter addVariableDoubleLessThan(WMSessionHandle sHandle,
261: String vName, double vValue) throws Exception;
262:
263: /**
264: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
265: * (nor its evaluation), rather they affect sorting of the result.
266: * <p>
267: * This method sets ordering by process manager name value.
268: */
269: public WMFilter setOrderByMgrName(WMSessionHandle sHandle,
270: WMFilter filter, boolean ascending) throws Exception;
271:
272: /**
273: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
274: * (nor its evaluation), rather they affect sorting of the result.
275: * <p>
276: * This method sets ordering by process id value.
277: */
278: public WMFilter setOrderById(WMSessionHandle sHandle,
279: WMFilter filter, boolean ascending) throws Exception;
280:
281: /**
282: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
283: * (nor its evaluation), rather they affect sorting of the result.
284: * <p>
285: * This method sets ordering by process name value.
286: */
287: public WMFilter setOrderByName(WMSessionHandle sHandle,
288: WMFilter filter, boolean ascending) throws Exception;
289:
290: /**
291: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
292: * (nor its evaluation), rather they affect sorting of the result.
293: * <p>
294: * This method sets ordering by process state value.
295: */
296: public WMFilter setOrderByState(WMSessionHandle sHandle,
297: WMFilter filter, boolean ascending) throws Exception;
298:
299: /**
300: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
301: * (nor its evaluation), rather they affect sorting of the result.
302: * <p>
303: * This method sets ordering by process priority value.
304: */
305: public WMFilter setOrderByPriority(WMSessionHandle sHandle,
306: WMFilter filter, boolean ascending) throws Exception;
307:
308: /**
309: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
310: * (nor its evaluation), rather they affect sorting of the result.
311: * <p>
312: * This method sets ordering by process created time value.
313: */
314: public WMFilter setOrderByCreatedTime(WMSessionHandle sHandle,
315: WMFilter filter, boolean ascending) throws Exception;
316:
317: /**
318: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
319: * (nor its evaluation), rather they affect sorting of the result.
320: * <p>
321: * This method sets ordering by process start time value.
322: */
323: public WMFilter setOrderByStartTime(WMSessionHandle sHandle,
324: WMFilter filter, boolean ascending) throws Exception;
325:
326: /**
327: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
328: * (nor its evaluation), rather they affect sorting of the result.
329: * <p>
330: * This method sets ordering by process last state time value.
331: */
332: public WMFilter setOrderByLastStateTime(WMSessionHandle sHandle,
333: WMFilter filter, boolean ascending) throws Exception;
334:
335: /**
336: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
337: * (nor its evaluation), rather they affect sorting of the result.
338: * <p>
339: * This method sets ordering by process resource requester id value.
340: */
341: public WMFilter setOrderByResourceRequesterId(
342: WMSessionHandle sHandle, WMFilter filter, boolean ascending)
343: throws Exception;
344: }
|