Class TaskCriteria
java.lang.Object
com.aquima.interactions.process.search.TaskCriteria
This class may be used to create a selection criteria for tasks.
- Since:
- 9.1
- Author:
- A.Pragt
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance which does not take into account process engine settings related to application id ignore mode.TaskCriteria
(IIgnoreModeSettings settings) Creates a new instance which takes into account process engine settings related to application id ignore mode. -
Method Summary
Modifier and TypeMethodDescriptionaddAttributeFilter
(AttributeReference attribute, boolean loweredIndex) This method adds an attribute filter to the criteria.addCustomFieldFilter
(String customField) This method adds a custom field filter to the criteria.This method returns the app id filter.This method returns the assignee filter.getAttributeFilter
(AttributeReference attribute) This method returns the filter for a specified attribute.This method returns the case id filter.getCustomFieldFilter
(String customField) This method returns the filter for a specified custom field.This method returns the due date filter.This method returns the event name filter.This method returns all attributes that have a filter.String[]
This method returns all custom fields that have a filter.getLimit()
This method returns the limit that is currently set for this criteriaThis method returns the name filter.This method returns the node id filter.This method returns the priority filter.This method returns the requiored filter.This method returns the start date filter.This method returns the status filter.This method returns the time out date filter.This method returns the type filter.boolean
This method returns an indicator whether this criteria has a case id filter.boolean
This method returns an indicator whether this criteria has an assignee filter.boolean
hasAttributeFilter
(AttributeReference attribute) This method returns an indicator whether this criteria has a filter for the specified attribute.boolean
This method returns an indicator whether this criteria has a case id filter.boolean
hasCustomFieldFilter
(String customField) This method returns an indicator whether this criteria has a filter for the specified custom field.boolean
This method returns an indicator whether this criteria has a due date filter.boolean
This method returns an indicator whether this criteria has an event name filter.boolean
This method returns an indicator whether this criteria has a name filter.boolean
This method returns an indicator whether this criteria has a node id filter.boolean
This method returns an indicator whether this criteria has a priority filter.boolean
This method returns an indicator whether this criteria has a required filter.boolean
This method returns an indicator whether this criteria has a start date filter.boolean
This method returns an indicator whether this criteria has a status filter.boolean
This method returns an indicator whether this criteria has a time out date filter.boolean
This method returns an indicator whether this criteria has a type filter.This method sets a appId filter to the criteria.void
setAppIdFilter
(ApplicationID appId) Sets a filter which 'matches' the given application id.This method sets an assignee filter to the criteria.This method sets a caseId filter to the criteria.This method sets a due date filter to the criteria.This method sets a event name filter to the criteria.void
This method sets the limit on the number of results returned from the databaseThis method sets a name filter to the criteria.This method sets a node id filter to the criteria.This method sets a priority filter to the criteria.This method sets a required filter to the criteria.This method sets a start date filter to the criteria.This method sets a status filter to the criteria.This method sets a time out date filter to the criteria.This method sets a type filter to the criteria.
-
Constructor Details
-
TaskCriteria
public TaskCriteria()Creates a new instance which does not take into account process engine settings related to application id ignore mode. -
TaskCriteria
Creates a new instance which takes into account process engine settings related to application id ignore mode.- Parameters:
settings
- the process engine settings
-
-
Method Details
-
hasAppIdFilter
public boolean hasAppIdFilter()This method returns an indicator whether this criteria has a case id filter.- Returns:
- Indicator of having a case id filter.
-
hasRequiredFilter
public boolean hasRequiredFilter()This method returns an indicator whether this criteria has a required filter.- Returns:
- Indicator of having a required filter.
-
hasCaseIdFilter
public boolean hasCaseIdFilter()This method returns an indicator whether this criteria has a case id filter.- Returns:
- Indicator of having a case id filter.
-
hasNameFilter
public boolean hasNameFilter()This method returns an indicator whether this criteria has a name filter.- Returns:
- Indicator of having a name filter.
-
hasTypeFilter
public boolean hasTypeFilter()This method returns an indicator whether this criteria has a type filter.- Returns:
- Indicator of having a type filter.
-
hasStatusFilter
public boolean hasStatusFilter()This method returns an indicator whether this criteria has a status filter.- Returns:
- Indicator of having a status filter.
-
hasPriorityFilter
public boolean hasPriorityFilter()This method returns an indicator whether this criteria has a priority filter.- Returns:
- Indicator of having a priority filter.
-
hasAssigneeFilter
public boolean hasAssigneeFilter()This method returns an indicator whether this criteria has an assignee filter.- Returns:
- Indicator of having an assignee filter.
-
hasNodeIdFilter
public boolean hasNodeIdFilter()This method returns an indicator whether this criteria has a node id filter.- Returns:
- Indicator of having a node id filter.
-
hasStartDateFilter
public boolean hasStartDateFilter()This method returns an indicator whether this criteria has a start date filter.- Returns:
- Indicator of having a start date filter.
-
hasTimeoutDateFilter
public boolean hasTimeoutDateFilter()This method returns an indicator whether this criteria has a time out date filter.- Returns:
- Indicator of having a time out date filter.
-
hasDueDateFilter
public boolean hasDueDateFilter()This method returns an indicator whether this criteria has a due date filter.- Returns:
- Indicator of having a due date filter.
-
hasEventNameFilter
public boolean hasEventNameFilter()This method returns an indicator whether this criteria has an event name filter.- Returns:
- Indicator of having an event name filter.
-
setAppIdFilter
This method sets a appId filter to the criteria. This method should be used when custom queries are needed. For normal use, seesetAppIdFilter(ApplicationID)
.- Returns:
- The filter.
-
setAppIdFilter
Sets a filter which 'matches' the given application id. The semantics of 'matches' depend on the process engine settings for the given application.- if app id ignore mode is not configured or is 'none', this method adds an EQUALS filter for the given application id
- if app id ignore mode is 'version', this method adds a LIKE filter for the given application id, matching only on the application name
- if app id ignore mode is 'all', this method has no effect, no filter is added on application id
- Parameters:
appId
- the application id to filter on
-
setRequiredFilter
This method sets a required filter to the criteria.- Returns:
- The filter.
-
setCaseIdFilter
This method sets a caseId filter to the criteria.- Returns:
- The filter.
-
setNameFilter
This method sets a name filter to the criteria.- Returns:
- The filter.
-
setTypeFilter
This method sets a type filter to the criteria.- Returns:
- The filter.
-
setStatusFilter
This method sets a status filter to the criteria.- Returns:
- The filter.
-
setPriorityFilter
This method sets a priority filter to the criteria.- Returns:
- The filter.
-
setAssigneeFilter
This method sets an assignee filter to the criteria.- Returns:
- The filter.
-
setNodeIdFilter
This method sets a node id filter to the criteria.- Returns:
- The filter.
-
setStartDateFilter
This method sets a start date filter to the criteria.- Returns:
- The filter.
-
setTimeoutDateFilter
This method sets a time out date filter to the criteria.- Returns:
- The filter.
-
setDueDateFilter
This method sets a due date filter to the criteria.- Returns:
- The filter.
-
setEventNameFilter
This method sets a event name filter to the criteria.- Returns:
- The filter.
-
getAppIdFilter
This method returns the app id filter.- Returns:
- The app id filter.
-
getRequiredFilter
This method returns the requiored filter.- Returns:
- The required filter.
-
getCaseIdFilter
This method returns the case id filter.- Returns:
- The case id filter.
-
getNameFilter
This method returns the name filter.- Returns:
- The name filter.
-
getTypeFilter
This method returns the type filter.- Returns:
- The type filter.
-
getStatusFilter
This method returns the status filter.- Returns:
- The status filter.
-
getPriorityFilter
This method returns the priority filter.- Returns:
- The priority filter.
-
getAssigneeFilter
This method returns the assignee filter.- Returns:
- The assignee filter.
-
getNodeIdFilter
This method returns the node id filter.- Returns:
- The node id filter.
-
getStartDateFilter
This method returns the start date filter.- Returns:
- The start date filter.
-
getTimeoutDateFilter
This method returns the time out date filter.- Returns:
- The due date filter.
-
getDueDateFilter
This method returns the due date filter.- Returns:
- The due date filter.
-
getEventNameFilter
This method returns the event name filter.- Returns:
- The event name filter.
-
hasAttributeFilter
This method returns an indicator whether this criteria has a filter for the specified attribute.- Parameters:
attribute
- the attribute- Returns:
- Indicator of having a filter for the specified attribute.
-
getFilteredAttributes
This method returns all attributes that have a filter.- Returns:
- All filtered attributes.
-
getAttributeFilter
This method returns the filter for a specified attribute.- Parameters:
attribute
- The attribute.- Returns:
- The filter of the attribute.
-
addAttributeFilter
This method adds an attribute filter to the criteria.- Parameters:
attribute
- attribute to add filter forloweredIndex
- set to true if filter attribute has a lower index in the database (only possible on StringValue attributes since Hibernate 6)- Returns:
- The filter.
-
hasCustomFieldFilter
This method returns an indicator whether this criteria has a filter for the specified custom field.- Parameters:
customField
- the custom field- Returns:
- Indicator of having a filter for the specified custom field.
-
getFilteredCustomFields
This method returns all custom fields that have a filter.- Returns:
- All filtered custom fields.
-
getCustomFieldFilter
This method returns the filter for a specified custom field.- Parameters:
customField
- The custom field.- Returns:
- The filter of the custom field.
-
addCustomFieldFilter
This method adds a custom field filter to the criteria.- Parameters:
customField
- the custom field- Returns:
- The filter.
-
getLimit
This method returns the limit that is currently set for this criteria- Returns:
- the limit, null or an Integer representing a positive non-zero integer
-
setLimit
This method sets the limit on the number of results returned from the database- Parameters:
limit
- The limit, null or an Integer representing a positive non-zero integer
-