Interface TaskInfoQuery<T extends TaskInfoQuery<?,​?>,​V extends TaskInfo>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T deploymentId​(java.lang.String deploymentId)
      Only select tasks which are part of a process instance which has the given deployment id.
      T deploymentIdIn​(java.util.List<java.lang.String> deploymentIds)
      Only select tasks which are part of a process instance which has the given deployment id.
      T endOr()  
      T executionId​(java.lang.String executionId)
      Only select tasks for the given execution.
      T includeProcessVariables()
      Include global task variables in the task query result
      T includeTaskLocalVariables()
      Include local task variables in the task query result
      T limitTaskVariables​(java.lang.Integer taskVariablesLimit)
      Limit task variables
      T locale​(java.lang.String locale)
      Localize task name and description to specified locale.
      T or()
      All query clauses called will be added to a single or-statement.
      T orderByDueDateNullsFirst()
      Order by due date (needs to be followed by Query.asc() or Query.desc()).
      T orderByDueDateNullsLast()
      Order by due date (needs to be followed by Query.asc() or Query.desc()).
      T orderByExecutionId()
      Order by execution id (needs to be followed by Query.asc() or Query.desc()).
      T orderByProcessDefinitionId()
      Order by process definition id (needs to be followed by Query.asc() or Query.desc()).
      T orderByProcessInstanceId()
      Order by process instance id (needs to be followed by Query.asc() or Query.desc()).
      T orderByTaskAssignee()
      Order by assignee (needs to be followed by Query.asc() or Query.desc()).
      T orderByTaskCreateTime()
      Order by the time on which the tasks were created (needs to be followed by Query.asc() or Query.desc()).
      T orderByTaskDefinitionKey()
      Order by task definition key (needs to be followed by Query.asc() or Query.desc()).
      T orderByTaskDescription()
      Order by description (needs to be followed by Query.asc() or Query.desc()).
      T orderByTaskDueDate()
      Order by task due date (needs to be followed by Query.asc() or Query.desc()).
      T orderByTaskId()
      Order by task id (needs to be followed by Query.asc() or Query.desc()).
      T orderByTaskName()
      Order by task name (needs to be followed by Query.asc() or Query.desc()).
      T orderByTaskOwner()
      Order by task owner (needs to be followed by Query.asc() or Query.desc()).
      T orderByTaskPriority()
      Order by priority (needs to be followed by Query.asc() or Query.desc()).
      T orderByTenantId()
      Order by tenant id (needs to be followed by Query.asc() or Query.desc()).
      T processCategoryIn​(java.util.List<java.lang.String> processCategoryInList)
      Only select tasks which are part of a process instance whose definition belongs to the category which is present in the given list.
      T processCategoryNotIn​(java.util.List<java.lang.String> processCategoryNotInList)
      Only select tasks which are part of a process instance whose definition does not belong to the category which is present in the given list.
      T processDefinitionId​(java.lang.String processDefinitionId)
      Only select tasks which are part of a process instance which has the given process definition id.
      T processDefinitionKey​(java.lang.String processDefinitionKey)
      Only select tasks which are part of a process instance which has the given process definition key.
      T processDefinitionKeyIn​(java.util.List<java.lang.String> processDefinitionKeys)
      Only select tasks that have a process definition for which the key is present in the given list
      T processDefinitionKeyLike​(java.lang.String processDefinitionKeyLike)
      Only select tasks which are part of a process instance which has a process definition key like the given value.
      T processDefinitionKeyLikeIgnoreCase​(java.lang.String processDefinitionKeyLikeIgnoreCase)
      Only select tasks which are part of a process instance which has a process definition key like the given value.
      T processDefinitionName​(java.lang.String processDefinitionName)
      Only select tasks which are part of a process instance which has the given process definition name.
      T processDefinitionNameLike​(java.lang.String processDefinitionNameLike)
      Only select tasks which are part of a process instance which has a process definition name like the given value.
      T processInstanceBusinessKey​(java.lang.String processInstanceBusinessKey)
      Only select tasks foe the given business key
      T processInstanceBusinessKeyLike​(java.lang.String processInstanceBusinessKeyLike)
      Only select tasks with a business key like the given value The syntax is that of SQL: for example usage: processInstanceBusinessKeyLike("%activiti%").
      T processInstanceBusinessKeyLikeIgnoreCase​(java.lang.String processInstanceBusinessKeyLikeIgnoreCase)
      Only select tasks with a business key like the given value The syntax is that of SQL: for example usage: processInstanceBusinessKeyLike("%activiti%").
      T processInstanceId​(java.lang.String processInstanceId)
      Only select tasks for the given process instance id.
      T processInstanceIdIn​(java.util.List<java.lang.String> processInstanceIds)
      Only select tasks for the given process ids.
      T processVariableValueEquals​(java.lang.Object variableValue)
      Only select tasks which are part of a process that has at least one variable with the given value.
      T processVariableValueEquals​(java.lang.String variableName, java.lang.Object variableValue)
      Only select tasks which are part of a process that has a variable with the given name set to the given value.
      T processVariableValueEqualsIgnoreCase​(java.lang.String name, java.lang.String value)
      Only select tasks which are part of a process that has a local string variable which is not the given value, case insensitive.
      T processVariableValueGreaterThan​(java.lang.String name, java.lang.Object value)
      Only select tasks which have a global variable value greater than the passed value when they ended.
      T processVariableValueGreaterThanOrEqual​(java.lang.String name, java.lang.Object value)
      Only select tasks which have a global variable value greater than or equal to the passed value when they ended.
      T processVariableValueLessThan​(java.lang.String name, java.lang.Object value)
      Only select tasks which have a global variable value less than the passed value when the ended.Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      T processVariableValueLessThanOrEqual​(java.lang.String name, java.lang.Object value)
      Only select tasks which have a global variable value less than or equal to the passed value when they ended.
      T processVariableValueLike​(java.lang.String name, java.lang.String value)
      Only select tasks which have a global variable value like the given value when they ended.
      T processVariableValueLikeIgnoreCase​(java.lang.String name, java.lang.String value)
      Only select tasks which have a global variable value like the given value (case insensitive) when they ended.
      T processVariableValueNotEquals​(java.lang.String variableName, java.lang.Object variableValue)
      Only select tasks which have a variable with the given name, but with a different value than the passed value.
      T processVariableValueNotEqualsIgnoreCase​(java.lang.String name, java.lang.String value)
      Only select tasks which are part of a process that has a string variable with the given value, case insensitive.
      T taskAssignee​(java.lang.String assignee)
      Only select tasks which are assigned to the given user.
      T taskAssigneeIds​(java.util.List<java.lang.String> assigneeListIds)
      Only select tasks with an assignee that is in the given list
      T taskAssigneeLike​(java.lang.String assigneeLike)
      Only select tasks which were last assigned to an assignee like the given value.
      T taskAssigneeLikeIgnoreCase​(java.lang.String assigneeLikeIgnoreCase)
      Only select tasks which were last assigned to an assignee like the given value.
      T taskCandidateGroup​(java.lang.String candidateGroup)
      Only select tasks for which users in the given group are candidates.
      T taskCandidateGroupIn​(java.util.List<java.lang.String> candidateGroups)
      Only select tasks for which the 'candidateGroup' is one of the given groups.
      T taskCandidateUser​(java.lang.String candidateUser)
      Only select tasks for which the given user is a candidate.
      T taskCandidateUser​(java.lang.String candidateUser, java.util.List<java.lang.String> usersGroups)
      Only select tasks for which the given user is a candidate.
      T taskCategory​(java.lang.String category)
      Only select tasks with the given category.
      T taskCreatedAfter​(java.util.Date after)
      Only select tasks that are created after the given date.
      T taskCreatedBefore​(java.util.Date before)
      Only select tasks that are created before the given date.
      T taskCreatedOn​(java.util.Date createTime)
      Only select tasks that are created on the given date.
      T taskDefinitionKey​(java.lang.String key)
      Only select tasks with the given taskDefinitionKey.
      T taskDefinitionKeyLike​(java.lang.String keyLike)
      Only select tasks with a taskDefinitionKey that match the given parameter.
      T taskDescription​(java.lang.String description)
      Only select tasks with the given description.
      T taskDescriptionLike​(java.lang.String descriptionLike)
      Only select tasks with a description matching the parameter .
      T taskDescriptionLikeIgnoreCase​(java.lang.String descriptionLike)
      Only select tasks with a description matching the parameter .
      T taskDueAfter​(java.util.Date dueDate)
      Only select tasks which have a due date after the given date.
      T taskDueBefore​(java.util.Date dueDate)
      Only select tasks which have a due date before the given date.
      T taskDueDate​(java.util.Date dueDate)
      Only select tasks with the given due date.
      T taskId​(java.lang.String taskId)
      Only select tasks with the given task id (in practice, there will be maximum one of this kind)
      T taskInvolvedGroupsIn​(java.util.List<java.lang.String> involvedGroups)
      Only select tasks for users involved in the given groups
      T taskInvolvedUser​(java.lang.String involvedUser)
      Only select tasks for which there exist an IdentityLink with the given user, including tasks which have been assigned to the given user (assignee) or owned by the given user (owner).
      T taskMaxPriority​(java.lang.Integer maxPriority)
      Only select tasks with the given priority or lower.
      T taskMinPriority​(java.lang.Integer minPriority)
      Only select tasks with the given priority or higher.
      T taskName​(java.lang.String name)
      Only select tasks with the given name
      T taskNameIn​(java.util.List<java.lang.String> nameList)
      Only select tasks with a name that is in the given list
      T taskNameInIgnoreCase​(java.util.List<java.lang.String> nameList)
      Only select tasks with a name that is in the given list This method, unlike the taskNameIn(List) method will not take in account the upper/lower case: both the input parameters as the column value are lowercased when the query is executed.
      T taskNameLike​(java.lang.String nameLike)
      Only select tasks with a name matching the parameter.
      T taskNameLikeIgnoreCase​(java.lang.String nameLike)
      Only select tasks with a name matching the parameter.
      T taskOwner​(java.lang.String owner)
      Only select tasks for which the given user is the owner.
      T taskOwnerLike​(java.lang.String ownerLike)
      Only select tasks which were last assigned to an owner like the given value.
      T taskOwnerLikeIgnoreCase​(java.lang.String ownerLikeIgnoreCase)
      Only select tasks which were last assigned to an owner like the given value.
      T taskParentTaskId​(java.lang.String parentTaskId)  
      T taskPriority​(java.lang.Integer priority)
      Only select tasks with the given priority.
      T taskTenantId​(java.lang.String tenantId)
      Only select tasks that have the given tenant id.
      T taskTenantIdLike​(java.lang.String tenantIdLike)
      Only select tasks with a tenant id like the given one.
      T taskVariableValueEquals​(java.lang.Object variableValue)
      Only select tasks which have at least one local task variable with the given value.
      T taskVariableValueEquals​(java.lang.String variableName, java.lang.Object variableValue)
      Only select tasks which have a local task variable with the given name set to the given value.
      T taskVariableValueEqualsIgnoreCase​(java.lang.String name, java.lang.String value)
      Only select tasks which have a local string variable with the given value, case insensitive.
      T taskVariableValueGreaterThan​(java.lang.String name, java.lang.Object value)
      Only select tasks which have a local variable value greater than the passed value when they ended.
      T taskVariableValueGreaterThanOrEqual​(java.lang.String name, java.lang.Object value)
      Only select tasks which have a local variable value greater than or equal to the passed value when they ended.
      T taskVariableValueLessThan​(java.lang.String name, java.lang.Object value)
      Only select tasks which have a local variable value less than the passed value when the ended.Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      T taskVariableValueLessThanOrEqual​(java.lang.String name, java.lang.Object value)
      Only select tasks which have a local variable value less than or equal to the passed value when they ended.
      T taskVariableValueLike​(java.lang.String name, java.lang.String value)
      Only select tasks which have a local variable value like the given value when they ended.
      T taskVariableValueLikeIgnoreCase​(java.lang.String name, java.lang.String value)
      Only select tasks which have a local variable value like the given value (case insensitive) when they ended.
      T taskVariableValueNotEquals​(java.lang.String variableName, java.lang.Object variableValue)
      Only select tasks which have a local task variable with the given name, but with a different value than the passed value.
      T taskVariableValueNotEqualsIgnoreCase​(java.lang.String name, java.lang.String value)
      Only select tasks which have a local string variable with is not the given value, case insensitive.
      T taskWithoutTenantId()
      Only select tasks that do not have a tenant id.
      T withLocalizationFallback()
      Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.
      T withoutTaskDueDate()
      Only select tasks with no due date.
    • Method Detail

      • taskId

        T taskId​(java.lang.String taskId)
        Only select tasks with the given task id (in practice, there will be maximum one of this kind)
      • taskName

        T taskName​(java.lang.String name)
        Only select tasks with the given name
      • taskNameIn

        T taskNameIn​(java.util.List<java.lang.String> nameList)
        Only select tasks with a name that is in the given list
        Throws:
        ActivitiIllegalArgumentException - When passed name list is empty or null or contains null String.
      • taskNameInIgnoreCase

        T taskNameInIgnoreCase​(java.util.List<java.lang.String> nameList)
        Only select tasks with a name that is in the given list This method, unlike the taskNameIn(List) method will not take in account the upper/lower case: both the input parameters as the column value are lowercased when the query is executed.
        Throws:
        ActivitiIllegalArgumentException - When passed name list is empty or null or contains null String.
      • taskNameLike

        T taskNameLike​(java.lang.String nameLike)
        Only select tasks with a name matching the parameter. The syntax is that of SQL: for example usage: nameLike(%activiti%)
      • taskNameLikeIgnoreCase

        T taskNameLikeIgnoreCase​(java.lang.String nameLike)
        Only select tasks with a name matching the parameter. The syntax is that of SQL: for example usage: nameLike(%activiti%) This method, unlike the taskNameLike(String) method will not take in account the upper/lower case: both the input parameter as the column value are lowercased when the query is executed.
      • taskDescription

        T taskDescription​(java.lang.String description)
        Only select tasks with the given description.
      • taskDescriptionLike

        T taskDescriptionLike​(java.lang.String descriptionLike)
        Only select tasks with a description matching the parameter . The syntax is that of SQL: for example usage: descriptionLike(%activiti%)
      • taskDescriptionLikeIgnoreCase

        T taskDescriptionLikeIgnoreCase​(java.lang.String descriptionLike)
        Only select tasks with a description matching the parameter . The syntax is that of SQL: for example usage: descriptionLike(%activiti%) This method, unlike the taskDescriptionLike(String) method will not take in account the upper/lower case: both the input parameter as the column value are lowercased when the query is executed.
      • taskPriority

        T taskPriority​(java.lang.Integer priority)
        Only select tasks with the given priority.
      • taskMinPriority

        T taskMinPriority​(java.lang.Integer minPriority)
        Only select tasks with the given priority or higher.
      • taskMaxPriority

        T taskMaxPriority​(java.lang.Integer maxPriority)
        Only select tasks with the given priority or lower.
      • taskAssignee

        T taskAssignee​(java.lang.String assignee)
        Only select tasks which are assigned to the given user.
      • taskAssigneeLike

        T taskAssigneeLike​(java.lang.String assigneeLike)
        Only select tasks which were last assigned to an assignee like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.
      • taskAssigneeLikeIgnoreCase

        T taskAssigneeLikeIgnoreCase​(java.lang.String assigneeLikeIgnoreCase)
        Only select tasks which were last assigned to an assignee like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%. This method, unlike the taskAssigneeLike(String) method will not take in account the upper/lower case: both the input parameter as the column value are lowercased when the query is executed.
      • taskAssigneeIds

        T taskAssigneeIds​(java.util.List<java.lang.String> assigneeListIds)
        Only select tasks with an assignee that is in the given list
        Throws:
        ActivitiIllegalArgumentException - When passed name list is empty or null or contains null String.
      • taskOwner

        T taskOwner​(java.lang.String owner)
        Only select tasks for which the given user is the owner.
      • taskOwnerLike

        T taskOwnerLike​(java.lang.String ownerLike)
        Only select tasks which were last assigned to an owner like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.
      • taskOwnerLikeIgnoreCase

        T taskOwnerLikeIgnoreCase​(java.lang.String ownerLikeIgnoreCase)
        Only select tasks which were last assigned to an owner like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%. This method, unlike the taskOwnerLike(String) method will not take in account the upper/lower case: both the input parameter as the column value are lowercased when the query is executed.
      • taskCandidateUser

        T taskCandidateUser​(java.lang.String candidateUser)
        Only select tasks for which the given user is a candidate. If identity service is available then also through user's groups.
      • taskCandidateUser

        T taskCandidateUser​(java.lang.String candidateUser,
                            java.util.List<java.lang.String> usersGroups)
        Only select tasks for which the given user is a candidate.
      • taskInvolvedUser

        T taskInvolvedUser​(java.lang.String involvedUser)
        Only select tasks for which there exist an IdentityLink with the given user, including tasks which have been assigned to the given user (assignee) or owned by the given user (owner).
      • taskInvolvedGroupsIn

        T taskInvolvedGroupsIn​(java.util.List<java.lang.String> involvedGroups)
        Only select tasks for users involved in the given groups
      • taskCandidateGroup

        T taskCandidateGroup​(java.lang.String candidateGroup)
        Only select tasks for which users in the given group are candidates.
      • taskTenantId

        T taskTenantId​(java.lang.String tenantId)
        Only select tasks that have the given tenant id.
      • taskTenantIdLike

        T taskTenantIdLike​(java.lang.String tenantIdLike)
        Only select tasks with a tenant id like the given one.
      • taskWithoutTenantId

        T taskWithoutTenantId()
        Only select tasks that do not have a tenant id.
      • processInstanceId

        T processInstanceId​(java.lang.String processInstanceId)
        Only select tasks for the given process instance id.
      • processInstanceIdIn

        T processInstanceIdIn​(java.util.List<java.lang.String> processInstanceIds)
        Only select tasks for the given process ids.
      • processInstanceBusinessKey

        T processInstanceBusinessKey​(java.lang.String processInstanceBusinessKey)
        Only select tasks foe the given business key
      • processInstanceBusinessKeyLike

        T processInstanceBusinessKeyLike​(java.lang.String processInstanceBusinessKeyLike)
        Only select tasks with a business key like the given value The syntax is that of SQL: for example usage: processInstanceBusinessKeyLike("%activiti%").
      • processInstanceBusinessKeyLikeIgnoreCase

        T processInstanceBusinessKeyLikeIgnoreCase​(java.lang.String processInstanceBusinessKeyLikeIgnoreCase)
        Only select tasks with a business key like the given value The syntax is that of SQL: for example usage: processInstanceBusinessKeyLike("%activiti%"). This method, unlike the processInstanceBusinessKeyLike(String) method will not take in account the upper/lower case: both the input parameter as the column value are lowercased when the query is executed.
      • executionId

        T executionId​(java.lang.String executionId)
        Only select tasks for the given execution.
      • taskCreatedOn

        T taskCreatedOn​(java.util.Date createTime)
        Only select tasks that are created on the given date.
      • taskCreatedBefore

        T taskCreatedBefore​(java.util.Date before)
        Only select tasks that are created before the given date.
      • taskCreatedAfter

        T taskCreatedAfter​(java.util.Date after)
        Only select tasks that are created after the given date.
      • taskCategory

        T taskCategory​(java.lang.String category)
        Only select tasks with the given category.
      • taskDefinitionKey

        T taskDefinitionKey​(java.lang.String key)
        Only select tasks with the given taskDefinitionKey. The task definition key is the id of the userTask: <userTask id="xxx" .../>
      • taskDefinitionKeyLike

        T taskDefinitionKeyLike​(java.lang.String keyLike)
        Only select tasks with a taskDefinitionKey that match the given parameter. The syntax is that of SQL: for example usage: taskDefinitionKeyLike("%activiti%"). The task definition key is the id of the userTask: <userTask id="xxx" .../>
      • taskDueDate

        T taskDueDate​(java.util.Date dueDate)
        Only select tasks with the given due date.
      • taskDueBefore

        T taskDueBefore​(java.util.Date dueDate)
        Only select tasks which have a due date before the given date.
      • taskDueAfter

        T taskDueAfter​(java.util.Date dueDate)
        Only select tasks which have a due date after the given date.
      • taskParentTaskId

        T taskParentTaskId​(java.lang.String parentTaskId)
      • withoutTaskDueDate

        T withoutTaskDueDate()
        Only select tasks with no due date.
      • processDefinitionKey

        T processDefinitionKey​(java.lang.String processDefinitionKey)
        Only select tasks which are part of a process instance which has the given process definition key.
      • processDefinitionKeyLike

        T processDefinitionKeyLike​(java.lang.String processDefinitionKeyLike)
        Only select tasks which are part of a process instance which has a process definition key like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.
      • processDefinitionKeyLikeIgnoreCase

        T processDefinitionKeyLikeIgnoreCase​(java.lang.String processDefinitionKeyLikeIgnoreCase)
        Only select tasks which are part of a process instance which has a process definition key like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%. This method, unlike the processDefinitionKeyLike(String) method will not take in account the upper/lower case: both the input parameter as the column value are lowercased when the query is executed.
      • processDefinitionKeyIn

        T processDefinitionKeyIn​(java.util.List<java.lang.String> processDefinitionKeys)
        Only select tasks that have a process definition for which the key is present in the given list
      • processDefinitionId

        T processDefinitionId​(java.lang.String processDefinitionId)
        Only select tasks which are part of a process instance which has the given process definition id.
      • processDefinitionName

        T processDefinitionName​(java.lang.String processDefinitionName)
        Only select tasks which are part of a process instance which has the given process definition name.
      • processDefinitionNameLike

        T processDefinitionNameLike​(java.lang.String processDefinitionNameLike)
        Only select tasks which are part of a process instance which has a process definition name like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.
      • processCategoryIn

        T processCategoryIn​(java.util.List<java.lang.String> processCategoryInList)
        Only select tasks which are part of a process instance whose definition belongs to the category which is present in the given list.
        Parameters:
        processCategoryInList -
        Throws:
        ActivitiIllegalArgumentException - When passed category list is empty or null or contains null String.
      • processCategoryNotIn

        T processCategoryNotIn​(java.util.List<java.lang.String> processCategoryNotInList)
        Only select tasks which are part of a process instance whose definition does not belong to the category which is present in the given list.
        Parameters:
        processCategoryNotInList -
        Throws:
        ActivitiIllegalArgumentException - When passed category list is empty or null or contains null String.
      • deploymentId

        T deploymentId​(java.lang.String deploymentId)
        Only select tasks which are part of a process instance which has the given deployment id.
      • deploymentIdIn

        T deploymentIdIn​(java.util.List<java.lang.String> deploymentIds)
        Only select tasks which are part of a process instance which has the given deployment id.
      • taskVariableValueEquals

        T taskVariableValueEquals​(java.lang.String variableName,
                                  java.lang.Object variableValue)
        Only select tasks which have a local task variable with the given name set to the given value.
      • taskVariableValueEquals

        T taskVariableValueEquals​(java.lang.Object variableValue)
        Only select tasks which have at least one local task variable with the given value.
      • taskVariableValueEqualsIgnoreCase

        T taskVariableValueEqualsIgnoreCase​(java.lang.String name,
                                            java.lang.String value)
        Only select tasks which have a local string variable with the given value, case insensitive.

        This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).

      • taskVariableValueNotEquals

        T taskVariableValueNotEquals​(java.lang.String variableName,
                                     java.lang.Object variableValue)
        Only select tasks which have a local task variable with the given name, but with a different value than the passed value. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      • taskVariableValueNotEqualsIgnoreCase

        T taskVariableValueNotEqualsIgnoreCase​(java.lang.String name,
                                               java.lang.String value)
        Only select tasks which have a local string variable with is not the given value, case insensitive.

        This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).

      • taskVariableValueGreaterThan

        T taskVariableValueGreaterThan​(java.lang.String name,
                                       java.lang.Object value)
        Only select tasks which have a local variable value greater than the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Parameters:
        name - cannot be null.
        value - cannot be null.
      • taskVariableValueGreaterThanOrEqual

        T taskVariableValueGreaterThanOrEqual​(java.lang.String name,
                                              java.lang.Object value)
        Only select tasks which have a local variable value greater than or equal to the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Parameters:
        name - cannot be null.
        value - cannot be null.
      • taskVariableValueLessThan

        T taskVariableValueLessThan​(java.lang.String name,
                                    java.lang.Object value)
        Only select tasks which have a local variable value less than the passed value when the ended.Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Parameters:
        name - cannot be null.
        value - cannot be null.
      • taskVariableValueLessThanOrEqual

        T taskVariableValueLessThanOrEqual​(java.lang.String name,
                                           java.lang.Object value)
        Only select tasks which have a local variable value less than or equal to the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Parameters:
        name - cannot be null.
        value - cannot be null.
      • taskVariableValueLike

        T taskVariableValueLike​(java.lang.String name,
                                java.lang.String value)
        Only select tasks which have a local variable value like the given value when they ended. This can be used on string variables only.
        Parameters:
        name - cannot be null.
        value - cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
      • taskVariableValueLikeIgnoreCase

        T taskVariableValueLikeIgnoreCase​(java.lang.String name,
                                          java.lang.String value)
        Only select tasks which have a local variable value like the given value (case insensitive) when they ended. This can be used on string variables only.
        Parameters:
        name - cannot be null.
        value - cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
      • processVariableValueEquals

        T processVariableValueEquals​(java.lang.String variableName,
                                     java.lang.Object variableValue)
        Only select tasks which are part of a process that has a variable with the given name set to the given value.
      • processVariableValueEquals

        T processVariableValueEquals​(java.lang.Object variableValue)
        Only select tasks which are part of a process that has at least one variable with the given value.
      • processVariableValueEqualsIgnoreCase

        T processVariableValueEqualsIgnoreCase​(java.lang.String name,
                                               java.lang.String value)
        Only select tasks which are part of a process that has a local string variable which is not the given value, case insensitive.

        This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).

      • processVariableValueNotEquals

        T processVariableValueNotEquals​(java.lang.String variableName,
                                        java.lang.Object variableValue)
        Only select tasks which have a variable with the given name, but with a different value than the passed value. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      • processVariableValueNotEqualsIgnoreCase

        T processVariableValueNotEqualsIgnoreCase​(java.lang.String name,
                                                  java.lang.String value)
        Only select tasks which are part of a process that has a string variable with the given value, case insensitive.

        This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).

      • processVariableValueGreaterThan

        T processVariableValueGreaterThan​(java.lang.String name,
                                          java.lang.Object value)
        Only select tasks which have a global variable value greater than the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Parameters:
        name - cannot be null.
        value - cannot be null.
      • processVariableValueGreaterThanOrEqual

        T processVariableValueGreaterThanOrEqual​(java.lang.String name,
                                                 java.lang.Object value)
        Only select tasks which have a global variable value greater than or equal to the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Parameters:
        name - cannot be null.
        value - cannot be null.
      • processVariableValueLessThan

        T processVariableValueLessThan​(java.lang.String name,
                                       java.lang.Object value)
        Only select tasks which have a global variable value less than the passed value when the ended.Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Parameters:
        name - cannot be null.
        value - cannot be null.
      • processVariableValueLessThanOrEqual

        T processVariableValueLessThanOrEqual​(java.lang.String name,
                                              java.lang.Object value)
        Only select tasks which have a global variable value less than or equal to the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Parameters:
        name - cannot be null.
        value - cannot be null.
      • processVariableValueLike

        T processVariableValueLike​(java.lang.String name,
                                   java.lang.String value)
        Only select tasks which have a global variable value like the given value when they ended. This can be used on string variables only.
        Parameters:
        name - cannot be null.
        value - cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
      • processVariableValueLikeIgnoreCase

        T processVariableValueLikeIgnoreCase​(java.lang.String name,
                                             java.lang.String value)
        Only select tasks which have a global variable value like the given value (case insensitive) when they ended. This can be used on string variables only.
        Parameters:
        name - cannot be null.
        value - cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
      • includeTaskLocalVariables

        T includeTaskLocalVariables()
        Include local task variables in the task query result
      • includeProcessVariables

        T includeProcessVariables()
        Include global task variables in the task query result
      • limitTaskVariables

        T limitTaskVariables​(java.lang.Integer taskVariablesLimit)
        Limit task variables
      • locale

        T locale​(java.lang.String locale)
        Localize task name and description to specified locale.
      • withLocalizationFallback

        T withLocalizationFallback()
        Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.
      • or

        T or()
        All query clauses called will be added to a single or-statement. This or-statement will be included with the other already existing clauses in the query, joined by an 'and'. Calling endOr() will add all clauses to the regular query again. Calling or() after endOr() has been called will result in an exception.
      • endOr

        T endOr()
      • orderByTaskDescription

        T orderByTaskDescription()
        Order by description (needs to be followed by Query.asc() or Query.desc()).
      • orderByTaskCreateTime

        T orderByTaskCreateTime()
        Order by the time on which the tasks were created (needs to be followed by Query.asc() or Query.desc()).
      • orderByProcessInstanceId

        T orderByProcessInstanceId()
        Order by process instance id (needs to be followed by Query.asc() or Query.desc()).
      • orderByExecutionId

        T orderByExecutionId()
        Order by execution id (needs to be followed by Query.asc() or Query.desc()).
      • orderByProcessDefinitionId

        T orderByProcessDefinitionId()
        Order by process definition id (needs to be followed by Query.asc() or Query.desc()).
      • orderByTaskDueDate

        T orderByTaskDueDate()
        Order by task due date (needs to be followed by Query.asc() or Query.desc()).
      • orderByTaskDefinitionKey

        T orderByTaskDefinitionKey()
        Order by task definition key (needs to be followed by Query.asc() or Query.desc()).
      • orderByDueDateNullsFirst

        T orderByDueDateNullsFirst()
        Order by due date (needs to be followed by Query.asc() or Query.desc()). If any of the tasks have null for the due date, these will be first in the result.
      • orderByDueDateNullsLast

        T orderByDueDateNullsLast()
        Order by due date (needs to be followed by Query.asc() or Query.desc()). If any of the tasks have null for the due date, these will be last in the result.