01: package org.enhydra.shark.api.client.wfservice;
02:
03: import org.enhydra.shark.api.client.wfmc.wapi.WMFilter;
04:
05: /**
06: * XPDLExpressionBuilder interface helps building filters for the usage within XPDLBrowser
07: * interface.
08: *
09: * @author Sasa Bojanic
10: */
11: public interface XPDLExpressionBuilder {
12:
13: public static final int XPDL_FILTER = 9;
14:
15: public static final String ID = "Id";
16: public static final String TYPE = "Type";
17: public static final String NAME = "Name";
18: public static final String VALUE = "Value";
19: public static final String PACKAGE_ID = "PackageId";
20: public static final String PROCESS_ID = "ProcessId";
21: public static final String ACTIVITY_ID = "ActivityId";
22: public static final String PARENT_ID = "ParentId";
23: public static final String PARENT_TYPE = "ParentType";
24: public static final String PARENT_ORD_NO = "ParentOrdNo";
25: public static final String ORD_NO = "OrdNo";
26:
27: WMFilter and(WMFilter f1, WMFilter f2);
28:
29: WMFilter andForArray(WMFilter[] fs);
30:
31: WMFilter or(WMFilter f1, WMFilter f2);
32:
33: WMFilter orForArray(WMFilter[] fs);
34:
35: WMFilter not(WMFilter f);
36:
37: WMFilter addIdEquals(String exp);
38:
39: WMFilter addTypeEquals(String exp);
40:
41: WMFilter addNameEquals(String exp);
42:
43: WMFilter addValueEquals(String exp);
44:
45: WMFilter addPackageIdEquals(String exp);
46:
47: WMFilter addProcessIdEquals(String exp);
48:
49: WMFilter addActivityIdEquals(String exp);
50:
51: WMFilter addParentIdEquals(String exp);
52:
53: WMFilter addParentTypeEquals(String exp);
54:
55: WMFilter addParentOrdNoEquals(int exp);
56:
57: WMFilter addOrdNoEquals(int exp);
58:
59: }
|