org.enhydra.shark.api.common
Interface ProcessFilterBuilder

All Superinterfaces:
FilterBuilder

public interface ProcessFilterBuilder
extends FilterBuilder

ProcessIteratorExpressionBuilder

All methods are returning the object itself to allow stacking method calls on the same object.

Version:
0.3
Author:
V.Puskas

Field Summary
 
Fields inherited from interface org.enhydra.shark.api.common.FilterBuilder
ORDER_ASCENDING, ORDER_DESCENDING, SQL_TYPE_ACTIVITY, SQL_TYPE_ASSIGNMENT, SQL_TYPE_EVENT_AUDIT, SQL_TYPE_MANAGER, SQL_TYPE_PROCESS, SQL_TYPE_RESOURCE
 
Method Summary
 WMFilter addActiveActivitiesCountEquals(WMSessionHandle sHandle, long arg)
          Appends condition "process active activities count == arg"
 WMFilter addActiveActivitiesCountGreaterThan(WMSessionHandle sHandle, long arg)
          Appends condition "process active activities count > arg"
 WMFilter addActiveActivitiesCountLessThan(WMSessionHandle sHandle, long arg)
          Appends condition "process active activities count < arg"
 WMFilter addCreatedTimeAfter(WMSessionHandle sHandle, long arg)
          Appends condition "process created time > arg"
 WMFilter addCreatedTimeBefore(WMSessionHandle sHandle, long arg)
          Appends condition "process created time < arg"
 WMFilter addCreatedTimeEquals(WMSessionHandle sHandle, long arg)
          Appends condition "process created time == arg"
 WMFilter addDescriptionContains(WMSessionHandle sHandle, java.lang.String arg)
          Appends condition "process description contains arg"
 WMFilter addDescriptionEquals(WMSessionHandle sHandle, java.lang.String arg)
          Appends condition "process description == arg"
 WMFilter addIdEquals(WMSessionHandle sHandle, java.lang.String arg)
          Appends condition "process id == arg"
 WMFilter addIsMgrEnabled(WMSessionHandle sHandle)
          Appends condition "process manager enabled"
 WMFilter addLastStateTimeAfter(WMSessionHandle sHandle, long arg)
          Appends condition "process last state time > arg"
 WMFilter addLastStateTimeBefore(WMSessionHandle sHandle, long arg)
          Appends condition "process last state time < arg"
 WMFilter addLastStateTimeEquals(WMSessionHandle sHandle, long arg)
          Appends condition "process last state time == arg"
 WMFilter addLimitTimeAfter(WMSessionHandle sHandle, long arg)
           
 WMFilter addLimitTimeBefore(WMSessionHandle sHandle, long arg)
           
 WMFilter addLimitTimeEquals(WMSessionHandle sHandle, long arg)
           
 WMFilter addMgrNameEquals(WMSessionHandle sHandle, java.lang.String exp)
          Appends condition "process manager name == value of exp"
 WMFilter addNameEquals(WMSessionHandle sHandle, java.lang.String arg)
          Appends condition "process name == arg"
 WMFilter addPackageIdEquals(WMSessionHandle sHandle, java.lang.String exp)
          Appends condition "process definition id == value of exp"
 WMFilter addPriorityEquals(WMSessionHandle sHandle, int arg)
          Appends condition "process priority == arg"
 WMFilter addProcessDefIdEquals(WMSessionHandle sHandle, java.lang.String exp)
          Appends condition "process definition id == value of exp"
 WMFilter addRequesterIdEquals(WMSessionHandle sHandle, java.lang.String arg)
          Appends condition "process requester id == arg"
 WMFilter addRequesterUsernameEquals(WMSessionHandle sHandle, java.lang.String arg)
          Appends condition "process requester username == arg"
 WMFilter addStartTimeAfter(WMSessionHandle sHandle, long arg)
          Appends condition "process start time > arg"
 WMFilter addStartTimeBefore(WMSessionHandle sHandle, long arg)
          Appends condition "process start time < arg"
 WMFilter addStartTimeEquals(WMSessionHandle sHandle, long arg)
          Appends condition "process start time == arg"
 WMFilter addStateEquals(WMSessionHandle sHandle, java.lang.String arg)
          Appends condition "process state == arg"
 WMFilter addStateStartsWith(WMSessionHandle sHandle, java.lang.String arg)
          Appends condition "process state starts with arg"
 WMFilter addVariableDoubleEquals(WMSessionHandle sHandle, java.lang.String vName, double vValue)
          Appends condition "process variable vName == vValue"
 WMFilter addVariableDoubleGreaterThan(WMSessionHandle sHandle, java.lang.String vName, double vValue)
          Appends condition "process variable vName > vValue"
 WMFilter addVariableDoubleLessThan(WMSessionHandle sHandle, java.lang.String vName, double vValue)
          Appends condition "process variable vName < vValue"
 WMFilter addVariableEquals(WMSessionHandle sHandle, java.lang.String vName, java.lang.Object vValue)
          Appends condition "process variable vName == vValue"
 WMFilter addVariableLongEquals(WMSessionHandle sHandle, java.lang.String vName, long vValue)
          throws Exception; Appends condition "process variable vName == vValue"
 WMFilter addVariableLongGreaterThan(WMSessionHandle sHandle, java.lang.String vName, long vValue)
          Appends condition "process variable vName > vValue"
 WMFilter addVariableLongLessThan(WMSessionHandle sHandle, java.lang.String vName, long vValue)
          Appends condition "process variable vName < vValue"
 WMFilter addVariableStringEquals(WMSessionHandle sHandle, java.lang.String vName, java.lang.String vValue)
          Appends condition "process variable vName == vValue"
 WMFilter addVersionEquals(WMSessionHandle sHandle, java.lang.String exp)
          Appends condition "process manager version == value of exp"
 WMFilter setOrderByCreatedTime(WMSessionHandle sHandle, WMFilter filter, boolean ascending)
          Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.
 WMFilter setOrderById(WMSessionHandle sHandle, WMFilter filter, boolean ascending)
          Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.
 WMFilter setOrderByLastStateTime(WMSessionHandle sHandle, WMFilter filter, boolean ascending)
          Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.
 WMFilter setOrderByMgrName(WMSessionHandle sHandle, WMFilter filter, boolean ascending)
          Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.
 WMFilter setOrderByName(WMSessionHandle sHandle, WMFilter filter, boolean ascending)
          Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.
 WMFilter setOrderByPriority(WMSessionHandle sHandle, WMFilter filter, boolean ascending)
          Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.
 WMFilter setOrderByResourceRequesterId(WMSessionHandle sHandle, WMFilter filter, boolean ascending)
          Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.
 WMFilter setOrderByStartTime(WMSessionHandle sHandle, WMFilter filter, boolean ascending)
          Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.
 WMFilter setOrderByState(WMSessionHandle sHandle, WMFilter filter, boolean ascending)
          Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.
 
Methods inherited from interface org.enhydra.shark.api.common.FilterBuilder
addBshExpression, and, andForArray, createEmptyFilter, getIteratorEmptyExpression, not, or, orForArray, setLimit, setStartPosition, toIteratorExpression
 

Method Detail

addPackageIdEquals

public WMFilter addPackageIdEquals(WMSessionHandle sHandle,
                                   java.lang.String exp)
                            throws java.lang.Exception
Appends condition "process definition id == value of exp"

Parameters:
exp -
Returns:
itself
Throws:
java.lang.Exception

addProcessDefIdEquals

public WMFilter addProcessDefIdEquals(WMSessionHandle sHandle,
                                      java.lang.String exp)
                               throws java.lang.Exception
Appends condition "process definition id == value of exp"

Parameters:
exp -
Returns:
itself
Throws:
java.lang.Exception

addMgrNameEquals

public WMFilter addMgrNameEquals(WMSessionHandle sHandle,
                                 java.lang.String exp)
                          throws java.lang.Exception
Appends condition "process manager name == value of exp"

Parameters:
exp -
Returns:
itself
Throws:
java.lang.Exception

addVersionEquals

public WMFilter addVersionEquals(WMSessionHandle sHandle,
                                 java.lang.String exp)
                          throws java.lang.Exception
Appends condition "process manager version == value of exp"

Parameters:
exp -
Returns:
itself
Throws:
java.lang.Exception

addIsMgrEnabled

public WMFilter addIsMgrEnabled(WMSessionHandle sHandle)
                         throws java.lang.Exception
Appends condition "process manager enabled"

Returns:
itself
Throws:
java.lang.Exception

addStateEquals

public WMFilter addStateEquals(WMSessionHandle sHandle,
                               java.lang.String arg)
                        throws java.lang.Exception
Appends condition "process state == arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addStateStartsWith

public WMFilter addStateStartsWith(WMSessionHandle sHandle,
                                   java.lang.String arg)
                            throws java.lang.Exception
Appends condition "process state starts with arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception
See Also:
SharkConstants

addIdEquals

public WMFilter addIdEquals(WMSessionHandle sHandle,
                            java.lang.String arg)
                     throws java.lang.Exception
Appends condition "process id == arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addNameEquals

public WMFilter addNameEquals(WMSessionHandle sHandle,
                              java.lang.String arg)
                       throws java.lang.Exception
Appends condition "process name == arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addPriorityEquals

public WMFilter addPriorityEquals(WMSessionHandle sHandle,
                                  int arg)
                           throws java.lang.Exception
Appends condition "process priority == arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addDescriptionEquals

public WMFilter addDescriptionEquals(WMSessionHandle sHandle,
                                     java.lang.String arg)
                              throws java.lang.Exception
Appends condition "process description == arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addDescriptionContains

public WMFilter addDescriptionContains(WMSessionHandle sHandle,
                                       java.lang.String arg)
                                throws java.lang.Exception
Appends condition "process description contains arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addRequesterIdEquals

public WMFilter addRequesterIdEquals(WMSessionHandle sHandle,
                                     java.lang.String arg)
                              throws java.lang.Exception
Appends condition "process requester id == arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addRequesterUsernameEquals

public WMFilter addRequesterUsernameEquals(WMSessionHandle sHandle,
                                           java.lang.String arg)
                                    throws java.lang.Exception
Appends condition "process requester username == arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addCreatedTimeEquals

public WMFilter addCreatedTimeEquals(WMSessionHandle sHandle,
                                     long arg)
                              throws java.lang.Exception
Appends condition "process created time == arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addCreatedTimeBefore

public WMFilter addCreatedTimeBefore(WMSessionHandle sHandle,
                                     long arg)
                              throws java.lang.Exception
Appends condition "process created time < arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addCreatedTimeAfter

public WMFilter addCreatedTimeAfter(WMSessionHandle sHandle,
                                    long arg)
                             throws java.lang.Exception
Appends condition "process created time > arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addStartTimeEquals

public WMFilter addStartTimeEquals(WMSessionHandle sHandle,
                                   long arg)
                            throws java.lang.Exception
Appends condition "process start time == arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addStartTimeBefore

public WMFilter addStartTimeBefore(WMSessionHandle sHandle,
                                   long arg)
                            throws java.lang.Exception
Appends condition "process start time < arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addStartTimeAfter

public WMFilter addStartTimeAfter(WMSessionHandle sHandle,
                                  long arg)
                           throws java.lang.Exception
Appends condition "process start time > arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addLastStateTimeEquals

public WMFilter addLastStateTimeEquals(WMSessionHandle sHandle,
                                       long arg)
                                throws java.lang.Exception
Appends condition "process last state time == arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addLastStateTimeBefore

public WMFilter addLastStateTimeBefore(WMSessionHandle sHandle,
                                       long arg)
                                throws java.lang.Exception
Appends condition "process last state time < arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addLastStateTimeAfter

public WMFilter addLastStateTimeAfter(WMSessionHandle sHandle,
                                      long arg)
                               throws java.lang.Exception
Appends condition "process last state time > arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addLimitTimeEquals

public WMFilter addLimitTimeEquals(WMSessionHandle sHandle,
                                   long arg)
                            throws java.lang.Exception
Throws:
java.lang.Exception

addLimitTimeBefore

public WMFilter addLimitTimeBefore(WMSessionHandle sHandle,
                                   long arg)
                            throws java.lang.Exception
Throws:
java.lang.Exception

addLimitTimeAfter

public WMFilter addLimitTimeAfter(WMSessionHandle sHandle,
                                  long arg)
                           throws java.lang.Exception
Throws:
java.lang.Exception

addActiveActivitiesCountEquals

public WMFilter addActiveActivitiesCountEquals(WMSessionHandle sHandle,
                                               long arg)
                                        throws java.lang.Exception
Appends condition "process active activities count == arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addActiveActivitiesCountGreaterThan

public WMFilter addActiveActivitiesCountGreaterThan(WMSessionHandle sHandle,
                                                    long arg)
                                             throws java.lang.Exception
Appends condition "process active activities count > arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addActiveActivitiesCountLessThan

public WMFilter addActiveActivitiesCountLessThan(WMSessionHandle sHandle,
                                                 long arg)
                                          throws java.lang.Exception
Appends condition "process active activities count < arg"

Parameters:
arg -
Returns:
itself
Throws:
java.lang.Exception

addVariableEquals

public WMFilter addVariableEquals(WMSessionHandle sHandle,
                                  java.lang.String vName,
                                  java.lang.Object vValue)
                           throws java.lang.Exception
Appends condition "process variable vName == vValue"

Parameters:
vName - name of the variable to compare
vValue - value to compare against
Returns:
itself
Throws:
java.lang.Exception - if class of the vValue isn't supported for compare

addVariableStringEquals

public WMFilter addVariableStringEquals(WMSessionHandle sHandle,
                                        java.lang.String vName,
                                        java.lang.String vValue)
                                 throws java.lang.Exception
Appends condition "process variable vName == vValue"

Parameters:
vName - name of the variable to compare
vValue - value to compare against
Returns:
itself
Throws:
java.lang.Exception

addVariableLongEquals

public WMFilter addVariableLongEquals(WMSessionHandle sHandle,
                                      java.lang.String vName,
                                      long vValue)
                               throws java.lang.Exception
throws Exception; Appends condition "process variable vName == vValue"

Parameters:
vName - name of the variable to compare
vValue - value to compare against
Returns:
itself
Throws:
java.lang.Exception

addVariableLongGreaterThan

public WMFilter addVariableLongGreaterThan(WMSessionHandle sHandle,
                                           java.lang.String vName,
                                           long vValue)
                                    throws java.lang.Exception
Appends condition "process variable vName > vValue"

Parameters:
vName - name of the variable to compare
vValue - value to compare against
Returns:
itself
Throws:
java.lang.Exception

addVariableLongLessThan

public WMFilter addVariableLongLessThan(WMSessionHandle sHandle,
                                        java.lang.String vName,
                                        long vValue)
                                 throws java.lang.Exception
Appends condition "process variable vName < vValue"

Parameters:
vName - name of the variable to compare
vValue - value to compare against
Returns:
itself
Throws:
java.lang.Exception

addVariableDoubleEquals

public WMFilter addVariableDoubleEquals(WMSessionHandle sHandle,
                                        java.lang.String vName,
                                        double vValue)
                                 throws java.lang.Exception
Appends condition "process variable vName == vValue"

Parameters:
vName - name of the variable to compare
vValue - value to compare against
Returns:
itself
Throws:
java.lang.Exception

addVariableDoubleGreaterThan

public WMFilter addVariableDoubleGreaterThan(WMSessionHandle sHandle,
                                             java.lang.String vName,
                                             double vValue)
                                      throws java.lang.Exception
Appends condition "process variable vName > vValue"

Parameters:
vName - name of the variable to compare
vValue - value to compare against
Returns:
itself
Throws:
java.lang.Exception

addVariableDoubleLessThan

public WMFilter addVariableDoubleLessThan(WMSessionHandle sHandle,
                                          java.lang.String vName,
                                          double vValue)
                                   throws java.lang.Exception
Appends condition "process variable vName < vValue"

Parameters:
vName - name of the variable to compare
vValue - value to compare against
Returns:
itself
Throws:
java.lang.Exception

setOrderByMgrName

public WMFilter setOrderByMgrName(WMSessionHandle sHandle,
                                  WMFilter filter,
                                  boolean ascending)
                           throws java.lang.Exception
Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.

This method sets ordering by process manager name value.

Parameters:
ascending -
Returns:
itself
Throws:
java.lang.Exception

setOrderById

public WMFilter setOrderById(WMSessionHandle sHandle,
                             WMFilter filter,
                             boolean ascending)
                      throws java.lang.Exception
Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.

This method sets ordering by process id value.

Parameters:
ascending -
Returns:
itself
Throws:
java.lang.Exception

setOrderByName

public WMFilter setOrderByName(WMSessionHandle sHandle,
                               WMFilter filter,
                               boolean ascending)
                        throws java.lang.Exception
Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.

This method sets ordering by process name value.

Parameters:
ascending -
Returns:
itself
Throws:
java.lang.Exception

setOrderByState

public WMFilter setOrderByState(WMSessionHandle sHandle,
                                WMFilter filter,
                                boolean ascending)
                         throws java.lang.Exception
Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.

This method sets ordering by process state value.

Parameters:
ascending -
Returns:
itself
Throws:
java.lang.Exception

setOrderByPriority

public WMFilter setOrderByPriority(WMSessionHandle sHandle,
                                   WMFilter filter,
                                   boolean ascending)
                            throws java.lang.Exception
Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.

This method sets ordering by process priority value.

Parameters:
ascending -
Returns:
itself
Throws:
java.lang.Exception

setOrderByCreatedTime

public WMFilter setOrderByCreatedTime(WMSessionHandle sHandle,
                                      WMFilter filter,
                                      boolean ascending)
                               throws java.lang.Exception
Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.

This method sets ordering by process created time value.

Parameters:
ascending -
Returns:
itself
Throws:
java.lang.Exception

setOrderByStartTime

public WMFilter setOrderByStartTime(WMSessionHandle sHandle,
                                    WMFilter filter,
                                    boolean ascending)
                             throws java.lang.Exception
Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.

This method sets ordering by process start time value.

Parameters:
ascending -
Returns:
itself
Throws:
java.lang.Exception

setOrderByLastStateTime

public WMFilter setOrderByLastStateTime(WMSessionHandle sHandle,
                                        WMFilter filter,
                                        boolean ascending)
                                 throws java.lang.Exception
Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.

This method sets ordering by process last state time value.

Parameters:
ascending -
Returns:
itself
Throws:
java.lang.Exception

setOrderByResourceRequesterId

public WMFilter setOrderByResourceRequesterId(WMSessionHandle sHandle,
                                              WMFilter filter,
                                              boolean ascending)
                                       throws java.lang.Exception
Methods starting with setOrderBy obviously don't affect actual expression (nor its evaluation), rather they affect sorting of the result.

This method sets ordering by process resource requester id value.

Parameters:
ascending -
Returns:
itself
Throws:
java.lang.Exception