Class TaskQueryImpl

    • Field Detail

      • taskId

        protected String taskId
      • taskIdIn

        protected String[] taskIdIn
      • nameNotEqual

        protected String nameNotEqual
      • nameLike

        protected String nameLike
      • nameNotLike

        protected String nameNotLike
      • description

        protected String description
      • descriptionLike

        protected String descriptionLike
      • priority

        protected Integer priority
      • minPriority

        protected Integer minPriority
      • maxPriority

        protected Integer maxPriority
      • assignee

        protected String assignee
      • assigneeLike

        protected String assigneeLike
      • assigneeIn

        protected Set<String> assigneeIn
      • assigneeNotIn

        protected Set<String> assigneeNotIn
      • involvedUser

        protected String involvedUser
      • owner

        protected String owner
      • unassigned

        protected Boolean unassigned
      • assigned

        protected Boolean assigned
      • noDelegationState

        protected boolean noDelegationState
      • candidateUser

        protected String candidateUser
      • candidateGroup

        protected String candidateGroup
      • candidateGroups

        protected List<String> candidateGroups
      • withCandidateGroups

        protected Boolean withCandidateGroups
      • withoutCandidateGroups

        protected Boolean withoutCandidateGroups
      • withCandidateUsers

        protected Boolean withCandidateUsers
      • withoutCandidateUsers

        protected Boolean withoutCandidateUsers
      • includeAssignedTasks

        protected Boolean includeAssignedTasks
      • processInstanceId

        protected String processInstanceId
      • processInstanceIdIn

        protected String[] processInstanceIdIn
      • executionId

        protected String executionId
      • activityInstanceIdIn

        protected String[] activityInstanceIdIn
      • createTime

        protected Date createTime
      • createTimeBefore

        protected Date createTimeBefore
      • createTimeAfter

        protected Date createTimeAfter
      • updatedAfter

        protected Date updatedAfter
      • keyLike

        protected String keyLike
      • taskDefinitionKeys

        protected String[] taskDefinitionKeys
      • processDefinitionKey

        protected String processDefinitionKey
      • processDefinitionKeys

        protected String[] processDefinitionKeys
      • processDefinitionId

        protected String processDefinitionId
      • processDefinitionName

        protected String processDefinitionName
      • processDefinitionNameLike

        protected String processDefinitionNameLike
      • processInstanceBusinessKey

        protected String processInstanceBusinessKey
      • processInstanceBusinessKeys

        protected String[] processInstanceBusinessKeys
      • processInstanceBusinessKeyLike

        protected String processInstanceBusinessKeyLike
      • dueDate

        protected Date dueDate
      • dueBefore

        protected Date dueBefore
      • dueAfter

        protected Date dueAfter
      • followUpDate

        protected Date followUpDate
      • followUpBefore

        protected Date followUpBefore
      • followUpNullAccepted

        protected boolean followUpNullAccepted
      • followUpAfter

        protected Date followUpAfter
      • excludeSubtasks

        protected boolean excludeSubtasks
      • initializeFormKeys

        protected boolean initializeFormKeys
      • taskNameCaseInsensitive

        protected boolean taskNameCaseInsensitive
      • variableNamesIgnoreCase

        protected Boolean variableNamesIgnoreCase
      • variableValuesIgnoreCase

        protected Boolean variableValuesIgnoreCase
      • parentTaskId

        protected String parentTaskId
      • isWithoutTenantId

        protected boolean isWithoutTenantId
      • isWithoutDueDate

        protected boolean isWithoutDueDate
      • tenantIds

        protected String[] tenantIds
      • caseDefinitionKey

        protected String caseDefinitionKey
      • caseDefinitionId

        protected String caseDefinitionId
      • caseDefinitionName

        protected String caseDefinitionName
      • caseDefinitionNameLike

        protected String caseDefinitionNameLike
      • caseInstanceId

        protected String caseInstanceId
      • caseInstanceBusinessKey

        protected String caseInstanceBusinessKey
      • caseInstanceBusinessKeyLike

        protected String caseInstanceBusinessKeyLike
      • caseExecutionId

        protected String caseExecutionId
      • cachedCandidateGroups

        protected List<String> cachedCandidateGroups
      • isOrQueryActive

        protected boolean isOrQueryActive
    • Constructor Detail

      • TaskQueryImpl

        public TaskQueryImpl()
    • Method Detail

      • taskId

        public TaskQueryImpl taskId​(String taskId)
        Description copied from interface: TaskQuery
        Only select tasks with the given task id (in practice, there will be maximum one of this kind)
        Specified by:
        taskId in interface TaskQuery
      • taskName

        public TaskQueryImpl taskName​(String name)
        Description copied from interface: TaskQuery
        Only select tasks with the given name. The query will match the names of tasks in a case-insensitive way.
        Specified by:
        taskName in interface TaskQuery
      • taskNameLike

        public TaskQueryImpl taskNameLike​(String nameLike)
        Description copied from interface: TaskQuery
        Only select tasks with a name matching the parameter. The syntax is that of SQL: for example usage: nameLike(%camunda%). The query will match the names of tasks in a case-insensitive way.
        Specified by:
        taskNameLike in interface TaskQuery
      • taskDescription

        public TaskQueryImpl taskDescription​(String description)
        Description copied from interface: TaskQuery
        Only select tasks with the given description. The query will match the descriptions of tasks in a case-insensitive way.
        Specified by:
        taskDescription in interface TaskQuery
      • taskDescriptionLike

        public TaskQuery taskDescriptionLike​(String descriptionLike)
        Description copied from interface: TaskQuery
        Only select tasks with a description matching the parameter . The syntax is that of SQL: for example usage: descriptionLike(%camunda%) The query will match the descriptions of tasks in a case-insensitive way.
        Specified by:
        taskDescriptionLike in interface TaskQuery
      • taskAssigneeExpression

        public TaskQuery taskAssigneeExpression​(String assigneeExpression)
        Description copied from interface: TaskQuery

        Only select tasks which are assigned to the user described by the given expression.

        Specified by:
        taskAssigneeExpression in interface TaskQuery
      • taskAssigneeLike

        public TaskQuery taskAssigneeLike​(String assignee)
        Description copied from interface: TaskQuery
        Only select tasks which are matching the given user. The syntax is that of SQL: for example usage: nameLike(%camunda%)
        Specified by:
        taskAssigneeLike in interface TaskQuery
      • taskAssigneeLikeExpression

        public TaskQuery taskAssigneeLikeExpression​(String assigneeLikeExpression)
        Description copied from interface: TaskQuery

        Only select tasks which are assigned to the user described by the given expression. The syntax is that of SQL: for example usage: taskAssigneeLikeExpression("${'%test%'}")

        Specified by:
        taskAssigneeLikeExpression in interface TaskQuery
      • taskAssigneeIn

        public TaskQuery taskAssigneeIn​(String... assignees)
        Description copied from interface: TaskQuery
        Only select tasks which are assigned to one of the given users.
        Specified by:
        taskAssigneeIn in interface TaskQuery
      • taskAssigneeNotIn

        public TaskQuery taskAssigneeNotIn​(String... assignees)
        Description copied from interface: TaskQuery
        Only select tasks which are not assigned to any of the given users.
        Specified by:
        taskAssigneeNotIn in interface TaskQuery
      • taskOwnerExpression

        public TaskQuery taskOwnerExpression​(String ownerExpression)
        Description copied from interface: TaskQuery

        Only select tasks for which the described user by the given expression is the owner.

        Specified by:
        taskOwnerExpression in interface TaskQuery
      • taskCandidateUser

        public TaskQueryImpl taskCandidateUser​(String candidateUser)
        Description copied from interface: TaskQuery
        Only select tasks for which the given user or one of his groups is a candidate.

        Per default it only selects tasks which are not already assigned to a user. To also include assigned task in the result specify TaskQuery.includeAssignedTasks() in your query.

        Specified by:
        taskCandidateUser in interface TaskQuery
      • taskCandidateUserExpression

        public TaskQuery taskCandidateUserExpression​(String candidateUserExpression)
        Description copied from interface: TaskQuery
        Only select tasks for which the described user by the given expression is a candidate.

        Per default it only selects tasks which are not already assigned to a user. To also include assigned task in the result specify TaskQuery.includeAssignedTasks() in your query.

        Specified by:
        taskCandidateUserExpression in interface TaskQuery
      • taskCandidateGroup

        public TaskQueryImpl taskCandidateGroup​(String candidateGroup)
        Description copied from interface: TaskQuery
        Only select tasks for which users in the given group are candidates.

        Per default it only selects tasks which are not already assigned to a user. To also include assigned task in the result specify TaskQuery.includeAssignedTasks() in your query.

        Specified by:
        taskCandidateGroup in interface TaskQuery
      • taskCandidateGroupExpression

        public TaskQuery taskCandidateGroupExpression​(String candidateGroupExpression)
        Description copied from interface: TaskQuery
        Only select tasks for which users in the described group by the given expression are candidates.

        Per default it only selects tasks which are not already assigned to a user. To also include assigned task in the result specify TaskQuery.includeAssignedTasks() in your query.

        Specified by:
        taskCandidateGroupExpression in interface TaskQuery
      • taskCandidateGroupIn

        public TaskQuery taskCandidateGroupIn​(List<String> candidateGroups)
        Description copied from interface: TaskQuery
        Only select tasks for which the 'candidateGroup' is one of the given groups.

        Per default it only selects tasks which are not already assigned to a user. To also include assigned task in the result specify TaskQuery.includeAssignedTasks() in your query.

        Specified by:
        taskCandidateGroupIn in interface TaskQuery
      • taskCandidateGroupInExpression

        public TaskQuery taskCandidateGroupInExpression​(String candidateGroupsExpression)
        Description copied from interface: TaskQuery
        Only select tasks for which the 'candidateGroup' is one of the described groups of the given expression.

        Per default it only selects tasks which are not already assigned to a user. To also include assigned task in the result specify TaskQuery.includeAssignedTasks() in your query.

        Specified by:
        taskCandidateGroupInExpression in interface TaskQuery
      • includeAssignedTasksInternal

        public TaskQuery includeAssignedTasksInternal()
      • processInstanceBusinessKeyExpression

        public TaskQuery processInstanceBusinessKeyExpression​(String processInstanceBusinessKeyExpression)
        Description copied from interface: TaskQuery
        Only select tasks for the given process instance business key described by the given expression
        Specified by:
        processInstanceBusinessKeyExpression in interface TaskQuery
      • processInstanceBusinessKeyIn

        public TaskQuery processInstanceBusinessKeyIn​(String... processInstanceBusinessKeys)
        Description copied from interface: TaskQuery
        Only select tasks for any of the given the given process instance business keys.
        Specified by:
        processInstanceBusinessKeyIn in interface TaskQuery
      • processInstanceBusinessKeyLike

        public TaskQuery processInstanceBusinessKeyLike​(String processInstanceBusinessKey)
        Description copied from interface: TaskQuery
        Only select tasks matching the given process instance business key. The syntax is that of SQL: for example usage: nameLike(%camunda%)
        Specified by:
        processInstanceBusinessKeyLike in interface TaskQuery
      • processInstanceBusinessKeyLikeExpression

        public TaskQuery processInstanceBusinessKeyLikeExpression​(String processInstanceBusinessKeyLikeExpression)
        Description copied from interface: TaskQuery
        Only select tasks matching the given process instance business key described by the given expression. The syntax is that of SQL: for example usage: processInstanceBusinessKeyLikeExpression("${ '%camunda%' }")
        Specified by:
        processInstanceBusinessKeyLikeExpression in interface TaskQuery
      • activityInstanceIdIn

        public TaskQuery activityInstanceIdIn​(String... activityInstanceIds)
        Description copied from interface: TaskQuery
        Only select task which have one of the activity instance ids.
        Specified by:
        activityInstanceIdIn in interface TaskQuery
      • tenantIdIn

        public TaskQuery tenantIdIn​(String... tenantIds)
        Description copied from interface: TaskQuery
        Only select tasks with one of the given tenant ids.
        Specified by:
        tenantIdIn in interface TaskQuery
      • taskCreatedOnExpression

        public TaskQuery taskCreatedOnExpression​(String createTimeExpression)
        Description copied from interface: TaskQuery
        Only select tasks that are created on the date resolved from the given expression.
        Specified by:
        taskCreatedOnExpression in interface TaskQuery
      • taskCreatedBeforeExpression

        public TaskQuery taskCreatedBeforeExpression​(String beforeExpression)
        Description copied from interface: TaskQuery
        Only select tasks that are created before the date resolved from the given expression.
        Specified by:
        taskCreatedBeforeExpression in interface TaskQuery
      • taskCreatedAfterExpression

        public TaskQuery taskCreatedAfterExpression​(String afterExpression)
        Description copied from interface: TaskQuery
        Only select tasks that are created after the date resolved from the given expression.
        Specified by:
        taskCreatedAfterExpression in interface TaskQuery
      • taskUpdatedAfterExpression

        public TaskQuery taskUpdatedAfterExpression​(String afterExpression)
        Description copied from interface: TaskQuery
        Only select tasks that were updated after the date resolved from the given expression.
        Specified by:
        taskUpdatedAfterExpression in interface TaskQuery
      • taskDefinitionKey

        public TaskQuery taskDefinitionKey​(String key)
        Description copied from interface: TaskQuery
        Only select tasks with the given taskDefinitionKey. The task definition key is the id of the userTask: <userTask id="xxx" .../>
        Specified by:
        taskDefinitionKey in interface TaskQuery
      • taskDefinitionKeyLike

        public TaskQuery taskDefinitionKeyLike​(String keyLike)
        Description copied from interface: TaskQuery
        Only select tasks with a taskDefinitionKey that match the given parameter. The syntax is that of SQL: for example usage: taskDefinitionKeyLike("%camunda%"). The task definition key is the id of the userTask: <userTask id="xxx" .../>
        Specified by:
        taskDefinitionKeyLike in interface TaskQuery
      • taskParentTaskId

        public TaskQuery taskParentTaskId​(String taskParentTaskId)
        Description copied from interface: TaskQuery
        Select the tasks which are sub tasks of the given parent task.
        Specified by:
        taskParentTaskId in interface TaskQuery
      • caseInstanceBusinessKeyLike

        public TaskQuery caseInstanceBusinessKeyLike​(String caseInstanceBusinessKeyLike)
        Description copied from interface: TaskQuery
        Only select tasks matching the given case instance business key. The syntax is that of SQL: for example usage: nameLike(%aBusinessKey%)
        Specified by:
        caseInstanceBusinessKeyLike in interface TaskQuery
      • caseDefinitionId

        public TaskQuery caseDefinitionId​(String caseDefinitionId)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a case instance which has the given case definition id.
        Specified by:
        caseDefinitionId in interface TaskQuery
      • caseDefinitionKey

        public TaskQuery caseDefinitionKey​(String caseDefinitionKey)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a case instance which has the given case definition key.
        Specified by:
        caseDefinitionKey in interface TaskQuery
      • caseDefinitionName

        public TaskQuery caseDefinitionName​(String caseDefinitionName)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a case instance which has the given case definition name.
        Specified by:
        caseDefinitionName in interface TaskQuery
      • caseDefinitionNameLike

        public TaskQuery caseDefinitionNameLike​(String caseDefinitionNameLike)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a case instance which case definition name is like the given parameter. The syntax is that of SQL: for example usage: nameLike(%processDefinitionName%)
        Specified by:
        caseDefinitionNameLike in interface TaskQuery
      • taskVariableValueEquals

        public TaskQuery taskVariableValueEquals​(String variableName,
                                                 Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which have a local task variable with the given name set to the given value.
        Specified by:
        taskVariableValueEquals in interface TaskQuery
      • taskVariableValueNotEquals

        public TaskQuery taskVariableValueNotEquals​(String variableName,
                                                    Object variableValue)
        Description copied from interface: TaskQuery
        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.
        Specified by:
        taskVariableValueNotEquals in interface TaskQuery
      • taskVariableValueLike

        public TaskQuery taskVariableValueLike​(String variableName,
                                               String variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which have a local task variable with the given name matching the given value. The syntax is that of SQL: for example usage: valueLike(%value%)
        Specified by:
        taskVariableValueLike in interface TaskQuery
      • taskVariableValueGreaterThan

        public TaskQuery taskVariableValueGreaterThan​(String variableName,
                                                      Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which have a local task variable with the given name and a value greater than the given one.
        Specified by:
        taskVariableValueGreaterThan in interface TaskQuery
      • taskVariableValueGreaterThanOrEquals

        public TaskQuery taskVariableValueGreaterThanOrEquals​(String variableName,
                                                              Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which have a local task variable with the given name and a value greater than or equal to the given one.
        Specified by:
        taskVariableValueGreaterThanOrEquals in interface TaskQuery
      • taskVariableValueLessThan

        public TaskQuery taskVariableValueLessThan​(String variableName,
                                                   Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which have a local task variable with the given name and a value less than the given one.
        Specified by:
        taskVariableValueLessThan in interface TaskQuery
      • taskVariableValueLessThanOrEquals

        public TaskQuery taskVariableValueLessThanOrEquals​(String variableName,
                                                           Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which have a local task variable with the given name and a value less than or equal to the given one.
        Specified by:
        taskVariableValueLessThanOrEquals in interface TaskQuery
      • processVariableValueEquals

        public TaskQuery processVariableValueEquals​(String variableName,
                                                    Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which have are part of a process that have a variable with the given name set to the given value.
        Specified by:
        processVariableValueEquals in interface TaskQuery
      • processVariableValueNotEquals

        public TaskQuery processVariableValueNotEquals​(String variableName,
                                                       Object variableValue)
        Description copied from interface: TaskQuery
        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.
        Specified by:
        processVariableValueNotEquals in interface TaskQuery
      • processVariableValueLike

        public TaskQuery processVariableValueLike​(String variableName,
                                                  String variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a process that have a variable with the given name and matching the given value. The syntax is that of SQL: for example usage: valueLike(%value%)
        Specified by:
        processVariableValueLike in interface TaskQuery
      • processVariableValueNotLike

        public TaskQuery processVariableValueNotLike​(String variableName,
                                                     String variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a process that have a variable with the given name and not matching the given value. The syntax is that of SQL: for example usage: valueNotLike(%value%)
        Specified by:
        processVariableValueNotLike in interface TaskQuery
      • processVariableValueGreaterThan

        public TaskQuery processVariableValueGreaterThan​(String variableName,
                                                         Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a process that have a variable with the given name and a value greater than the given one.
        Specified by:
        processVariableValueGreaterThan in interface TaskQuery
      • processVariableValueGreaterThanOrEquals

        public TaskQuery processVariableValueGreaterThanOrEquals​(String variableName,
                                                                 Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a process that have a variable with the given name and a value greater than or equal to the given one.
        Specified by:
        processVariableValueGreaterThanOrEquals in interface TaskQuery
      • processVariableValueLessThan

        public TaskQuery processVariableValueLessThan​(String variableName,
                                                      Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a process that have a variable with the given name and a value less than the given one.
        Specified by:
        processVariableValueLessThan in interface TaskQuery
      • processVariableValueLessThanOrEquals

        public TaskQuery processVariableValueLessThanOrEquals​(String variableName,
                                                              Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a process that have a variable with the given name and a value greater than or equal to the given one.
        Specified by:
        processVariableValueLessThanOrEquals in interface TaskQuery
      • caseInstanceVariableValueEquals

        public TaskQuery caseInstanceVariableValueEquals​(String variableName,
                                                         Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a case instance that have a variable with the given name set to the given value. The type of variable is determined based on the value, using types configured in ProcessEngineConfiguration#getVariableSerializers(). Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Specified by:
        caseInstanceVariableValueEquals in interface TaskQuery
      • caseInstanceVariableValueNotEquals

        public TaskQuery caseInstanceVariableValueNotEquals​(String variableName,
                                                            Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a case instance that have a variable with the given name, but with a different value than the passed value. The type of variable is determined based on the value, using types configured in ProcessEngineConfiguration#getVariableSerializers(). Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Specified by:
        caseInstanceVariableValueNotEquals in interface TaskQuery
      • caseInstanceVariableValueLike

        public TaskQuery caseInstanceVariableValueLike​(String variableName,
                                                       String variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a case instance that have a variable value like the given value. This be used on string variables only.
        Specified by:
        caseInstanceVariableValueLike in interface TaskQuery
      • caseInstanceVariableValueNotLike

        public TaskQuery caseInstanceVariableValueNotLike​(String variableName,
                                                          String variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a case instance that have a variable value not like the given value. This be used on string variables only.
        Specified by:
        caseInstanceVariableValueNotLike in interface TaskQuery
      • caseInstanceVariableValueGreaterThan

        public TaskQuery caseInstanceVariableValueGreaterThan​(String variableName,
                                                              Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a case instance that have a variable with the given name and a variable value greater than the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Specified by:
        caseInstanceVariableValueGreaterThan in interface TaskQuery
      • caseInstanceVariableValueGreaterThanOrEquals

        public TaskQuery caseInstanceVariableValueGreaterThanOrEquals​(String variableName,
                                                                      Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a case instance that have a variable value greater than or equal to the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Specified by:
        caseInstanceVariableValueGreaterThanOrEquals in interface TaskQuery
      • caseInstanceVariableValueLessThan

        public TaskQuery caseInstanceVariableValueLessThan​(String variableName,
                                                           Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a case instance that have a variable value less than the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Specified by:
        caseInstanceVariableValueLessThan in interface TaskQuery
      • caseInstanceVariableValueLessThanOrEquals

        public TaskQuery caseInstanceVariableValueLessThanOrEquals​(String variableName,
                                                                   Object variableValue)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a case instance that have a variable value less than or equal to the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Specified by:
        caseInstanceVariableValueLessThanOrEquals in interface TaskQuery
      • processDefinitionKey

        public TaskQuery processDefinitionKey​(String processDefinitionKey)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a process instance which has the given process definition key.
        Specified by:
        processDefinitionKey in interface TaskQuery
      • processDefinitionKeyIn

        public TaskQuery processDefinitionKeyIn​(String... processDefinitionKeys)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a process instance which has one of the given process definition keys.
        Specified by:
        processDefinitionKeyIn in interface TaskQuery
      • processDefinitionId

        public TaskQuery processDefinitionId​(String processDefinitionId)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a process instance which has the given process definition id.
        Specified by:
        processDefinitionId in interface TaskQuery
      • processDefinitionName

        public TaskQuery processDefinitionName​(String processDefinitionName)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a process instance which has the given process definition name.
        Specified by:
        processDefinitionName in interface TaskQuery
      • processDefinitionNameLike

        public TaskQuery processDefinitionNameLike​(String processDefinitionName)
        Description copied from interface: TaskQuery
        Only select tasks which are part of a process instance which process definition name is like the given parameter. The syntax is that of SQL: for example usage: nameLike(%processDefinitionName%)
        Specified by:
        processDefinitionNameLike in interface TaskQuery
      • dueDate

        public TaskQuery dueDate​(Date dueDate)
        Description copied from interface: TaskQuery
        Only select tasks with the given due date.
        Specified by:
        dueDate in interface TaskQuery
      • dueDateExpression

        public TaskQuery dueDateExpression​(String dueDateExpression)
        Description copied from interface: TaskQuery

        Only select tasks with the described due date by the given expression.

        Specified by:
        dueDateExpression in interface TaskQuery
      • dueBefore

        public TaskQuery dueBefore​(Date dueBefore)
        Description copied from interface: TaskQuery
        Only select tasks which have a due date before the given date.
        Specified by:
        dueBefore in interface TaskQuery
      • dueBeforeExpression

        public TaskQuery dueBeforeExpression​(String dueDate)
        Description copied from interface: TaskQuery

        Only select tasks which have a due date before the described date by the given expression.

        Specified by:
        dueBeforeExpression in interface TaskQuery
      • dueAfter

        public TaskQuery dueAfter​(Date dueAfter)
        Description copied from interface: TaskQuery
        Only select tasks which have a due date after the given date.
        Specified by:
        dueAfter in interface TaskQuery
      • dueAfterExpression

        public TaskQuery dueAfterExpression​(String dueDateExpression)
        Description copied from interface: TaskQuery

        Only select tasks which have a due date after the described date by the given expression.

        Specified by:
        dueAfterExpression in interface TaskQuery
      • followUpDate

        public TaskQuery followUpDate​(Date followUpDate)
        Description copied from interface: TaskQuery
        Only select tasks with the given follow-up date.
        Specified by:
        followUpDate in interface TaskQuery
      • followUpDateExpression

        public TaskQuery followUpDateExpression​(String followUpDateExpression)
        Description copied from interface: TaskQuery

        Only select tasks with the described follow-up date by the given expression.

        Specified by:
        followUpDateExpression in interface TaskQuery
      • followUpBefore

        public TaskQuery followUpBefore​(Date followUpBefore)
        Description copied from interface: TaskQuery
        Only select tasks which have a follow-up date before the given date.
        Specified by:
        followUpBefore in interface TaskQuery
      • followUpBeforeExpression

        public TaskQuery followUpBeforeExpression​(String followUpBeforeExpression)
        Description copied from interface: TaskQuery

        Only select tasks which have a follow-up date before the described date by the given expression.

        Specified by:
        followUpBeforeExpression in interface TaskQuery
      • followUpBeforeOrNotExistent

        public TaskQuery followUpBeforeOrNotExistent​(Date followUpDate)
        Description copied from interface: TaskQuery
        Only select tasks which have no follow-up date or a follow-up date before the given date. Serves the typical use case "give me all tasks without follow-up or follow-up date which is already due"
        Specified by:
        followUpBeforeOrNotExistent in interface TaskQuery
      • followUpBeforeOrNotExistentExpression

        public TaskQuery followUpBeforeOrNotExistentExpression​(String followUpDateExpression)
        Description copied from interface: TaskQuery

        Only select tasks which have no follow-up date or a follow-up date before the described date by the given expression. Serves the typical use case "give me all tasks without follow-up or follow-up date which is already due"

        Specified by:
        followUpBeforeOrNotExistentExpression in interface TaskQuery
      • setFollowUpNullAccepted

        public void setFollowUpNullAccepted​(boolean followUpNullAccepted)
      • followUpAfter

        public TaskQuery followUpAfter​(Date followUpAfter)
        Description copied from interface: TaskQuery
        Only select tasks which have a follow-up date after the given date.
        Specified by:
        followUpAfter in interface TaskQuery
      • followUpAfterExpression

        public TaskQuery followUpAfterExpression​(String followUpAfterExpression)
        Description copied from interface: TaskQuery

        Only select tasks which have a follow-up date after the described date by the given expression.

        Specified by:
        followUpAfterExpression in interface TaskQuery
      • excludeSubtasks

        public TaskQuery excludeSubtasks()
        Description copied from interface: TaskQuery
        Only select tasks that have no parent (i.e. do not select subtasks).
        Specified by:
        excludeSubtasks in interface TaskQuery
      • active

        public TaskQuery active()
        Description copied from interface: TaskQuery
        Only select tasks which are active (ie. not suspended)
        Specified by:
        active in interface TaskQuery
      • suspended

        public TaskQuery suspended()
        Description copied from interface: TaskQuery
        Only select tasks which are suspended, because its process instance was suspended.
        Specified by:
        suspended in interface TaskQuery
      • taskNameCaseInsensitive

        public TaskQuery taskNameCaseInsensitive()
      • hasExcludingConditions

        protected boolean hasExcludingConditions()
        Description copied from class: AbstractQuery
        Whether or not the query has excluding conditions. If the query has excluding conditions, (e.g. task due date before and after are excluding), the SQL query is avoided and a default result is returned. The returned result is the same as if the SQL was executed and there were no entries.
        Overrides:
        hasExcludingConditions in class AbstractQuery<TaskQuery,​Task>
        Returns:
        true if the query does have excluding conditions, false otherwise
      • getCandidateGroups

        public List<String> getCandidateGroups()
      • isWithCandidateGroups

        public Boolean isWithCandidateGroups()
      • isWithCandidateUsers

        public Boolean isWithCandidateUsers()
      • isWithCandidateGroupsInternal

        public Boolean isWithCandidateGroupsInternal()
      • isWithoutCandidateGroups

        public Boolean isWithoutCandidateGroups()
      • isWithoutCandidateUsers

        public Boolean isWithoutCandidateUsers()
      • isWithoutCandidateGroupsInternal

        public Boolean isWithoutCandidateGroupsInternal()
      • getCandidateGroupsInternal

        public List<String> getCandidateGroupsInternal()
      • getGroupsForCandidateUser

        protected List<String> getGroupsForCandidateUser​(String candidateUser)
      • ensureOrExpressionsEvaluated

        protected void ensureOrExpressionsEvaluated()
      • ensureVariablesInitialized

        protected void ensureVariablesInitialized()
      • ensureNotInOrQuery

        protected void ensureNotInOrQuery​(String methodName)
      • addVariable

        public void addVariable​(String name,
                                Object value,
                                QueryOperator operator,
                                boolean isTaskVariable,
                                boolean isProcessInstanceVariable)
      • orderByProcessVariable

        public TaskQuery orderByProcessVariable​(String variableName,
                                                ValueType valueType)
        Description copied from interface: TaskQuery
        Order by a process instance variable value of a certain type. Calling this method multiple times specifies secondary, tertiary orderings, etc. The ordering of variables with null values is database-specific.
        Specified by:
        orderByProcessVariable in interface TaskQuery
      • orderByExecutionVariable

        public TaskQuery orderByExecutionVariable​(String variableName,
                                                  ValueType valueType)
        Description copied from interface: TaskQuery
        Order by an execution variable value of a certain type. Calling this method multiple times specifies secondary, tertiary orderings, etc. The ordering of variables with null values is database-specific.
        Specified by:
        orderByExecutionVariable in interface TaskQuery
      • orderByTaskVariable

        public TaskQuery orderByTaskVariable​(String variableName,
                                             ValueType valueType)
        Description copied from interface: TaskQuery
        Order by a task variable value of a certain type. Calling this method multiple times specifies secondary, tertiary orderings, etc. The ordering of variables with null values is database-specific.
        Specified by:
        orderByTaskVariable in interface TaskQuery
      • orderByCaseExecutionVariable

        public TaskQuery orderByCaseExecutionVariable​(String variableName,
                                                      ValueType valueType)
        Description copied from interface: TaskQuery
        Order by a task variable value of a certain type. Calling this method multiple times specifies secondary, tertiary orderings, etc. The ordering of variables with null values is database-specific.
        Specified by:
        orderByCaseExecutionVariable in interface TaskQuery
      • orderByCaseInstanceVariable

        public TaskQuery orderByCaseInstanceVariable​(String variableName,
                                                     ValueType valueType)
        Description copied from interface: TaskQuery
        Order by a task variable value of a certain type. Calling this method multiple times specifies secondary, tertiary orderings, etc. The ordering of variables with null values is database-specific.
        Specified by:
        orderByCaseInstanceVariable in interface TaskQuery
      • decideAuthorizationJoinType

        protected void decideAuthorizationJoinType​(CommandContext commandContext)
      • resetCachedCandidateGroups

        protected void resetCachedCandidateGroups()
      • getName

        public String getName()
      • getNameNotEqual

        public String getNameNotEqual()
      • getNameLike

        public String getNameLike()
      • getNameNotLike

        public String getNameNotLike()
      • getAssignee

        public String getAssignee()
      • getAssigneeLike

        public String getAssigneeLike()
      • getAssigneeIn

        public Set<String> getAssigneeIn()
      • getAssigneeNotIn

        public Set<String> getAssigneeNotIn()
      • getInvolvedUser

        public String getInvolvedUser()
      • getOwner

        public String getOwner()
      • isAssigned

        public Boolean isAssigned()
      • isAssignedInternal

        public Boolean isAssignedInternal()
      • isUnassigned

        public boolean isUnassigned()
      • isUnassignedInternal

        public Boolean isUnassignedInternal()
      • isNoDelegationState

        public boolean isNoDelegationState()
      • getDelegationStateString

        public String getDelegationStateString()
      • getCandidateUser

        public String getCandidateUser()
      • getCandidateGroup

        public String getCandidateGroup()
      • isIncludeAssignedTasks

        public boolean isIncludeAssignedTasks()
      • isIncludeAssignedTasksInternal

        public Boolean isIncludeAssignedTasksInternal()
      • getProcessInstanceId

        public String getProcessInstanceId()
      • getProcessInstanceIdIn

        public String[] getProcessInstanceIdIn()
      • getExecutionId

        public String getExecutionId()
      • getActivityInstanceIdIn

        public String[] getActivityInstanceIdIn()
      • getTenantIds

        public String[] getTenantIds()
      • getTaskId

        public String getTaskId()
      • getTaskIdIn

        public String[] getTaskIdIn()
      • getDescription

        public String getDescription()
      • getDescriptionLike

        public String getDescriptionLike()
      • getPriority

        public Integer getPriority()
      • getMinPriority

        public Integer getMinPriority()
      • getMaxPriority

        public Integer getMaxPriority()
      • getCreateTime

        public Date getCreateTime()
      • getCreateTimeBefore

        public Date getCreateTimeBefore()
      • getCreateTimeAfter

        public Date getCreateTimeAfter()
      • getUpdatedAfter

        public Date getUpdatedAfter()
      • getKey

        public String getKey()
      • getKeys

        public String[] getKeys()
      • getKeyLike

        public String getKeyLike()
      • getParentTaskId

        public String getParentTaskId()
      • getProcessDefinitionKey

        public String getProcessDefinitionKey()
      • getProcessDefinitionKeys

        public String[] getProcessDefinitionKeys()
      • getProcessDefinitionId

        public String getProcessDefinitionId()
      • getProcessDefinitionName

        public String getProcessDefinitionName()
      • getProcessDefinitionNameLike

        public String getProcessDefinitionNameLike()
      • getProcessInstanceBusinessKey

        public String getProcessInstanceBusinessKey()
      • getProcessInstanceBusinessKeys

        public String[] getProcessInstanceBusinessKeys()
      • getProcessInstanceBusinessKeyLike

        public String getProcessInstanceBusinessKeyLike()
      • getDueDate

        public Date getDueDate()
      • getDueBefore

        public Date getDueBefore()
      • getDueAfter

        public Date getDueAfter()
      • getFollowUpDate

        public Date getFollowUpDate()
      • getFollowUpBefore

        public Date getFollowUpBefore()
      • getFollowUpAfter

        public Date getFollowUpAfter()
      • isExcludeSubtasks

        public boolean isExcludeSubtasks()
      • getCaseInstanceId

        public String getCaseInstanceId()
      • getCaseInstanceBusinessKey

        public String getCaseInstanceBusinessKey()
      • getCaseInstanceBusinessKeyLike

        public String getCaseInstanceBusinessKeyLike()
      • getCaseExecutionId

        public String getCaseExecutionId()
      • getCaseDefinitionId

        public String getCaseDefinitionId()
      • getCaseDefinitionKey

        public String getCaseDefinitionKey()
      • getCaseDefinitionName

        public String getCaseDefinitionName()
      • getCaseDefinitionNameLike

        public String getCaseDefinitionNameLike()
      • isInitializeFormKeys

        public boolean isInitializeFormKeys()
      • isTaskNameCaseInsensitive

        public boolean isTaskNameCaseInsensitive()
      • isWithoutTenantId

        public boolean isWithoutTenantId()
      • isWithoutDueDate

        public boolean isWithoutDueDate()
      • getTaskDefinitionKeys

        public String[] getTaskDefinitionKeys()
      • getIsTenantIdSet

        public boolean getIsTenantIdSet()
      • isVariableNamesIgnoreCase

        public Boolean isVariableNamesIgnoreCase()
      • isVariableValuesIgnoreCase

        public Boolean isVariableValuesIgnoreCase()
      • isOrQueryActive

        public boolean isOrQueryActive()
      • setOrQueryActive

        public void setOrQueryActive()
      • mergeVariables

        protected void mergeVariables​(TaskQueryImpl extendedQuery,
                                      TaskQueryImpl extendingQuery)
        Simple implementation of variable merging. Variables are only overridden if they have the same name and are in the same scope (ie are process instance, task or case execution variables).
      • isFollowUpNullAccepted

        public boolean isFollowUpNullAccepted()
      • taskNameNotEqual

        public TaskQuery taskNameNotEqual​(String name)
        Description copied from interface: TaskQuery
        Only select tasks with a name not matching the given name/ The query will match the names of tasks in a case-insensitive way.
        Specified by:
        taskNameNotEqual in interface TaskQuery
      • taskNameNotLike

        public TaskQuery taskNameNotLike​(String nameNotLike)
        Description copied from interface: TaskQuery
        Only select tasks with a name not matching the parameter. The syntax is that of SQL: for example usage: nameNotLike(%camunda%) The query will match the names of tasks in a case-insensitive way.
        Specified by:
        taskNameNotLike in interface TaskQuery
      • isQueryForProcessTasksOnly

        public boolean isQueryForProcessTasksOnly()
        Returns:
        true if the query is not supposed to find CMMN or standalone tasks
      • or

        public TaskQuery or()
        Description copied from interface: TaskQuery

        After calling or(), a chain of several filter criteria could follow. Each filter criterion that follows or() will be linked together with an OR expression until the OR query is terminated. To terminate the OR query right after the last filter criterion was applied, TaskQuery.endOr() must be invoked.

        Specified by:
        or in interface TaskQuery
        Returns:
        an object of the type TaskQuery on which an arbitrary amount of filter criteria could be applied. The several filter criteria will be linked together by an OR expression.
      • endOr

        public TaskQuery endOr()
        Description copied from interface: TaskQuery

        endOr() terminates an OR query on which an arbitrary amount of filter criteria were applied. To terminate the OR query which has been started by invoking TaskQuery.or(), endOr() must be invoked. Filter criteria which are applied after calling endOr() are linked together by an AND expression.

        Specified by:
        endOr in interface TaskQuery
        Returns:
        an object of the type TaskQuery on which an arbitrary amount of filter criteria could be applied. The filter criteria will be linked together by an AND expression.
      • matchVariableNamesIgnoreCase

        public TaskQuery matchVariableNamesIgnoreCase()
        Description copied from interface: TaskQuery
        All queries for task-, process- and case-variables will match the variable names in a case-insensitive way.
        Specified by:
        matchVariableNamesIgnoreCase in interface TaskQuery
      • matchVariableValuesIgnoreCase

        public TaskQuery matchVariableValuesIgnoreCase()
        Description copied from interface: TaskQuery
        All queries for task-, process- and case-variables will match the variable values in a case-insensitive way.
        Specified by:
        matchVariableValuesIgnoreCase in interface TaskQuery