Class TaskQueryImpl
- Author:
- Joram Barrez, Tom Baeyens, Falko Menge
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
Field Summary
Modifier and TypeFieldDescriptionprotected String[]
protected Boolean
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected Date
protected Date
protected Date
protected DelegationState
protected String
protected String
protected Date
protected Date
protected Date
protected boolean
protected String
protected Date
protected Date
protected Date
protected boolean
protected Boolean
protected boolean
protected String
protected boolean
protected boolean
protected boolean
protected String
protected String
protected Integer
protected Integer
protected String
protected String
protected String
protected String
protected boolean
protected String
protected String
protected Integer
protected String
protected String
protected String[]
protected String
protected String
protected String
protected String
protected String[]
protected String
protected String[]
protected List<TaskQueryImpl>
protected SuspensionState
protected String[]
protected String
protected String[]
protected boolean
protected String[]
protected Boolean
protected Date
protected Boolean
protected List<TaskQueryVariableValue>
protected Boolean
protected Boolean
protected Boolean
protected Boolean
protected Boolean
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactive()
Only select tasks which are active (ie.activityInstanceIdIn
(String... activityInstanceIds) Only select task which have one of the activity instance ids.void
addOrQuery
(TaskQueryImpl orQuery) void
addVariable
(String name, Object value, QueryOperator operator, boolean isTaskVariable, boolean isProcessInstanceVariable) protected void
addVariable
(TaskQueryVariableValue taskQueryVariableValue) caseDefinitionId
(String caseDefinitionId) Only select tasks which are part of a case instance which has the given case definition id.caseDefinitionKey
(String caseDefinitionKey) Only select tasks which are part of a case instance which has the given case definition key.caseDefinitionName
(String caseDefinitionName) Only select tasks which are part of a case instance which has the given case definition name.caseDefinitionNameLike
(String caseDefinitionNameLike) Only select tasks which are part of a case instance which case definition name is like the given parameter.caseExecutionId
(String caseExecutionId) Only select tasks for the given case execution.caseInstanceBusinessKey
(String caseInstanceBusinessKey) Only select tasks for the given case instance business keycaseInstanceBusinessKeyLike
(String caseInstanceBusinessKeyLike) Only select tasks matching the given case instance business key.caseInstanceId
(String caseInstanceId) Only select tasks for the given case instance id.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.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.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.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.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.caseInstanceVariableValueLike
(String variableName, String variableValue) Only select tasks which are part of a case instance that have a variable value like the given value.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.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.protected void
decideAuthorizationJoinType
(CommandContext commandContext) Only select tasks which have a due date after the given date.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.dueBeforeExpression
(String dueDate) Only select tasks which have a due date before the described date by the given expression.Only select tasks with the given due date.dueDateExpression
(String dueDateExpression) Only select tasks with the described due date by the given expression.endOr()
endOr() terminates an OR query on which an arbitrary amount of filter criteria were applied.protected void
ensureNotInOrQuery
(String methodName) protected void
protected void
Only select tasks that have no parent (i.e.long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.executionId
(String executionId) Only select tasks for the given execution.followUpAfter
(Date followUpAfter) Only select tasks which have a follow-up date after the given date.followUpAfterExpression
(String followUpAfterExpression) Only select tasks which have a follow-up date after the described date by the given expression.followUpBefore
(Date followUpBefore) Only select tasks which have a follow-up date before the given date.followUpBeforeExpression
(String followUpBeforeExpression) Only select tasks which have a follow-up date before the described date by the given expression.followUpBeforeOrNotExistent
(Date followUpDate) Only select tasks which have no follow-up date or a follow-up date before the given date.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.followUpDate
(Date followUpDate) Only select tasks with the given follow-up date.followUpDateExpression
(String followUpDateExpression) Only select tasks with the described follow-up date by the given expression.String[]
getGroupsForCandidateUser
(String candidateUser) boolean
getKey()
String[]
getKeys()
getName()
getOwner()
String[]
String[]
String[]
String[]
String[]
String[]
protected boolean
Whether or not the query has excluding conditions.Select both assigned and not assigned tasks for candidate user or group queries.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).boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
All queries for task-, process- and case-variables will match the variable names in a case-insensitive way.All queries for task-, process- and case-variables will match the variable values in a case-insensitive way.protected void
mergeVariables
(TaskQueryImpl extendedQuery, TaskQueryImpl extendingQuery) Simple implementation of variable merging.or()
After calling or(), a chain of several filter criteria could follow.Order by case execution id (needs to be followed byQuery.asc()
orQuery.desc()
).orderByCaseExecutionVariable
(String variableName, ValueType valueType) Order by a task variable value of a certain type.Order by case instance id (needs to be followed byQuery.asc()
orQuery.desc()
).orderByCaseInstanceVariable
(String variableName, ValueType valueType) Order by a task variable value of a certain type.Order by due date (needs to be followed byQuery.asc()
orQuery.desc()
).Order by execution id (needs to be followed byQuery.asc()
orQuery.desc()
).orderByExecutionVariable
(String variableName, ValueType valueType) Order by an execution variable value of a certain type.Order by follow-up date (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the time the task was updated last (needs to be followed byQuery.asc()
orQuery.desc()
).Order by process instance id (needs to be followed byQuery.asc()
orQuery.desc()
).orderByProcessVariable
(String variableName, ValueType valueType) Order by a process instance variable value of a certain type.Order by assignee (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the time on which the tasks were created (needs to be followed byQuery.asc()
orQuery.desc()
).Order by description (needs to be followed byQuery.asc()
orQuery.desc()
).Order by task id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by task name (needs to be followed byQuery.asc()
orQuery.desc()
).Order by task name case insensitive (needs to be followed byQuery.asc()
orQuery.desc()
).Order by priority (needs to be followed byQuery.asc()
orQuery.desc()
).orderByTaskVariable
(String variableName, ValueType valueType) Order by a task variable value of a certain type.Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).processDefinitionId
(String processDefinitionId) Only select tasks which are part of a process instance which has the given process definition id.processDefinitionKey
(String processDefinitionKey) Only select tasks which are part of a process instance which has the given process definition key.processDefinitionKeyIn
(String... processDefinitionKeys) Only select tasks which are part of a process instance which has one of the given process definition keys.processDefinitionName
(String processDefinitionName) Only select tasks which are part of a process instance which has the given process definition name.processDefinitionNameLike
(String processDefinitionName) Only select tasks which are part of a process instance which process definition name is like the given parameter.processInstanceBusinessKey
(String processInstanceBusinessKey) Only select tasks for the given process instance business keyprocessInstanceBusinessKeyExpression
(String processInstanceBusinessKeyExpression) Only select tasks for the given process instance business key described by the given expressionprocessInstanceBusinessKeyIn
(String... processInstanceBusinessKeys) Only select tasks for any of the given the given process instance business keys.processInstanceBusinessKeyLike
(String processInstanceBusinessKey) Only select tasks matching the given process instance business key.processInstanceBusinessKeyLikeExpression
(String processInstanceBusinessKeyLikeExpression) Only select tasks matching the given process instance business key described by the given expression.processInstanceId
(String processInstanceId) Only select tasks for the given process instance id.processInstanceIdIn
(String... processInstanceIds) Only select tasks for the given process instance ids.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.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.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.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.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.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.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.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.protected void
void
setFollowUpNullAccepted
(boolean followUpNullAccepted) void
Only select tasks which are suspended, because its process instance was suspended.Only select tasks which have an assignee.taskAssignee
(String assignee) Only select tasks which are assigned to the given user.taskAssigneeExpression
(String assigneeExpression) Only select tasks which are assigned to the user described by the given expression.taskAssigneeIn
(String... assignees) Only select tasks which are assigned to one of the given users.taskAssigneeLike
(String assignee) Only select tasks which are matching the given user.taskAssigneeLikeExpression
(String assigneeLikeExpression) Only select tasks which are assigned to the user described by the given expression.taskAssigneeNotIn
(String... assignees) Only select tasks which are not assigned to any of the given users.taskCandidateGroup
(String candidateGroup) Only select tasks for which users in the given group are candidates.taskCandidateGroupExpression
(String candidateGroupExpression) Only select tasks for which users in the described group by the given expression are candidates.taskCandidateGroupIn
(List<String> candidateGroups) Only select tasks for which the 'candidateGroup' is one of the given groups.taskCandidateGroupInExpression
(String candidateGroupsExpression) Only select tasks for which the 'candidateGroup' is one of the described groups of the given expression.taskCandidateUser
(String candidateUser) Only select tasks for which the given user or one of his groups is a candidate.taskCandidateUserExpression
(String candidateUserExpression) Only select tasks for which the described user by the given expression is a candidate.taskCreatedAfter
(Date after) Only select tasks that are created after the given date.taskCreatedAfterExpression
(String afterExpression) Only select tasks that are created after the date resolved from the given expression.taskCreatedBefore
(Date before) Only select tasks that are created before the given date.taskCreatedBeforeExpression
(String beforeExpression) Only select tasks that are created before the date resolved from the given expression.taskCreatedOn
(Date createTime) Only select tasks that are created on the given date.taskCreatedOnExpression
(String createTimeExpression) Only select tasks that are created on the date resolved from the given expression.taskDefinitionKey
(String key) Only select tasks with the given taskDefinitionKey.taskDefinitionKeyIn
(String... taskDefinitionKeys) Only select tasks which have one of the taskDefinitionKeys.taskDefinitionKeyLike
(String keyLike) Only select tasks with a taskDefinitionKey that match the given parameter.taskDelegationState
(DelegationState delegationState) Only select tasks with the givenDelegationState
.taskDescription
(String description) Only select tasks with the given description.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.taskInvolvedUser
(String involvedUser) Only select tasks for which there exist anIdentityLink
with the given usertaskInvolvedUserExpression
(String involvedUserExpression) Only select tasks for which there exist anIdentityLink
with the described user by the given expressiontaskMaxPriority
(Integer maxPriority) Only select tasks with the given priority or lower.taskMinPriority
(Integer minPriority) Only select tasks with the given priority or higher.Only select tasks with the given name.taskNameLike
(String nameLike) Only select tasks with a name matching the parameter.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.taskNameNotLike
(String nameNotLike) Only select tasks with a name not matching the parameter.Only select tasks for which the given user is the owner.taskOwnerExpression
(String ownerExpression) Only select tasks for which the described user by the given expression is the owner.taskParentTaskId
(String taskParentTaskId) Select the tasks which are sub tasks of the given parent task.taskPriority
(Integer priority) Only select tasks with the given priority.Only select tasks which don't have an assignee.Deprecated.taskUpdatedAfter
(Date after) Only select tasks that were updated after the given date.taskUpdatedAfterExpression
(String afterExpression) Only select tasks that were updated after the date resolved from the given expression.taskVariableValueEquals
(String variableName, Object variableValue) Only select tasks which have a local task variable with the given name set to the given value.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.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.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.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.taskVariableValueLike
(String variableName, String variableValue) Only select tasks which have a local task variable with the given name matching the given value.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.tenantIdIn
(String... tenantIds) Only select tasks with one of the given tenant ids.Only select tasks which have a candidate groupOnly select tasks which have a candidate userOnly select tasks which have no candidate groupOnly select tasks which have no candidate userOnly select tasks which have no due date.Only select tasks which have no tenant id.Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeDeploymentIdMappingsList, executeIdsList, executeResult, executeSingleResult, getExpressions, getMethod, list, listDeploymentIdMappings, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unlimitedList, validate, validate
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Field Details
-
taskId
-
taskIdIn
-
name
-
nameNotEqual
-
nameLike
-
nameNotLike
-
description
-
descriptionLike
-
priority
-
minPriority
-
maxPriority
-
assignee
-
assigneeLike
-
assigneeIn
-
assigneeNotIn
-
involvedUser
-
owner
-
unassigned
-
assigned
-
noDelegationState
protected boolean noDelegationState -
delegationState
-
candidateUser
-
candidateGroup
-
candidateGroups
-
withCandidateGroups
-
withoutCandidateGroups
-
withCandidateUsers
-
withoutCandidateUsers
-
includeAssignedTasks
-
processInstanceId
-
processInstanceIdIn
-
executionId
-
activityInstanceIdIn
-
createTime
-
createTimeBefore
-
createTimeAfter
-
updatedAfter
-
key
-
keyLike
-
taskDefinitionKeys
-
processDefinitionKey
-
processDefinitionKeys
-
processDefinitionId
-
processDefinitionName
-
processDefinitionNameLike
-
processInstanceBusinessKey
-
processInstanceBusinessKeys
-
processInstanceBusinessKeyLike
-
variables
-
dueDate
-
dueBefore
-
dueAfter
-
followUpDate
-
followUpBefore
-
followUpNullAccepted
protected boolean followUpNullAccepted -
followUpAfter
-
excludeSubtasks
protected boolean excludeSubtasks -
suspensionState
-
initializeFormKeys
protected boolean initializeFormKeys -
taskNameCaseInsensitive
protected boolean taskNameCaseInsensitive -
variableNamesIgnoreCase
-
variableValuesIgnoreCase
-
parentTaskId
-
isWithoutTenantId
protected boolean isWithoutTenantId -
isWithoutDueDate
protected boolean isWithoutDueDate -
tenantIds
-
caseDefinitionKey
-
caseDefinitionId
-
caseDefinitionName
-
caseDefinitionNameLike
-
caseInstanceId
-
caseInstanceBusinessKey
-
caseInstanceBusinessKeyLike
-
caseExecutionId
-
cachedCandidateGroups
-
cachedUserGroups
-
queries
-
isOrQueryActive
protected boolean isOrQueryActive
-
-
Constructor Details
-
TaskQueryImpl
public TaskQueryImpl() -
TaskQueryImpl
-
-
Method Details
-
taskId
Description copied from interface:TaskQuery
Only select tasks with the given task id (in practice, there will be maximum one of this kind) -
taskIdIn
Description copied from interface:TaskQuery
Only select tasks with the given task ids. -
taskName
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. -
taskNameLike
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 interfaceTaskQuery
-
taskDescription
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 interfaceTaskQuery
-
taskDescriptionLike
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 interfaceTaskQuery
-
taskPriority
Description copied from interface:TaskQuery
Only select tasks with the given priority.- Specified by:
taskPriority
in interfaceTaskQuery
-
taskMinPriority
Description copied from interface:TaskQuery
Only select tasks with the given priority or higher.- Specified by:
taskMinPriority
in interfaceTaskQuery
-
taskMaxPriority
Description copied from interface:TaskQuery
Only select tasks with the given priority or lower.- Specified by:
taskMaxPriority
in interfaceTaskQuery
-
taskAssignee
Description copied from interface:TaskQuery
Only select tasks which are assigned to the given user.- Specified by:
taskAssignee
in interfaceTaskQuery
-
taskAssigneeExpression
Description copied from interface:TaskQuery
Only select tasks which are assigned to the user described by the given expression.
- Specified by:
taskAssigneeExpression
in interfaceTaskQuery
-
taskAssigneeLike
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 interfaceTaskQuery
-
taskAssigneeLikeExpression
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 interfaceTaskQuery
-
taskAssigneeIn
Description copied from interface:TaskQuery
Only select tasks which are assigned to one of the given users.- Specified by:
taskAssigneeIn
in interfaceTaskQuery
-
taskAssigneeNotIn
Description copied from interface:TaskQuery
Only select tasks which are not assigned to any of the given users.- Specified by:
taskAssigneeNotIn
in interfaceTaskQuery
-
taskOwner
Description copied from interface:TaskQuery
Only select tasks for which the given user is the owner. -
taskOwnerExpression
Description copied from interface:TaskQuery
Only select tasks for which the described user by the given expression is the owner.
- Specified by:
taskOwnerExpression
in interfaceTaskQuery
-
taskUnnassigned
Deprecated.- Specified by:
taskUnnassigned
in interfaceTaskQuery
- See Also:
-
taskUnassigned
Description copied from interface:TaskQuery
Only select tasks which don't have an assignee.- Specified by:
taskUnassigned
in interfaceTaskQuery
-
taskAssigned
Description copied from interface:TaskQuery
Only select tasks which have an assignee.- Specified by:
taskAssigned
in interfaceTaskQuery
-
taskDelegationState
Description copied from interface:TaskQuery
Only select tasks with the givenDelegationState
.- Specified by:
taskDelegationState
in interfaceTaskQuery
-
taskCandidateUser
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 interfaceTaskQuery
-
taskCandidateUserExpression
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 interfaceTaskQuery
-
taskInvolvedUser
Description copied from interface:TaskQuery
Only select tasks for which there exist anIdentityLink
with the given user- Specified by:
taskInvolvedUser
in interfaceTaskQuery
-
taskInvolvedUserExpression
Description copied from interface:TaskQuery
Only select tasks for which there exist an
IdentityLink
with the described user by the given expression- Specified by:
taskInvolvedUserExpression
in interfaceTaskQuery
-
withCandidateGroups
Description copied from interface:TaskQuery
Only select tasks which have a candidate group- Specified by:
withCandidateGroups
in interfaceTaskQuery
-
withoutCandidateGroups
Description copied from interface:TaskQuery
Only select tasks which have no candidate group- Specified by:
withoutCandidateGroups
in interfaceTaskQuery
-
withCandidateUsers
Description copied from interface:TaskQuery
Only select tasks which have a candidate user- Specified by:
withCandidateUsers
in interfaceTaskQuery
-
withoutCandidateUsers
Description copied from interface:TaskQuery
Only select tasks which have no candidate user- Specified by:
withoutCandidateUsers
in interfaceTaskQuery
-
taskCandidateGroup
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 interfaceTaskQuery
-
taskCandidateGroupExpression
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 interfaceTaskQuery
-
taskCandidateGroupIn
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 interfaceTaskQuery
-
taskCandidateGroupInExpression
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 interfaceTaskQuery
-
includeAssignedTasks
Description copied from interface:TaskQuery
Select both assigned and not assigned tasks for candidate user or group queries.By default
TaskQuery.taskCandidateUser(String)
,TaskQuery.taskCandidateGroup(String)
andTaskQuery.taskCandidateGroupIn(List)
queries only select not assigned tasks.- Specified by:
includeAssignedTasks
in interfaceTaskQuery
-
includeAssignedTasksInternal
-
processInstanceId
Description copied from interface:TaskQuery
Only select tasks for the given process instance id.- Specified by:
processInstanceId
in interfaceTaskQuery
-
processInstanceIdIn
Description copied from interface:TaskQuery
Only select tasks for the given process instance ids.- Specified by:
processInstanceIdIn
in interfaceTaskQuery
-
processInstanceBusinessKey
Description copied from interface:TaskQuery
Only select tasks for the given process instance business key- Specified by:
processInstanceBusinessKey
in interfaceTaskQuery
-
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 interfaceTaskQuery
-
processInstanceBusinessKeyIn
Description copied from interface:TaskQuery
Only select tasks for any of the given the given process instance business keys.- Specified by:
processInstanceBusinessKeyIn
in interfaceTaskQuery
-
processInstanceBusinessKeyLike
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 interfaceTaskQuery
-
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 interfaceTaskQuery
-
executionId
Description copied from interface:TaskQuery
Only select tasks for the given execution.- Specified by:
executionId
in interfaceTaskQuery
-
activityInstanceIdIn
Description copied from interface:TaskQuery
Only select task which have one of the activity instance ids.- Specified by:
activityInstanceIdIn
in interfaceTaskQuery
-
tenantIdIn
Description copied from interface:TaskQuery
Only select tasks with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceTaskQuery
-
withoutTenantId
Description copied from interface:TaskQuery
Only select tasks which have no tenant id.- Specified by:
withoutTenantId
in interfaceTaskQuery
-
taskCreatedOn
Description copied from interface:TaskQuery
Only select tasks that are created on the given date.- Specified by:
taskCreatedOn
in interfaceTaskQuery
-
taskCreatedOnExpression
Description copied from interface:TaskQuery
Only select tasks that are created on the date resolved from the given expression.- Specified by:
taskCreatedOnExpression
in interfaceTaskQuery
-
taskCreatedBefore
Description copied from interface:TaskQuery
Only select tasks that are created before the given date.- Specified by:
taskCreatedBefore
in interfaceTaskQuery
-
taskCreatedBeforeExpression
Description copied from interface:TaskQuery
Only select tasks that are created before the date resolved from the given expression.- Specified by:
taskCreatedBeforeExpression
in interfaceTaskQuery
-
taskCreatedAfter
Description copied from interface:TaskQuery
Only select tasks that are created after the given date.- Specified by:
taskCreatedAfter
in interfaceTaskQuery
-
taskCreatedAfterExpression
Description copied from interface:TaskQuery
Only select tasks that are created after the date resolved from the given expression.- Specified by:
taskCreatedAfterExpression
in interfaceTaskQuery
-
taskUpdatedAfter
Description copied from interface:TaskQuery
Only select tasks that were updated after the given date.- Specified by:
taskUpdatedAfter
in interfaceTaskQuery
-
taskUpdatedAfterExpression
Description copied from interface:TaskQuery
Only select tasks that were updated after the date resolved from the given expression.- Specified by:
taskUpdatedAfterExpression
in interfaceTaskQuery
-
taskDefinitionKey
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 interfaceTaskQuery
-
taskDefinitionKeyLike
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 interfaceTaskQuery
-
taskDefinitionKeyIn
Description copied from interface:TaskQuery
Only select tasks which have one of the taskDefinitionKeys.- Specified by:
taskDefinitionKeyIn
in interfaceTaskQuery
-
taskParentTaskId
Description copied from interface:TaskQuery
Select the tasks which are sub tasks of the given parent task.- Specified by:
taskParentTaskId
in interfaceTaskQuery
-
caseInstanceId
Description copied from interface:TaskQuery
Only select tasks for the given case instance id.- Specified by:
caseInstanceId
in interfaceTaskQuery
-
caseInstanceBusinessKey
Description copied from interface:TaskQuery
Only select tasks for the given case instance business key- Specified by:
caseInstanceBusinessKey
in interfaceTaskQuery
-
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 interfaceTaskQuery
-
caseExecutionId
Description copied from interface:TaskQuery
Only select tasks for the given case execution.- Specified by:
caseExecutionId
in interfaceTaskQuery
-
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 interfaceTaskQuery
-
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 interfaceTaskQuery
-
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 interfaceTaskQuery
-
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 interfaceTaskQuery
-
taskVariableValueEquals
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 interfaceTaskQuery
-
taskVariableValueNotEquals
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 andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
taskVariableValueNotEquals
in interfaceTaskQuery
-
taskVariableValueLike
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 interfaceTaskQuery
-
taskVariableValueGreaterThan
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 interfaceTaskQuery
-
taskVariableValueGreaterThanOrEquals
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 interfaceTaskQuery
-
taskVariableValueLessThan
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 interfaceTaskQuery
-
taskVariableValueLessThanOrEquals
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 interfaceTaskQuery
-
processVariableValueEquals
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 interfaceTaskQuery
-
processVariableValueNotEquals
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 andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueNotEquals
in interfaceTaskQuery
-
processVariableValueLike
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 interfaceTaskQuery
-
processVariableValueNotLike
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 interfaceTaskQuery
-
processVariableValueGreaterThan
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 interfaceTaskQuery
-
processVariableValueGreaterThanOrEquals
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 interfaceTaskQuery
-
processVariableValueLessThan
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 interfaceTaskQuery
-
processVariableValueLessThanOrEquals
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 interfaceTaskQuery
-
caseInstanceVariableValueEquals
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 inProcessEngineConfigurationImpl.getVariableSerializers()
.Byte-arrays and
Serializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueEquals
in interfaceTaskQuery
- Parameters:
variableName
- name of the variable, cannot be null.
-
caseInstanceVariableValueNotEquals
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 inProcessEngineConfigurationImpl.getVariableSerializers()
.Byte-arrays and
Serializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueNotEquals
in interfaceTaskQuery
- Parameters:
variableName
- name of the variable, cannot be null.
-
caseInstanceVariableValueLike
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 interfaceTaskQuery
- Parameters:
variableName
- variable name, cannot be null.variableValue
- variable value. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
caseInstanceVariableValueNotLike
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 interfaceTaskQuery
- Parameters:
variableName
- variable name, cannot be null.variableValue
- variable value. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
caseInstanceVariableValueGreaterThan
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 interfaceTaskQuery
- Parameters:
variableName
- variable name, cannot be null.
-
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 interfaceTaskQuery
- Parameters:
variableName
- variable name, cannot be null.
-
caseInstanceVariableValueLessThan
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 interfaceTaskQuery
- Parameters:
variableName
- variable name, cannot be null.
-
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 interfaceTaskQuery
- Parameters:
variableName
- variable name, cannot be null.
-
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 interfaceTaskQuery
-
processDefinitionKeyIn
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 interfaceTaskQuery
-
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 interfaceTaskQuery
-
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 interfaceTaskQuery
-
processDefinitionNameLike
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 interfaceTaskQuery
-
dueDate
Description copied from interface:TaskQuery
Only select tasks with the given due date. -
dueDateExpression
Description copied from interface:TaskQuery
Only select tasks with the described due date by the given expression.
- Specified by:
dueDateExpression
in interfaceTaskQuery
-
dueBefore
Description copied from interface:TaskQuery
Only select tasks which have a due date before the given date. -
dueBeforeExpression
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 interfaceTaskQuery
-
dueAfter
Description copied from interface:TaskQuery
Only select tasks which have a due date after the given date. -
dueAfterExpression
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 interfaceTaskQuery
-
withoutDueDate
Description copied from interface:TaskQuery
Only select tasks which have no due date.- Specified by:
withoutDueDate
in interfaceTaskQuery
-
followUpDate
Description copied from interface:TaskQuery
Only select tasks with the given follow-up date.- Specified by:
followUpDate
in interfaceTaskQuery
-
followUpDateExpression
Description copied from interface:TaskQuery
Only select tasks with the described follow-up date by the given expression.
- Specified by:
followUpDateExpression
in interfaceTaskQuery
-
followUpBefore
Description copied from interface:TaskQuery
Only select tasks which have a follow-up date before the given date.- Specified by:
followUpBefore
in interfaceTaskQuery
-
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 interfaceTaskQuery
-
followUpBeforeOrNotExistent
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 interfaceTaskQuery
-
followUpBeforeOrNotExistentExpression
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 interfaceTaskQuery
-
setFollowUpNullAccepted
public void setFollowUpNullAccepted(boolean followUpNullAccepted) -
followUpAfter
Description copied from interface:TaskQuery
Only select tasks which have a follow-up date after the given date.- Specified by:
followUpAfter
in interfaceTaskQuery
-
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 interfaceTaskQuery
-
excludeSubtasks
Description copied from interface:TaskQuery
Only select tasks that have no parent (i.e. do not select subtasks).- Specified by:
excludeSubtasks
in interfaceTaskQuery
-
active
Description copied from interface:TaskQuery
Only select tasks which are active (ie. not suspended) -
suspended
Description copied from interface:TaskQuery
Only select tasks which are suspended, because its process instance was suspended. -
initializeFormKeys
Description copied from interface:TaskQuery
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).- Specified by:
initializeFormKeys
in interfaceTaskQuery
- Returns:
- the query itself
-
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 classAbstractQuery<TaskQuery,
Task> - Returns:
true
if the query does have excluding conditions,false
otherwise
-
getCandidateGroups
-
isWithCandidateGroups
-
isWithCandidateUsers
-
isWithCandidateGroupsInternal
-
isWithoutCandidateGroups
-
isWithoutCandidateUsers
-
isWithoutCandidateGroupsInternal
-
getCandidateGroupsInternal
-
getGroupsForCandidateUser
-
getCachedUserGroups
-
ensureOrExpressionsEvaluated
protected void ensureOrExpressionsEvaluated() -
ensureVariablesInitialized
protected void ensureVariablesInitialized() -
ensureNotInOrQuery
-
addVariable
public void addVariable(String name, Object value, QueryOperator operator, boolean isTaskVariable, boolean isProcessInstanceVariable) -
addVariable
-
orderByTaskId
Description copied from interface:TaskQuery
Order by task id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskId
in interfaceTaskQuery
-
orderByTaskName
Description copied from interface:TaskQuery
Order by task name (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskName
in interfaceTaskQuery
-
orderByTaskNameCaseInsensitive
Description copied from interface:TaskQuery
Order by task name case insensitive (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskNameCaseInsensitive
in interfaceTaskQuery
-
orderByTaskDescription
Description copied from interface:TaskQuery
Order by description (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskDescription
in interfaceTaskQuery
-
orderByTaskPriority
Description copied from interface:TaskQuery
Order by priority (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskPriority
in interfaceTaskQuery
-
orderByProcessInstanceId
Description copied from interface:TaskQuery
Order by process instance id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceId
in interfaceTaskQuery
-
orderByCaseInstanceId
Description copied from interface:TaskQuery
Order by case instance id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseInstanceId
in interfaceTaskQuery
-
orderByExecutionId
Description copied from interface:TaskQuery
Order by execution id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByExecutionId
in interfaceTaskQuery
-
orderByTenantId
Description copied from interface:TaskQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of tasks without tenant id is database-specific.- Specified by:
orderByTenantId
in interfaceTaskQuery
-
orderByCaseExecutionId
Description copied from interface:TaskQuery
Order by case execution id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseExecutionId
in interfaceTaskQuery
-
orderByTaskAssignee
Description copied from interface:TaskQuery
Order by assignee (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskAssignee
in interfaceTaskQuery
-
orderByTaskCreateTime
Description copied from interface:TaskQuery
Order by the time on which the tasks were created (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskCreateTime
in interfaceTaskQuery
-
orderByLastUpdated
Description copied from interface:TaskQuery
Order by the time the task was updated last (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByLastUpdated
in interfaceTaskQuery
-
orderByDueDate
Description copied from interface:TaskQuery
Order by due date (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDueDate
in interfaceTaskQuery
-
orderByFollowUpDate
Description copied from interface:TaskQuery
Order by follow-up date (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByFollowUpDate
in interfaceTaskQuery
-
orderByProcessVariable
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 withnull
values is database-specific.- Specified by:
orderByProcessVariable
in interfaceTaskQuery
-
orderByExecutionVariable
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 withnull
values is database-specific.- Specified by:
orderByExecutionVariable
in interfaceTaskQuery
-
orderByTaskVariable
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 withnull
values is database-specific.- Specified by:
orderByTaskVariable
in interfaceTaskQuery
-
orderByCaseExecutionVariable
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 withnull
values is database-specific.- Specified by:
orderByCaseExecutionVariable
in interfaceTaskQuery
-
orderByCaseInstanceVariable
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 withnull
values is database-specific.- Specified by:
orderByCaseInstanceVariable
in interfaceTaskQuery
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<TaskQuery,
Task> page
- used if the results must be paged. If null, no paging will be applied.
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<TaskQuery,
Task>
-
decideAuthorizationJoinType
-
resetCachedCandidateGroups
protected void resetCachedCandidateGroups() -
getName
-
getNameNotEqual
-
getNameLike
-
getNameNotLike
-
getAssignee
-
getAssigneeLike
-
getAssigneeIn
-
getAssigneeNotIn
-
getInvolvedUser
-
getOwner
-
isAssigned
-
isAssignedInternal
-
isUnassigned
public boolean isUnassigned() -
isUnassignedInternal
-
getDelegationState
-
isNoDelegationState
public boolean isNoDelegationState() -
getDelegationStateString
-
getCandidateUser
-
getCandidateGroup
-
isIncludeAssignedTasks
public boolean isIncludeAssignedTasks() -
isIncludeAssignedTasksInternal
-
getProcessInstanceId
-
getProcessInstanceIdIn
-
getExecutionId
-
getActivityInstanceIdIn
-
getTenantIds
-
getTaskId
-
getTaskIdIn
-
getDescription
-
getDescriptionLike
-
getPriority
-
getMinPriority
-
getMaxPriority
-
getCreateTime
-
getCreateTimeBefore
-
getCreateTimeAfter
-
getUpdatedAfter
-
getKey
-
getKeys
-
getKeyLike
-
getParentTaskId
-
getVariables
-
getProcessDefinitionKey
-
getProcessDefinitionKeys
-
getProcessDefinitionId
-
getProcessDefinitionName
-
getProcessDefinitionNameLike
-
getProcessInstanceBusinessKey
-
getProcessInstanceBusinessKeys
-
getProcessInstanceBusinessKeyLike
-
getDueDate
-
getDueBefore
-
getDueAfter
-
getFollowUpDate
-
getFollowUpBefore
-
getFollowUpAfter
-
isExcludeSubtasks
public boolean isExcludeSubtasks() -
getSuspensionState
-
getCaseInstanceId
-
getCaseInstanceBusinessKey
-
getCaseInstanceBusinessKeyLike
-
getCaseExecutionId
-
getCaseDefinitionId
-
getCaseDefinitionKey
-
getCaseDefinitionName
-
getCaseDefinitionNameLike
-
isInitializeFormKeys
public boolean isInitializeFormKeys() -
isTaskNameCaseInsensitive
public boolean isTaskNameCaseInsensitive() -
isWithoutTenantId
public boolean isWithoutTenantId() -
isWithoutDueDate
public boolean isWithoutDueDate() -
getTaskDefinitionKeys
-
getIsTenantIdSet
public boolean getIsTenantIdSet() -
isVariableNamesIgnoreCase
-
isVariableValuesIgnoreCase
-
getQueries
-
isOrQueryActive
public boolean isOrQueryActive() -
addOrQuery
-
setOrQueryActive
public void setOrQueryActive() -
extend
- Overrides:
extend
in classAbstractQuery<TaskQuery,
Task>
-
mergeVariables
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
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 interfaceTaskQuery
-
taskNameNotLike
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 interfaceTaskQuery
-
isQueryForProcessTasksOnly
public boolean isQueryForProcessTasksOnly()- Returns:
- true if the query is not supposed to find CMMN or standalone tasks
-
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. -
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. -
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 interfaceTaskQuery
-
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 interfaceTaskQuery
-