Uses of Interface
org.camunda.bpm.engine.task.TaskQuery
Package
Description
Public API of the Camunda Platform engine.
Typical usage of the API starts by the creation of a
Through the services obtained from such a
Typical usage of the API starts by the creation of a
ProcessEngineConfiguration
(typically based on a configuration file), from which a ProcessEngine
can be obtained.Through the services obtained from such a
ProcessEngine
, BPM and workflow operation
can be executed:RepositoryService
:
Manages Deployment
sRuntimeService
:
For starting and searching ProcessInstance
sTaskService
:
Exposes operations to manage human (standalone) Task
s,
such as claiming, completing and assigning tasksIdentityService
:
Used for managing User
s,
Group
s and the relations between themManagementService
:
Exposes engine admin and maintenance operations,
which have no relation to the runtime execution of business processesHistoryService
:
Exposes information about ongoing and past process instances.FormService
:
Access to form data and rendered forms for starting new process instances and completing tasks.API implementation classes, which shouldn't directly be used by end-users.
Classes related to the
TaskService
.-
Uses of TaskQuery in org.camunda.bpm.engine
Modifier and TypeMethodDescriptionTaskService.createTaskQuery()
Returns a newTaskQuery
that can be used to dynamically query tasks. -
Uses of TaskQuery in org.camunda.bpm.engine.impl
Modifier and TypeMethodDescriptionTaskQueryImpl.active()
TaskQueryImpl.activityInstanceIdIn
(String... activityInstanceIds) TaskQueryImpl.caseDefinitionId
(String caseDefinitionId) TaskQueryImpl.caseDefinitionKey
(String caseDefinitionKey) TaskQueryImpl.caseDefinitionName
(String caseDefinitionName) TaskQueryImpl.caseDefinitionNameLike
(String caseDefinitionNameLike) TaskQueryImpl.caseExecutionId
(String caseExecutionId) TaskQueryImpl.caseInstanceBusinessKey
(String caseInstanceBusinessKey) TaskQueryImpl.caseInstanceBusinessKeyLike
(String caseInstanceBusinessKeyLike) TaskQueryImpl.caseInstanceId
(String caseInstanceId) TaskQueryImpl.caseInstanceVariableValueEquals
(String variableName, Object variableValue) TaskQueryImpl.caseInstanceVariableValueGreaterThan
(String variableName, Object variableValue) TaskQueryImpl.caseInstanceVariableValueGreaterThanOrEquals
(String variableName, Object variableValue) TaskQueryImpl.caseInstanceVariableValueLessThan
(String variableName, Object variableValue) TaskQueryImpl.caseInstanceVariableValueLessThanOrEquals
(String variableName, Object variableValue) TaskQueryImpl.caseInstanceVariableValueLike
(String variableName, String variableValue) TaskQueryImpl.caseInstanceVariableValueNotEquals
(String variableName, Object variableValue) TaskQueryImpl.caseInstanceVariableValueNotLike
(String variableName, String variableValue) TaskServiceImpl.createTaskQuery()
TaskQueryImpl.dueAfterExpression
(String dueDateExpression) TaskQueryImpl.dueBeforeExpression
(String dueDate) TaskQueryImpl.dueDateExpression
(String dueDateExpression) TaskQueryImpl.endOr()
TaskQueryImpl.excludeSubtasks()
TaskQueryImpl.followUpAfter
(Date followUpAfter) TaskQueryImpl.followUpAfterExpression
(String followUpAfterExpression) TaskQueryImpl.followUpBefore
(Date followUpBefore) TaskQueryImpl.followUpBeforeExpression
(String followUpBeforeExpression) TaskQueryImpl.followUpBeforeOrNotExistent
(Date followUpDate) TaskQueryImpl.followUpBeforeOrNotExistentExpression
(String followUpDateExpression) TaskQueryImpl.followUpDate
(Date followUpDate) TaskQueryImpl.followUpDateExpression
(String followUpDateExpression) TaskQueryImpl.includeAssignedTasks()
TaskQueryImpl.includeAssignedTasksInternal()
TaskQueryImpl.initializeFormKeys()
TaskQueryImpl.matchVariableNamesIgnoreCase()
TaskQueryImpl.matchVariableValuesIgnoreCase()
TaskQueryImpl.or()
TaskQueryImpl.orderByCaseExecutionId()
TaskQueryImpl.orderByCaseExecutionVariable
(String variableName, ValueType valueType) TaskQueryImpl.orderByCaseInstanceId()
TaskQueryImpl.orderByCaseInstanceVariable
(String variableName, ValueType valueType) TaskQueryImpl.orderByDueDate()
TaskQueryImpl.orderByExecutionId()
TaskQueryImpl.orderByExecutionVariable
(String variableName, ValueType valueType) TaskQueryImpl.orderByFollowUpDate()
TaskQueryImpl.orderByLastUpdated()
TaskQueryImpl.orderByProcessInstanceId()
TaskQueryImpl.orderByProcessVariable
(String variableName, ValueType valueType) TaskQueryImpl.orderByTaskAssignee()
TaskQueryImpl.orderByTaskCreateTime()
TaskQueryImpl.orderByTaskDescription()
TaskQueryImpl.orderByTaskId()
TaskQueryImpl.orderByTaskName()
TaskQueryImpl.orderByTaskNameCaseInsensitive()
TaskQueryImpl.orderByTaskPriority()
TaskQueryImpl.orderByTaskVariable
(String variableName, ValueType valueType) TaskQueryImpl.orderByTenantId()
TaskQueryImpl.processDefinitionId
(String processDefinitionId) TaskQueryImpl.processDefinitionKey
(String processDefinitionKey) TaskQueryImpl.processDefinitionKeyIn
(String... processDefinitionKeys) TaskQueryImpl.processDefinitionName
(String processDefinitionName) TaskQueryImpl.processDefinitionNameLike
(String processDefinitionName) TaskQueryImpl.processInstanceBusinessKeyExpression
(String processInstanceBusinessKeyExpression) TaskQueryImpl.processInstanceBusinessKeyIn
(String... processInstanceBusinessKeys) TaskQueryImpl.processInstanceBusinessKeyLike
(String processInstanceBusinessKey) TaskQueryImpl.processInstanceBusinessKeyLikeExpression
(String processInstanceBusinessKeyLikeExpression) TaskQueryImpl.processInstanceIdIn
(String... processInstanceIds) TaskQueryImpl.processVariableValueEquals
(String variableName, Object variableValue) TaskQueryImpl.processVariableValueGreaterThan
(String variableName, Object variableValue) TaskQueryImpl.processVariableValueGreaterThanOrEquals
(String variableName, Object variableValue) TaskQueryImpl.processVariableValueLessThan
(String variableName, Object variableValue) TaskQueryImpl.processVariableValueLessThanOrEquals
(String variableName, Object variableValue) TaskQueryImpl.processVariableValueLike
(String variableName, String variableValue) TaskQueryImpl.processVariableValueNotEquals
(String variableName, Object variableValue) TaskQueryImpl.processVariableValueNotLike
(String variableName, String variableValue) TaskQueryImpl.suspended()
TaskQueryImpl.taskAssigned()
TaskQueryImpl.taskAssigneeExpression
(String assigneeExpression) TaskQueryImpl.taskAssigneeIn
(String... assignees) TaskQueryImpl.taskAssigneeLike
(String assignee) TaskQueryImpl.taskAssigneeLikeExpression
(String assigneeLikeExpression) TaskQueryImpl.taskAssigneeNotIn
(String... assignees) TaskQueryImpl.taskCandidateGroupExpression
(String candidateGroupExpression) TaskQueryImpl.taskCandidateGroupIn
(List<String> candidateGroups) TaskQueryImpl.taskCandidateGroupInExpression
(String candidateGroupsExpression) TaskQueryImpl.taskCandidateGroupLike
(String candidateGroupLike) TaskQueryImpl.taskCandidateUserExpression
(String candidateUserExpression) TaskQueryImpl.taskCreatedAfter
(Date after) TaskQueryImpl.taskCreatedAfterExpression
(String afterExpression) TaskQueryImpl.taskCreatedBefore
(Date before) TaskQueryImpl.taskCreatedBeforeExpression
(String beforeExpression) TaskQueryImpl.taskCreatedOnExpression
(String createTimeExpression) TaskQueryImpl.taskDefinitionKey
(String key) TaskQueryImpl.taskDefinitionKeyIn
(String... taskDefinitionKeys) TaskQueryImpl.taskDefinitionKeyLike
(String keyLike) TaskQueryImpl.taskDelegationState
(DelegationState delegationState) TaskQueryImpl.taskDescriptionLike
(String descriptionLike) TaskQueryImpl.taskInvolvedUserExpression
(String involvedUserExpression) TaskQueryImpl.taskMaxPriority
(Integer maxPriority) TaskQueryImpl.taskMinPriority
(Integer minPriority) TaskQueryImpl.taskNameCaseInsensitive()
TaskQueryImpl.taskNameNotEqual
(String name) TaskQueryImpl.taskNameNotLike
(String nameNotLike) TaskQueryImpl.taskOwnerExpression
(String ownerExpression) TaskQueryImpl.taskParentTaskId
(String taskParentTaskId) TaskQueryImpl.taskPriority
(Integer priority) TaskQueryImpl.taskUnassigned()
TaskQueryImpl.taskUnnassigned()
Deprecated.TaskQueryImpl.taskUpdatedAfter
(Date after) TaskQueryImpl.taskUpdatedAfterExpression
(String afterExpression) TaskQueryImpl.taskVariableValueEquals
(String variableName, Object variableValue) TaskQueryImpl.taskVariableValueGreaterThan
(String variableName, Object variableValue) TaskQueryImpl.taskVariableValueGreaterThanOrEquals
(String variableName, Object variableValue) TaskQueryImpl.taskVariableValueLessThan
(String variableName, Object variableValue) TaskQueryImpl.taskVariableValueLessThanOrEquals
(String variableName, Object variableValue) TaskQueryImpl.taskVariableValueLike
(String variableName, String variableValue) TaskQueryImpl.taskVariableValueNotEquals
(String variableName, Object variableValue) TaskQueryImpl.tenantIdIn
(String... tenantIds) TaskQueryImpl.withCandidateGroups()
TaskQueryImpl.withCandidateUsers()
TaskQueryImpl.withCommentAttachmentInfo()
TaskQueryImpl.withoutCandidateGroups()
TaskQueryImpl.withoutCandidateUsers()
TaskQueryImpl.withoutDueDate()
TaskQueryImpl.withoutTenantId()
-
Uses of TaskQuery in org.camunda.bpm.engine.impl.json
Modifier and TypeMethodDescriptionJsonTaskQueryConverter.toObject
(com.google.gson.JsonObject json) protected TaskQuery
JsonTaskQueryConverter.toObject
(com.google.gson.JsonObject json, boolean isOrQuery) Modifier and TypeMethodDescriptioncom.google.gson.JsonObject
JsonTaskQueryConverter.toJsonObject
(TaskQuery taskQuery) com.google.gson.JsonObject
JsonTaskQueryConverter.toJsonObject
(TaskQuery taskQuery, boolean isOrQueryActive) -
Uses of TaskQuery in org.camunda.bpm.engine.rest.dto.task
Modifier and TypeMethodDescriptionprotected TaskQuery
TaskQueryDto.createNewQuery
(ProcessEngine engine) Modifier and TypeMethodDescriptionprotected void
TaskQueryDto.applyFilters
(TaskQuery query) protected void
TaskQueryDto.applySortBy
(TaskQuery query, String sortBy, Map<String, Object> parameters, ProcessEngine engine) -
Uses of TaskQuery in org.camunda.bpm.engine.rest.impl
-
Uses of TaskQuery in org.camunda.bpm.engine.task
Modifier and TypeMethodDescriptionTaskQuery.active()
Only select tasks which are active (ie.TaskQuery.activityInstanceIdIn
(String... activityInstanceIds) Only select task which have one of the activity instance ids.TaskQuery.caseDefinitionId
(String caseDefinitionId) Only select tasks which are part of a case instance which has the given case definition id.TaskQuery.caseDefinitionKey
(String caseDefinitionKey) Only select tasks which are part of a case instance which has the given case definition key.TaskQuery.caseDefinitionName
(String caseDefinitionName) Only select tasks which are part of a case instance which has the given case definition name.TaskQuery.caseDefinitionNameLike
(String caseDefinitionNameLike) Only select tasks which are part of a case instance which case definition name is like the given parameter.TaskQuery.caseExecutionId
(String caseExecutionId) Only select tasks for the given case execution.TaskQuery.caseInstanceBusinessKey
(String caseInstanceBusinessKey) Only select tasks for the given case instance business keyTaskQuery.caseInstanceBusinessKeyLike
(String caseInstanceBusinessKeyLike) Only select tasks matching the given case instance business key.TaskQuery.caseInstanceId
(String caseInstanceId) Only select tasks for the given case instance id.TaskQuery.caseInstanceVariableValueEquals
(String variableName, Object variableValue) Only select tasks which are part of a case instance that have a variable with the given name set to the given value.TaskQuery.caseInstanceVariableValueGreaterThan
(String variableName, Object variableValue) 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.TaskQuery.caseInstanceVariableValueGreaterThanOrEquals
(String variableName, Object variableValue) Only select tasks which are part of a case instance that have a variable value greater than or equal to the passed value.TaskQuery.caseInstanceVariableValueLessThan
(String variableName, Object variableValue) Only select tasks which are part of a case instance that have a variable value less than the passed value.TaskQuery.caseInstanceVariableValueLessThanOrEquals
(String variableName, Object variableValue) Only select tasks which are part of a case instance that have a variable value less than or equal to the passed value.TaskQuery.caseInstanceVariableValueLike
(String variableName, String variableValue) Only select tasks which are part of a case instance that have a variable value like the given value.TaskQuery.caseInstanceVariableValueNotEquals
(String variableName, Object variableValue) 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.TaskQuery.caseInstanceVariableValueNotLike
(String variableName, String variableValue) Only select tasks which are part of a case instance that have a variable value not like the given value.Only select tasks which have a due date after the given date.TaskQuery.dueAfterExpression
(String dueDateExpression) Only select tasks which have a due date after the described date by the given expression.Only select tasks which have a due date before the given date.TaskQuery.dueBeforeExpression
(String dueDateExpression) Only select tasks which have a due date before the described date by the given expression.Only select tasks with the given due date.TaskQuery.dueDateExpression
(String dueDateExpression) Only select tasks with the described due date by the given expression.TaskQuery.endOr()
endOr() terminates an OR query on which an arbitrary amount of filter criteria were applied.TaskQuery.excludeSubtasks()
Only select tasks that have no parent (i.e.TaskQuery.executionId
(String executionId) Only select tasks for the given execution.TaskQuery.followUpAfter
(Date followUpDate) Only select tasks which have a follow-up date after the given date.TaskQuery.followUpAfterExpression
(String followUpDateExpression) Only select tasks which have a follow-up date after the described date by the given expression.TaskQuery.followUpBefore
(Date followUpDate) Only select tasks which have a follow-up date before the given date.TaskQuery.followUpBeforeExpression
(String followUpDateExpression) Only select tasks which have a follow-up date before the described date by the given expression.TaskQuery.followUpBeforeOrNotExistent
(Date followUpDate) Only select tasks which have no follow-up date or a follow-up date before the given date.TaskQuery.followUpBeforeOrNotExistentExpression
(String followUpDateExpression) Only select tasks which have no follow-up date or a follow-up date before the described date by the given expression.TaskQuery.followUpDate
(Date followUpDate) Only select tasks with the given follow-up date.TaskQuery.followUpDateExpression
(String followUpDateExpression) Only select tasks with the described follow-up date by the given expression.TaskQuery.includeAssignedTasks()
Select both assigned and not assigned tasks for candidate user or group queries.TaskQuery.initializeFormKeys()
If called, the form keys and form references of the fetched tasks are initialized andTask.getFormKey()
andTask.getCamundaFormRef()
will return a value (in case the task has is linked to a form).TaskQuery.matchVariableNamesIgnoreCase()
All queries for task-, process- and case-variables will match the variable names in a case-insensitive way.TaskQuery.matchVariableValuesIgnoreCase()
All queries for task-, process- and case-variables will match the variable values in a case-insensitive way.TaskQuery.or()
After calling or(), a chain of several filter criteria could follow.TaskQuery.orderByCaseExecutionId()
Order by case execution id (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.orderByCaseExecutionVariable
(String variableName, ValueType valueType) Order by a task variable value of a certain type.TaskQuery.orderByCaseInstanceId()
Order by case instance id (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.orderByCaseInstanceVariable
(String variableName, ValueType valueType) Order by a task variable value of a certain type.TaskQuery.orderByDueDate()
Order by due date (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.orderByExecutionId()
Order by execution id (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.orderByExecutionVariable
(String variableName, ValueType valueType) Order by an execution variable value of a certain type.TaskQuery.orderByFollowUpDate()
Order by follow-up date (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.orderByLastUpdated()
Order by the time the task was updated last (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.orderByProcessInstanceId()
Order by process instance id (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.orderByProcessVariable
(String variableName, ValueType valueType) Order by a process instance variable value of a certain type.TaskQuery.orderByTaskAssignee()
Order by assignee (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.orderByTaskCreateTime()
Order by the time on which the tasks were created (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.orderByTaskDescription()
Order by description (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.orderByTaskId()
Order by task id (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.orderByTaskName()
Order by task name (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.orderByTaskNameCaseInsensitive()
Order by task name case insensitive (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.orderByTaskPriority()
Order by priority (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.orderByTaskVariable
(String variableName, ValueType valueType) Order by a task variable value of a certain type.TaskQuery.orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).TaskQuery.processDefinitionId
(String processDefinitionId) Only select tasks which are part of a process instance which has the given process definition id.TaskQuery.processDefinitionKey
(String processDefinitionKey) Only select tasks which are part of a process instance which has the given process definition key.TaskQuery.processDefinitionKeyIn
(String... processDefinitionKeys) Only select tasks which are part of a process instance which has one of the given process definition keys.TaskQuery.processDefinitionName
(String processDefinitionName) Only select tasks which are part of a process instance which has the given process definition name.TaskQuery.processDefinitionNameLike
(String processDefinitionName) Only select tasks which are part of a process instance which process definition name is like the given parameter.TaskQuery.processInstanceBusinessKey
(String processInstanceBusinessKey) Only select tasks for the given process instance business keyTaskQuery.processInstanceBusinessKeyExpression
(String processInstanceBusinessKeyExpression) Only select tasks for the given process instance business key described by the given expressionTaskQuery.processInstanceBusinessKeyIn
(String... processInstanceBusinessKeys) Only select tasks for any of the given the given process instance business keys.TaskQuery.processInstanceBusinessKeyLike
(String processInstanceBusinessKey) Only select tasks matching the given process instance business key.TaskQuery.processInstanceBusinessKeyLikeExpression
(String processInstanceBusinessKeyExpression) Only select tasks matching the given process instance business key described by the given expression.TaskQuery.processInstanceId
(String processInstanceId) Only select tasks for the given process instance id.TaskQuery.processInstanceIdIn
(String... processInstanceIds) Only select tasks for the given process instance ids.TaskQuery.processVariableValueEquals
(String variableName, Object variableValue) Only select tasks which have are part of a process that have a variable with the given name set to the given value.TaskQuery.processVariableValueGreaterThan
(String variableName, Object variableValue) 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.TaskQuery.processVariableValueGreaterThanOrEquals
(String variableName, Object variableValue) 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.TaskQuery.processVariableValueLessThan
(String variableName, Object variableValue) 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.TaskQuery.processVariableValueLessThanOrEquals
(String variableName, Object variableValue) 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.TaskQuery.processVariableValueLike
(String variableName, String variableValue) Only select tasks which are part of a process that have a variable with the given name and matching the given value.TaskQuery.processVariableValueNotEquals
(String variableName, Object variableValue) Only select tasks which have a variable with the given name, but with a different value than the passed value.TaskQuery.processVariableValueNotLike
(String variableName, String variableValue) Only select tasks which are part of a process that have a variable with the given name and not matching the given value.TaskQuery.suspended()
Only select tasks which are suspended, because its process instance was suspended.TaskQuery.taskAssigned()
Only select tasks which have an assignee.TaskQuery.taskAssignee
(String assignee) Only select tasks which are assigned to the given user.TaskQuery.taskAssigneeExpression
(String assigneeExpression) Only select tasks which are assigned to the user described by the given expression.TaskQuery.taskAssigneeIn
(String... assignees) Only select tasks which are assigned to one of the given users.TaskQuery.taskAssigneeLike
(String assignee) Only select tasks which are matching the given user.TaskQuery.taskAssigneeLikeExpression
(String assigneeLikeExpression) Only select tasks which are assigned to the user described by the given expression.TaskQuery.taskAssigneeNotIn
(String... assignees) Only select tasks which are not assigned to any of the given users.TaskQuery.taskCandidateGroup
(String candidateGroup) Only select tasks for which users in the given group are candidates.TaskQuery.taskCandidateGroupExpression
(String candidateGroupExpression) Only select tasks for which users in the described group by the given expression are candidates.TaskQuery.taskCandidateGroupIn
(List<String> candidateGroups) Only select tasks for which the 'candidateGroup' is one of the given groups.TaskQuery.taskCandidateGroupInExpression
(String candidateGroupsExpression) Only select tasks for which the 'candidateGroup' is one of the described groups of the given expression.TaskQuery.taskCandidateGroupLike
(String candidateGroupLike) Only select tasks whose candidate users belong to groups matching the given parameter.TaskQuery.taskCandidateUser
(String candidateUser) Only select tasks for which the given user or one of his groups is a candidate.TaskQuery.taskCandidateUserExpression
(String candidateUserExpression) Only select tasks for which the described user by the given expression is a candidate.TaskQuery.taskCreatedAfter
(Date after) Only select tasks that are created after the given date.TaskQuery.taskCreatedAfterExpression
(String afterExpression) Only select tasks that are created after the date resolved from the given expression.TaskQuery.taskCreatedBefore
(Date before) Only select tasks that are created before the given date.TaskQuery.taskCreatedBeforeExpression
(String beforeExpression) Only select tasks that are created before the date resolved from the given expression.TaskQuery.taskCreatedOn
(Date createTime) Only select tasks that are created on the given date.TaskQuery.taskCreatedOnExpression
(String createTimeExpression) Only select tasks that are created on the date resolved from the given expression.TaskQuery.taskDefinitionKey
(String key) Only select tasks with the given taskDefinitionKey.TaskQuery.taskDefinitionKeyIn
(String... taskDefinitionKeys) Only select tasks which have one of the taskDefinitionKeys.TaskQuery.taskDefinitionKeyLike
(String keyLike) Only select tasks with a taskDefinitionKey that match the given parameter.TaskQuery.taskDelegationState
(DelegationState delegationState) Only select tasks with the givenDelegationState
.TaskQuery.taskDescription
(String description) Only select tasks with the given description.TaskQuery.taskDescriptionLike
(String descriptionLike) Only select tasks with a description matching the parameter .Only select tasks with the given task id (in practice, there will be maximum one of this kind)Only select tasks with the given task ids.TaskQuery.taskInvolvedUser
(String involvedUser) Only select tasks for which there exist anIdentityLink
with the given userTaskQuery.taskInvolvedUserExpression
(String involvedUserExpression) Only select tasks for which there exist anIdentityLink
with the described user by the given expressionTaskQuery.taskMaxPriority
(Integer maxPriority) Only select tasks with the given priority or lower.TaskQuery.taskMinPriority
(Integer minPriority) Only select tasks with the given priority or higher.Only select tasks with the given name.TaskQuery.taskNameLike
(String nameLike) Only select tasks with a name matching the parameter.TaskQuery.taskNameNotEqual
(String name) Only select tasks with a name not matching the given name/ The query will match the names of tasks in a case-insensitive way.TaskQuery.taskNameNotLike
(String nameNotLike) Only select tasks with a name not matching the parameter.Only select tasks for which the given user is the owner.TaskQuery.taskOwnerExpression
(String ownerExpression) Only select tasks for which the described user by the given expression is the owner.TaskQuery.taskParentTaskId
(String parentTaskId) Select the tasks which are sub tasks of the given parent task.TaskQuery.taskPriority
(Integer priority) Only select tasks with the given priority.TaskQuery.taskUnassigned()
Only select tasks which don't have an assignee.TaskQuery.taskUnnassigned()
Deprecated.TaskQuery.taskUpdatedAfter
(Date after) Only select tasks that were updated after the given date.TaskQuery.taskUpdatedAfterExpression
(String afterExpression) Only select tasks that were updated after the date resolved from the given expression.TaskQuery.taskVariableValueEquals
(String variableName, Object variableValue) Only select tasks which have a local task variable with the given name set to the given value.TaskQuery.taskVariableValueGreaterThan
(String variableName, Object variableValue) Only select tasks which have a local task variable with the given name and a value greater than the given one.TaskQuery.taskVariableValueGreaterThanOrEquals
(String variableName, Object variableValue) Only select tasks which have a local task variable with the given name and a value greater than or equal to the given one.TaskQuery.taskVariableValueLessThan
(String variableName, Object variableValue) Only select tasks which have a local task variable with the given name and a value less than the given one.TaskQuery.taskVariableValueLessThanOrEquals
(String variableName, Object variableValue) Only select tasks which have a local task variable with the given name and a value less than or equal to the given one.TaskQuery.taskVariableValueLike
(String variableName, String variableValue) Only select tasks which have a local task variable with the given name matching the given value.TaskQuery.taskVariableValueNotEquals
(String variableName, Object variableValue) Only select tasks which have a local task variable with the given name, but with a different value than the passed value.TaskQuery.tenantIdIn
(String... tenantIds) Only select tasks with one of the given tenant ids.TaskQuery.withCandidateGroups()
Only select tasks which have a candidate groupTaskQuery.withCandidateUsers()
Only select tasks which have a candidate userTaskQuery.withCommentAttachmentInfo()
Evaluates existence of attachment and comments associated with the task, defaults to false.TaskQuery.withoutCandidateGroups()
Only select tasks which have no candidate groupTaskQuery.withoutCandidateUsers()
Only select tasks which have no candidate userTaskQuery.withoutDueDate()
Only select tasks which have no due date.TaskQuery.withoutTenantId()
Only select tasks which have no tenant id. -
Uses of TaskQuery in org.camunda.bpm.engine.test.assertions.bpmn
Modifier and TypeMethodDescriptionprotected TaskQuery
AbstractProcessAssert.taskQuery()
static TaskQuery
BpmnAwareTests.taskQuery()
Helper method to easily create a new TaskQueryprotected TaskQuery
ProcessInstanceAssert.taskQuery()
protected TaskQuery
TaskAssert.taskQuery()
Modifier and TypeMethodDescriptionstatic Task
Helper method to easily access the only task compliant to a given taskQuery and currently available in the context of the last asserted process instance.static Task
BpmnAwareTests.task
(TaskQuery taskQuery, ProcessInstance processInstance) Helper method to easily access the only task compliant to a given taskQuery and currently available in the context of the given process instance.Enter into a chained task assert inspecting only tasks currently available in the context of the process instance under test of this ProcessInstanceAssert. -
Uses of TaskQuery in org.camunda.bpm.qa.upgrade