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 WMFilter object.
008: *
009: * @author V.Puskas
010: * @version 0.3
011: */
012: public interface ProcessMgrFilterBuilder extends FilterBuilder {
013: /**
014: * Sets condition "package 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 addNameEquals(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 created time == arg"
039: */
040: public WMFilter addCreatedTimeEquals(WMSessionHandle sHandle,
041: long arg) throws Exception;
042:
043: /**
044: * Sets condition "process manager created time < arg"
045: */
046: public WMFilter addCreatedTimeBefore(WMSessionHandle sHandle,
047: long arg) throws Exception;
048:
049: /**
050: * Sets condition "process manager created time > arg"
051: */
052: public WMFilter addCreatedTimeAfter(WMSessionHandle sHandle,
053: long arg) throws Exception;
054:
055: /**
056: * Sets condition "process manager enabled"
057: */
058: public WMFilter addIsEnabled(WMSessionHandle sHandle)
059: throws Exception;
060:
061: /**
062: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
063: * (nor its evaluation), rather they affect sorting of the result.
064: * <p>
065: * This method sets ordering by packageId value.
066: */
067: public WMFilter setOrderByPackageId(WMSessionHandle sHandle,
068: WMFilter filter, boolean ascending) throws Exception;
069:
070: /**
071: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
072: * (nor its evaluation), rather they affect sorting of the result.
073: * <p>
074: * This method sets ordering by processDefinitionId value.
075: */
076: public WMFilter setOrderByProcessDefId(WMSessionHandle sHandle,
077: WMFilter filter, boolean ascending) throws Exception;
078:
079: /**
080: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
081: * (nor its evaluation), rather they affect sorting of the result.
082: * <p>
083: * This method sets ordering by process manager name value.
084: */
085: public WMFilter setOrderByName(WMSessionHandle sHandle,
086: WMFilter filter, boolean ascending) throws Exception;
087:
088: /**
089: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
090: * (nor its evaluation), rather they affect sorting of the result.
091: * <p>
092: * This method sets ordering by process manager version value.
093: */
094: public WMFilter setOrderByVersion(WMSessionHandle sHandle,
095: WMFilter filter, boolean ascending) throws Exception;
096:
097: /**
098: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
099: * (nor its evaluation), rather they affect sorting of the result.
100: * <p>
101: * This method sets ordering by process manager created time value.
102: */
103: public WMFilter setOrderByCreatedTime(WMSessionHandle sHandle,
104: WMFilter filter, boolean ascending) throws Exception;
105:
106: /**
107: * Methods starting with <tt>setOrderBy</tt> obviously don't affect actual expression
108: * (nor its evaluation), rather they affect sorting of the result.
109: * <p>
110: * This method sets ordering by process manager enabled value.
111: */
112: public WMFilter setOrderByEnabled(WMSessionHandle sHandle,
113: WMFilter filter, boolean ascending) throws Exception;
114: }
|