Class TaskQueryImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<TaskQuery,Task>
-
- org.camunda.bpm.engine.impl.TaskQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable
,Command<java.lang.Object>
,Query<TaskQuery,Task>
,TaskQuery
public class TaskQueryImpl extends AbstractQuery<TaskQuery,Task> implements TaskQuery
- Author:
- Joram Barrez, Tom Baeyens, Falko Menge
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
TaskQueryImpl.TaskQueryVariableValueComparable
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]
activityInstanceIdIn
protected java.lang.Boolean
assigned
protected java.lang.String
assignee
protected java.util.Set<java.lang.String>
assigneeIn
protected java.lang.String
assigneeLike
protected java.util.Set<java.lang.String>
assigneeNotIn
protected java.util.List<java.lang.String>
cachedCandidateGroups
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>>
cachedUserGroups
protected java.lang.String
candidateGroup
protected java.util.List<java.lang.String>
candidateGroups
protected java.lang.String
candidateUser
protected java.lang.String
caseDefinitionId
protected java.lang.String
caseDefinitionKey
protected java.lang.String
caseDefinitionName
protected java.lang.String
caseDefinitionNameLike
protected java.lang.String
caseExecutionId
protected java.lang.String
caseInstanceBusinessKey
protected java.lang.String
caseInstanceBusinessKeyLike
protected java.lang.String
caseInstanceId
protected java.util.Date
createTime
protected java.util.Date
createTimeAfter
protected java.util.Date
createTimeBefore
protected DelegationState
delegationState
protected java.lang.String
description
protected java.lang.String
descriptionLike
protected java.util.Date
dueAfter
protected java.util.Date
dueBefore
protected java.util.Date
dueDate
protected boolean
excludeSubtasks
protected java.lang.String
executionId
protected java.util.Date
followUpAfter
protected java.util.Date
followUpBefore
protected java.util.Date
followUpDate
protected boolean
followUpNullAccepted
protected java.lang.Boolean
includeAssignedTasks
protected boolean
initializeFormKeys
protected java.lang.String
involvedUser
protected boolean
isOrQueryActive
protected boolean
isWithoutDueDate
protected boolean
isWithoutTenantId
protected java.lang.String
key
protected java.lang.String
keyLike
protected java.lang.Integer
maxPriority
protected java.lang.Integer
minPriority
protected java.lang.String
name
protected java.lang.String
nameLike
protected java.lang.String
nameNotEqual
protected java.lang.String
nameNotLike
protected boolean
noDelegationState
protected java.lang.String
owner
protected java.lang.String
parentTaskId
protected java.lang.Integer
priority
protected java.lang.String
processDefinitionId
protected java.lang.String
processDefinitionKey
protected java.lang.String[]
processDefinitionKeys
protected java.lang.String
processDefinitionName
protected java.lang.String
processDefinitionNameLike
protected java.lang.String
processInstanceBusinessKey
protected java.lang.String
processInstanceBusinessKeyLike
protected java.lang.String[]
processInstanceBusinessKeys
protected java.lang.String
processInstanceId
protected java.lang.String[]
processInstanceIdIn
protected java.util.List<TaskQueryImpl>
queries
protected SuspensionState
suspensionState
protected java.lang.String[]
taskDefinitionKeys
protected java.lang.String
taskId
protected java.lang.String[]
taskIdIn
protected boolean
taskNameCaseInsensitive
protected java.lang.String[]
tenantIds
protected java.lang.Boolean
unassigned
protected java.util.Date
updatedAfter
protected java.lang.Boolean
variableNamesIgnoreCase
protected java.util.List<TaskQueryVariableValue>
variables
protected java.lang.Boolean
variableValuesIgnoreCase
protected java.lang.Boolean
withCandidateGroups
protected java.lang.Boolean
withCandidateUsers
protected java.lang.Boolean
withoutCandidateGroups
protected java.lang.Boolean
withoutCandidateUsers
-
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
Constructors Constructor Description TaskQueryImpl()
TaskQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TaskQuery
active()
Only select tasks which are active (ie.TaskQuery
activityInstanceIdIn(java.lang.String... activityInstanceIds)
Only select task which have one of the activity instance ids.void
addOrQuery(TaskQueryImpl orQuery)
void
addVariable(java.lang.String name, java.lang.Object value, QueryOperator operator, boolean isTaskVariable, boolean isProcessInstanceVariable)
protected void
addVariable(TaskQueryVariableValue taskQueryVariableValue)
TaskQuery
caseDefinitionId(java.lang.String caseDefinitionId)
Only select tasks which are part of a case instance which has the given case definition id.TaskQuery
caseDefinitionKey(java.lang.String caseDefinitionKey)
Only select tasks which are part of a case instance which has the given case definition key.TaskQuery
caseDefinitionName(java.lang.String caseDefinitionName)
Only select tasks which are part of a case instance which has the given case definition name.TaskQuery
caseDefinitionNameLike(java.lang.String caseDefinitionNameLike)
Only select tasks which are part of a case instance which case definition name is like the given parameter.TaskQuery
caseExecutionId(java.lang.String caseExecutionId)
Only select tasks for the given case execution.TaskQuery
caseInstanceBusinessKey(java.lang.String caseInstanceBusinessKey)
Only select tasks for the given case instance business keyTaskQuery
caseInstanceBusinessKeyLike(java.lang.String caseInstanceBusinessKeyLike)
Only select tasks matching the given case instance business key.TaskQuery
caseInstanceId(java.lang.String caseInstanceId)
Only select tasks for the given case instance id.TaskQuery
caseInstanceVariableValueEquals(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.Object variableValue)
Only select tasks which are part of a case instance that have a variable value less than the passed value.TaskQuery
caseInstanceVariableValueLessThanOrEquals(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.String variableValue)
Only select tasks which are part of a case instance that have a variable value like the given value.TaskQuery
caseInstanceVariableValueNotEquals(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.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)
TaskQuery
dueAfter(java.util.Date dueAfter)
Only select tasks which have a due date after the given date.TaskQuery
dueAfterExpression(java.lang.String dueDateExpression)
Only select tasks which have a due date after the described date by the given expression.TaskQuery
dueBefore(java.util.Date dueBefore)
Only select tasks which have a due date before the given date.TaskQuery
dueBeforeExpression(java.lang.String dueDate)
Only select tasks which have a due date before the described date by the given expression.TaskQuery
dueDate(java.util.Date dueDate)
Only select tasks with the given due date.TaskQuery
dueDateExpression(java.lang.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.protected void
ensureNotInOrQuery(java.lang.String methodName)
protected void
ensureOrExpressionsEvaluated()
protected void
ensureVariablesInitialized()
TaskQuery
excludeSubtasks()
Only select tasks that have no parent (i.e.long
executeCount(CommandContext commandContext)
java.util.List<Task>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.TaskQueryImpl
executionId(java.lang.String executionId)
Only select tasks for the given execution.TaskQuery
extend(TaskQuery extending)
TaskQuery
followUpAfter(java.util.Date followUpAfter)
Only select tasks which have a follow-up date after the given date.TaskQuery
followUpAfterExpression(java.lang.String followUpAfterExpression)
Only select tasks which have a follow-up date after the described date by the given expression.TaskQuery
followUpBefore(java.util.Date followUpBefore)
Only select tasks which have a follow-up date before the given date.TaskQuery
followUpBeforeExpression(java.lang.String followUpBeforeExpression)
Only select tasks which have a follow-up date before the described date by the given expression.TaskQuery
followUpBeforeOrNotExistent(java.util.Date followUpDate)
Only select tasks which have no follow-up date or a follow-up date before the given date.TaskQuery
followUpBeforeOrNotExistentExpression(java.lang.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(java.util.Date followUpDate)
Only select tasks with the given follow-up date.TaskQuery
followUpDateExpression(java.lang.String followUpDateExpression)
Only select tasks with the described follow-up date by the given expression.java.lang.String[]
getActivityInstanceIdIn()
java.lang.String
getAssignee()
java.util.Set<java.lang.String>
getAssigneeIn()
java.lang.String
getAssigneeLike()
java.util.Set<java.lang.String>
getAssigneeNotIn()
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getCachedUserGroups()
java.lang.String
getCandidateGroup()
java.util.List<java.lang.String>
getCandidateGroups()
java.util.List<java.lang.String>
getCandidateGroupsInternal()
java.lang.String
getCandidateUser()
java.lang.String
getCaseDefinitionId()
java.lang.String
getCaseDefinitionKey()
java.lang.String
getCaseDefinitionName()
java.lang.String
getCaseDefinitionNameLike()
java.lang.String
getCaseExecutionId()
java.lang.String
getCaseInstanceBusinessKey()
java.lang.String
getCaseInstanceBusinessKeyLike()
java.lang.String
getCaseInstanceId()
java.util.Date
getCreateTime()
java.util.Date
getCreateTimeAfter()
java.util.Date
getCreateTimeBefore()
DelegationState
getDelegationState()
java.lang.String
getDelegationStateString()
java.lang.String
getDescription()
java.lang.String
getDescriptionLike()
java.util.Date
getDueAfter()
java.util.Date
getDueBefore()
java.util.Date
getDueDate()
java.lang.String
getExecutionId()
java.util.Date
getFollowUpAfter()
java.util.Date
getFollowUpBefore()
java.util.Date
getFollowUpDate()
protected java.util.List<java.lang.String>
getGroupsForCandidateUser(java.lang.String candidateUser)
java.lang.String
getInvolvedUser()
boolean
getIsTenantIdSet()
java.lang.String
getKey()
java.lang.String
getKeyLike()
java.lang.String[]
getKeys()
java.lang.Integer
getMaxPriority()
java.lang.Integer
getMinPriority()
java.lang.String
getName()
java.lang.String
getNameLike()
java.lang.String
getNameNotEqual()
java.lang.String
getNameNotLike()
java.lang.String
getOwner()
java.lang.String
getParentTaskId()
java.lang.Integer
getPriority()
java.lang.String
getProcessDefinitionId()
java.lang.String
getProcessDefinitionKey()
java.lang.String[]
getProcessDefinitionKeys()
java.lang.String
getProcessDefinitionName()
java.lang.String
getProcessDefinitionNameLike()
java.lang.String
getProcessInstanceBusinessKey()
java.lang.String
getProcessInstanceBusinessKeyLike()
java.lang.String[]
getProcessInstanceBusinessKeys()
java.lang.String
getProcessInstanceId()
java.lang.String[]
getProcessInstanceIdIn()
java.util.List<TaskQueryImpl>
getQueries()
SuspensionState
getSuspensionState()
java.lang.String[]
getTaskDefinitionKeys()
java.lang.String
getTaskId()
java.lang.String[]
getTaskIdIn()
java.lang.String[]
getTenantIds()
java.util.Date
getUpdatedAfter()
java.util.List<TaskQueryVariableValue>
getVariables()
protected boolean
hasExcludingConditions()
Whether or not the query has excluding conditions.TaskQuery
includeAssignedTasks()
Select both assigned and not assigned tasks for candidate user or group queries.TaskQuery
includeAssignedTasksInternal()
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).java.lang.Boolean
isAssigned()
java.lang.Boolean
isAssignedInternal()
boolean
isExcludeSubtasks()
boolean
isFollowUpNullAccepted()
boolean
isIncludeAssignedTasks()
java.lang.Boolean
isIncludeAssignedTasksInternal()
boolean
isInitializeFormKeys()
boolean
isNoDelegationState()
boolean
isOrQueryActive()
boolean
isQueryForProcessTasksOnly()
boolean
isTaskNameCaseInsensitive()
boolean
isUnassigned()
java.lang.Boolean
isUnassignedInternal()
java.lang.Boolean
isVariableNamesIgnoreCase()
java.lang.Boolean
isVariableValuesIgnoreCase()
java.lang.Boolean
isWithCandidateGroups()
java.lang.Boolean
isWithCandidateGroupsInternal()
java.lang.Boolean
isWithCandidateUsers()
java.lang.Boolean
isWithoutCandidateGroups()
java.lang.Boolean
isWithoutCandidateGroupsInternal()
java.lang.Boolean
isWithoutCandidateUsers()
boolean
isWithoutDueDate()
boolean
isWithoutTenantId()
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.protected void
mergeVariables(TaskQueryImpl extendedQuery, TaskQueryImpl extendingQuery)
Simple implementation of variable merging.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.String processDefinitionId)
Only select tasks which are part of a process instance which has the given process definition id.TaskQuery
processDefinitionKey(java.lang.String processDefinitionKey)
Only select tasks which are part of a process instance which has the given process definition key.TaskQuery
processDefinitionKeyIn(java.lang.String... processDefinitionKeys)
Only select tasks which are part of a process instance which has one of the given process definition keys.TaskQuery
processDefinitionName(java.lang.String processDefinitionName)
Only select tasks which are part of a process instance which has the given process definition name.TaskQuery
processDefinitionNameLike(java.lang.String processDefinitionName)
Only select tasks which are part of a process instance which process definition name is like the given parameter.TaskQueryImpl
processInstanceBusinessKey(java.lang.String processInstanceBusinessKey)
Only select tasks for the given process instance business keyTaskQuery
processInstanceBusinessKeyExpression(java.lang.String processInstanceBusinessKeyExpression)
Only select tasks for the given process instance business key described by the given expressionTaskQuery
processInstanceBusinessKeyIn(java.lang.String... processInstanceBusinessKeys)
Only select tasks for any of the given the given process instance business keys.TaskQuery
processInstanceBusinessKeyLike(java.lang.String processInstanceBusinessKey)
Only select tasks matching the given process instance business key.TaskQuery
processInstanceBusinessKeyLikeExpression(java.lang.String processInstanceBusinessKeyLikeExpression)
Only select tasks matching the given process instance business key described by the given expression.TaskQueryImpl
processInstanceId(java.lang.String processInstanceId)
Only select tasks for the given process instance id.TaskQuery
processInstanceIdIn(java.lang.String... processInstanceIds)
Only select tasks for the given process instance ids.TaskQuery
processVariableValueEquals(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.Object variableValue)
Only select tasks which have a variable with the given name, but with a different value than the passed value.TaskQuery
processVariableValueNotLike(java.lang.String variableName, java.lang.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
resetCachedCandidateGroups()
void
setFollowUpNullAccepted(boolean followUpNullAccepted)
void
setOrQueryActive()
TaskQuery
suspended()
Only select tasks which are suspended, because its process instance was suspended.TaskQuery
taskAssigned()
Only select tasks which have an assignee.TaskQueryImpl
taskAssignee(java.lang.String assignee)
Only select tasks which are assigned to the given user.TaskQuery
taskAssigneeExpression(java.lang.String assigneeExpression)
Only select tasks which are assigned to the user described by the given expression.TaskQuery
taskAssigneeIn(java.lang.String... assignees)
Only select tasks which are assigned to one of the given users.TaskQuery
taskAssigneeLike(java.lang.String assignee)
Only select tasks which are matching the given user.TaskQuery
taskAssigneeLikeExpression(java.lang.String assigneeLikeExpression)
Only select tasks which are assigned to the user described by the given expression.TaskQuery
taskAssigneeNotIn(java.lang.String... assignees)
Only select tasks which are not assigned to any of the given users.TaskQueryImpl
taskCandidateGroup(java.lang.String candidateGroup)
Only select tasks for which users in the given group are candidates.TaskQuery
taskCandidateGroupExpression(java.lang.String candidateGroupExpression)
Only select tasks for which users in the described group by the given expression are candidates.TaskQuery
taskCandidateGroupIn(java.util.List<java.lang.String> candidateGroups)
Only select tasks for which the 'candidateGroup' is one of the given groups.TaskQuery
taskCandidateGroupInExpression(java.lang.String candidateGroupsExpression)
Only select tasks for which the 'candidateGroup' is one of the described groups of the given expression.TaskQueryImpl
taskCandidateUser(java.lang.String candidateUser)
Only select tasks for which the given user or one of his groups is a candidate.TaskQuery
taskCandidateUserExpression(java.lang.String candidateUserExpression)
Only select tasks for which the described user by the given expression is a candidate.TaskQuery
taskCreatedAfter(java.util.Date after)
Only select tasks that are created after the given date.TaskQuery
taskCreatedAfterExpression(java.lang.String afterExpression)
Only select tasks that are created after the date resolved from the given expression.TaskQuery
taskCreatedBefore(java.util.Date before)
Only select tasks that are created before the given date.TaskQuery
taskCreatedBeforeExpression(java.lang.String beforeExpression)
Only select tasks that are created before the date resolved from the given expression.TaskQueryImpl
taskCreatedOn(java.util.Date createTime)
Only select tasks that are created on the given date.TaskQuery
taskCreatedOnExpression(java.lang.String createTimeExpression)
Only select tasks that are created on the date resolved from the given expression.TaskQuery
taskDefinitionKey(java.lang.String key)
Only select tasks with the given taskDefinitionKey.TaskQuery
taskDefinitionKeyIn(java.lang.String... taskDefinitionKeys)
Only select tasks which have one of the taskDefinitionKeys.TaskQuery
taskDefinitionKeyLike(java.lang.String keyLike)
Only select tasks with a taskDefinitionKey that match the given parameter.TaskQuery
taskDelegationState(DelegationState delegationState)
Only select tasks with the givenDelegationState
.TaskQueryImpl
taskDescription(java.lang.String description)
Only select tasks with the given description.TaskQuery
taskDescriptionLike(java.lang.String descriptionLike)
Only select tasks with a description matching the parameter .TaskQueryImpl
taskId(java.lang.String taskId)
Only select tasks with the given task id (in practice, there will be maximum one of this kind)TaskQueryImpl
taskIdIn(java.lang.String... taskIds)
Only select tasks with the given task ids.TaskQueryImpl
taskInvolvedUser(java.lang.String involvedUser)
Only select tasks for which there exist anIdentityLink
with the given userTaskQuery
taskInvolvedUserExpression(java.lang.String involvedUserExpression)
Only select tasks for which there exist anIdentityLink
with the described user by the given expressionTaskQuery
taskMaxPriority(java.lang.Integer maxPriority)
Only select tasks with the given priority or lower.TaskQuery
taskMinPriority(java.lang.Integer minPriority)
Only select tasks with the given priority or higher.TaskQueryImpl
taskName(java.lang.String name)
Only select tasks with the given name.TaskQuery
taskNameCaseInsensitive()
TaskQueryImpl
taskNameLike(java.lang.String nameLike)
Only select tasks with a name matching the parameter.TaskQuery
taskNameNotEqual(java.lang.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(java.lang.String nameNotLike)
Only select tasks with a name not matching the parameter.TaskQueryImpl
taskOwner(java.lang.String owner)
Only select tasks for which the given user is the owner.TaskQuery
taskOwnerExpression(java.lang.String ownerExpression)
Only select tasks for which the described user by the given expression is the owner.TaskQuery
taskParentTaskId(java.lang.String taskParentTaskId)
Select the tasks which are sub tasks of the given parent task.TaskQuery
taskPriority(java.lang.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(java.util.Date after)
Only select tasks that were updated after the given date.TaskQuery
taskUpdatedAfterExpression(java.lang.String afterExpression)
Only select tasks that were updated after the date resolved from the given expression.TaskQuery
taskVariableValueEquals(java.lang.String variableName, java.lang.Object variableValue)
Only select tasks which have a local task variable with the given name set to the given value.TaskQuery
taskVariableValueGreaterThan(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.String variableValue)
Only select tasks which have a local task variable with the given name matching the given value.TaskQuery
taskVariableValueNotEquals(java.lang.String variableName, java.lang.Object variableValue)
Only select tasks which have a local task variable with the given name, but with a different value than the passed value.TaskQuery
tenantIdIn(java.lang.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
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.-
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 Detail
-
taskId
protected java.lang.String taskId
-
taskIdIn
protected java.lang.String[] taskIdIn
-
name
protected java.lang.String name
-
nameNotEqual
protected java.lang.String nameNotEqual
-
nameLike
protected java.lang.String nameLike
-
nameNotLike
protected java.lang.String nameNotLike
-
description
protected java.lang.String description
-
descriptionLike
protected java.lang.String descriptionLike
-
priority
protected java.lang.Integer priority
-
minPriority
protected java.lang.Integer minPriority
-
maxPriority
protected java.lang.Integer maxPriority
-
assignee
protected java.lang.String assignee
-
assigneeLike
protected java.lang.String assigneeLike
-
assigneeIn
protected java.util.Set<java.lang.String> assigneeIn
-
assigneeNotIn
protected java.util.Set<java.lang.String> assigneeNotIn
-
involvedUser
protected java.lang.String involvedUser
-
owner
protected java.lang.String owner
-
unassigned
protected java.lang.Boolean unassigned
-
assigned
protected java.lang.Boolean assigned
-
noDelegationState
protected boolean noDelegationState
-
delegationState
protected DelegationState delegationState
-
candidateUser
protected java.lang.String candidateUser
-
candidateGroup
protected java.lang.String candidateGroup
-
candidateGroups
protected java.util.List<java.lang.String> candidateGroups
-
withCandidateGroups
protected java.lang.Boolean withCandidateGroups
-
withoutCandidateGroups
protected java.lang.Boolean withoutCandidateGroups
-
withCandidateUsers
protected java.lang.Boolean withCandidateUsers
-
withoutCandidateUsers
protected java.lang.Boolean withoutCandidateUsers
-
includeAssignedTasks
protected java.lang.Boolean includeAssignedTasks
-
processInstanceId
protected java.lang.String processInstanceId
-
processInstanceIdIn
protected java.lang.String[] processInstanceIdIn
-
executionId
protected java.lang.String executionId
-
activityInstanceIdIn
protected java.lang.String[] activityInstanceIdIn
-
createTime
protected java.util.Date createTime
-
createTimeBefore
protected java.util.Date createTimeBefore
-
createTimeAfter
protected java.util.Date createTimeAfter
-
updatedAfter
protected java.util.Date updatedAfter
-
key
protected java.lang.String key
-
keyLike
protected java.lang.String keyLike
-
taskDefinitionKeys
protected java.lang.String[] taskDefinitionKeys
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
processDefinitionKeys
protected java.lang.String[] processDefinitionKeys
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processDefinitionName
protected java.lang.String processDefinitionName
-
processDefinitionNameLike
protected java.lang.String processDefinitionNameLike
-
processInstanceBusinessKey
protected java.lang.String processInstanceBusinessKey
-
processInstanceBusinessKeys
protected java.lang.String[] processInstanceBusinessKeys
-
processInstanceBusinessKeyLike
protected java.lang.String processInstanceBusinessKeyLike
-
variables
protected java.util.List<TaskQueryVariableValue> variables
-
dueDate
protected java.util.Date dueDate
-
dueBefore
protected java.util.Date dueBefore
-
dueAfter
protected java.util.Date dueAfter
-
followUpDate
protected java.util.Date followUpDate
-
followUpBefore
protected java.util.Date followUpBefore
-
followUpNullAccepted
protected boolean followUpNullAccepted
-
followUpAfter
protected java.util.Date followUpAfter
-
excludeSubtasks
protected boolean excludeSubtasks
-
suspensionState
protected SuspensionState suspensionState
-
initializeFormKeys
protected boolean initializeFormKeys
-
taskNameCaseInsensitive
protected boolean taskNameCaseInsensitive
-
variableNamesIgnoreCase
protected java.lang.Boolean variableNamesIgnoreCase
-
variableValuesIgnoreCase
protected java.lang.Boolean variableValuesIgnoreCase
-
parentTaskId
protected java.lang.String parentTaskId
-
isWithoutTenantId
protected boolean isWithoutTenantId
-
isWithoutDueDate
protected boolean isWithoutDueDate
-
tenantIds
protected java.lang.String[] tenantIds
-
caseDefinitionKey
protected java.lang.String caseDefinitionKey
-
caseDefinitionId
protected java.lang.String caseDefinitionId
-
caseDefinitionName
protected java.lang.String caseDefinitionName
-
caseDefinitionNameLike
protected java.lang.String caseDefinitionNameLike
-
caseInstanceId
protected java.lang.String caseInstanceId
-
caseInstanceBusinessKey
protected java.lang.String caseInstanceBusinessKey
-
caseInstanceBusinessKeyLike
protected java.lang.String caseInstanceBusinessKeyLike
-
caseExecutionId
protected java.lang.String caseExecutionId
-
cachedCandidateGroups
protected java.util.List<java.lang.String> cachedCandidateGroups
-
cachedUserGroups
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> cachedUserGroups
-
queries
protected java.util.List<TaskQueryImpl> queries
-
isOrQueryActive
protected boolean isOrQueryActive
-
-
Constructor Detail
-
TaskQueryImpl
public TaskQueryImpl()
-
TaskQueryImpl
public TaskQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
taskId
public TaskQueryImpl taskId(java.lang.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)
-
taskIdIn
public TaskQueryImpl taskIdIn(java.lang.String... taskIds)
Description copied from interface:TaskQuery
Only select tasks with the given task ids.
-
taskName
public TaskQueryImpl taskName(java.lang.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.
-
taskNameLike
public TaskQueryImpl taskNameLike(java.lang.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 interfaceTaskQuery
-
taskDescription
public TaskQueryImpl taskDescription(java.lang.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 interfaceTaskQuery
-
taskDescriptionLike
public TaskQuery taskDescriptionLike(java.lang.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 interfaceTaskQuery
-
taskPriority
public TaskQuery taskPriority(java.lang.Integer priority)
Description copied from interface:TaskQuery
Only select tasks with the given priority.- Specified by:
taskPriority
in interfaceTaskQuery
-
taskMinPriority
public TaskQuery taskMinPriority(java.lang.Integer minPriority)
Description copied from interface:TaskQuery
Only select tasks with the given priority or higher.- Specified by:
taskMinPriority
in interfaceTaskQuery
-
taskMaxPriority
public TaskQuery taskMaxPriority(java.lang.Integer maxPriority)
Description copied from interface:TaskQuery
Only select tasks with the given priority or lower.- Specified by:
taskMaxPriority
in interfaceTaskQuery
-
taskAssignee
public TaskQueryImpl taskAssignee(java.lang.String assignee)
Description copied from interface:TaskQuery
Only select tasks which are assigned to the given user.- Specified by:
taskAssignee
in interfaceTaskQuery
-
taskAssigneeExpression
public TaskQuery taskAssigneeExpression(java.lang.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 interfaceTaskQuery
-
taskAssigneeLike
public TaskQuery taskAssigneeLike(java.lang.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 interfaceTaskQuery
-
taskAssigneeLikeExpression
public TaskQuery taskAssigneeLikeExpression(java.lang.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 interfaceTaskQuery
-
taskAssigneeIn
public TaskQuery taskAssigneeIn(java.lang.String... assignees)
Description copied from interface:TaskQuery
Only select tasks which are assigned to one of the given users.- Specified by:
taskAssigneeIn
in interfaceTaskQuery
-
taskAssigneeNotIn
public TaskQuery taskAssigneeNotIn(java.lang.String... assignees)
Description copied from interface:TaskQuery
Only select tasks which are not assigned to any of the given users.- Specified by:
taskAssigneeNotIn
in interfaceTaskQuery
-
taskOwner
public TaskQueryImpl taskOwner(java.lang.String owner)
Description copied from interface:TaskQuery
Only select tasks for which the given user is the owner.
-
taskOwnerExpression
public TaskQuery taskOwnerExpression(java.lang.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 interfaceTaskQuery
-
taskUnnassigned
@Deprecated public TaskQuery taskUnnassigned()
Deprecated.- Specified by:
taskUnnassigned
in interfaceTaskQuery
-
taskUnassigned
public TaskQuery taskUnassigned()
Description copied from interface:TaskQuery
Only select tasks which don't have an assignee.- Specified by:
taskUnassigned
in interfaceTaskQuery
-
taskAssigned
public TaskQuery taskAssigned()
Description copied from interface:TaskQuery
Only select tasks which have an assignee.- Specified by:
taskAssigned
in interfaceTaskQuery
-
taskDelegationState
public TaskQuery taskDelegationState(DelegationState delegationState)
Description copied from interface:TaskQuery
Only select tasks with the givenDelegationState
.- Specified by:
taskDelegationState
in interfaceTaskQuery
-
taskCandidateUser
public TaskQueryImpl taskCandidateUser(java.lang.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 interfaceTaskQuery
-
taskCandidateUserExpression
public TaskQuery taskCandidateUserExpression(java.lang.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 interfaceTaskQuery
-
taskInvolvedUser
public TaskQueryImpl taskInvolvedUser(java.lang.String involvedUser)
Description copied from interface:TaskQuery
Only select tasks for which there exist anIdentityLink
with the given user- Specified by:
taskInvolvedUser
in interfaceTaskQuery
-
taskInvolvedUserExpression
public TaskQuery taskInvolvedUserExpression(java.lang.String involvedUserExpression)
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
public TaskQuery withCandidateGroups()
Description copied from interface:TaskQuery
Only select tasks which have a candidate group- Specified by:
withCandidateGroups
in interfaceTaskQuery
-
withoutCandidateGroups
public TaskQuery withoutCandidateGroups()
Description copied from interface:TaskQuery
Only select tasks which have no candidate group- Specified by:
withoutCandidateGroups
in interfaceTaskQuery
-
withCandidateUsers
public TaskQuery withCandidateUsers()
Description copied from interface:TaskQuery
Only select tasks which have a candidate user- Specified by:
withCandidateUsers
in interfaceTaskQuery
-
withoutCandidateUsers
public TaskQuery withoutCandidateUsers()
Description copied from interface:TaskQuery
Only select tasks which have no candidate user- Specified by:
withoutCandidateUsers
in interfaceTaskQuery
-
taskCandidateGroup
public TaskQueryImpl taskCandidateGroup(java.lang.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 interfaceTaskQuery
-
taskCandidateGroupExpression
public TaskQuery taskCandidateGroupExpression(java.lang.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 interfaceTaskQuery
-
taskCandidateGroupIn
public TaskQuery taskCandidateGroupIn(java.util.List<java.lang.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 interfaceTaskQuery
-
taskCandidateGroupInExpression
public TaskQuery taskCandidateGroupInExpression(java.lang.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 interfaceTaskQuery
-
includeAssignedTasks
public TaskQuery 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
public TaskQuery includeAssignedTasksInternal()
-
processInstanceId
public TaskQueryImpl processInstanceId(java.lang.String processInstanceId)
Description copied from interface:TaskQuery
Only select tasks for the given process instance id.- Specified by:
processInstanceId
in interfaceTaskQuery
-
processInstanceIdIn
public TaskQuery processInstanceIdIn(java.lang.String... processInstanceIds)
Description copied from interface:TaskQuery
Only select tasks for the given process instance ids.- Specified by:
processInstanceIdIn
in interfaceTaskQuery
-
processInstanceBusinessKey
public TaskQueryImpl processInstanceBusinessKey(java.lang.String processInstanceBusinessKey)
Description copied from interface:TaskQuery
Only select tasks for the given process instance business key- Specified by:
processInstanceBusinessKey
in interfaceTaskQuery
-
processInstanceBusinessKeyExpression
public TaskQuery processInstanceBusinessKeyExpression(java.lang.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 interfaceTaskQuery
-
processInstanceBusinessKeyIn
public TaskQuery processInstanceBusinessKeyIn(java.lang.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 interfaceTaskQuery
-
processInstanceBusinessKeyLike
public TaskQuery processInstanceBusinessKeyLike(java.lang.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 interfaceTaskQuery
-
processInstanceBusinessKeyLikeExpression
public TaskQuery processInstanceBusinessKeyLikeExpression(java.lang.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
public TaskQueryImpl executionId(java.lang.String executionId)
Description copied from interface:TaskQuery
Only select tasks for the given execution.- Specified by:
executionId
in interfaceTaskQuery
-
activityInstanceIdIn
public TaskQuery activityInstanceIdIn(java.lang.String... activityInstanceIds)
Description copied from interface:TaskQuery
Only select task which have one of the activity instance ids.- Specified by:
activityInstanceIdIn
in interfaceTaskQuery
-
tenantIdIn
public TaskQuery tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:TaskQuery
Only select tasks with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceTaskQuery
-
withoutTenantId
public TaskQuery withoutTenantId()
Description copied from interface:TaskQuery
Only select tasks which have no tenant id.- Specified by:
withoutTenantId
in interfaceTaskQuery
-
taskCreatedOn
public TaskQueryImpl taskCreatedOn(java.util.Date createTime)
Description copied from interface:TaskQuery
Only select tasks that are created on the given date.- Specified by:
taskCreatedOn
in interfaceTaskQuery
-
taskCreatedOnExpression
public TaskQuery taskCreatedOnExpression(java.lang.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 interfaceTaskQuery
-
taskCreatedBefore
public TaskQuery taskCreatedBefore(java.util.Date before)
Description copied from interface:TaskQuery
Only select tasks that are created before the given date.- Specified by:
taskCreatedBefore
in interfaceTaskQuery
-
taskCreatedBeforeExpression
public TaskQuery taskCreatedBeforeExpression(java.lang.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 interfaceTaskQuery
-
taskCreatedAfter
public TaskQuery taskCreatedAfter(java.util.Date after)
Description copied from interface:TaskQuery
Only select tasks that are created after the given date.- Specified by:
taskCreatedAfter
in interfaceTaskQuery
-
taskCreatedAfterExpression
public TaskQuery taskCreatedAfterExpression(java.lang.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 interfaceTaskQuery
-
taskUpdatedAfter
public TaskQuery taskUpdatedAfter(java.util.Date after)
Description copied from interface:TaskQuery
Only select tasks that were updated after the given date.- Specified by:
taskUpdatedAfter
in interfaceTaskQuery
-
taskUpdatedAfterExpression
public TaskQuery taskUpdatedAfterExpression(java.lang.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 interfaceTaskQuery
-
taskDefinitionKey
public TaskQuery taskDefinitionKey(java.lang.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 interfaceTaskQuery
-
taskDefinitionKeyLike
public TaskQuery taskDefinitionKeyLike(java.lang.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 interfaceTaskQuery
-
taskDefinitionKeyIn
public TaskQuery taskDefinitionKeyIn(java.lang.String... taskDefinitionKeys)
Description copied from interface:TaskQuery
Only select tasks which have one of the taskDefinitionKeys.- Specified by:
taskDefinitionKeyIn
in interfaceTaskQuery
-
taskParentTaskId
public TaskQuery taskParentTaskId(java.lang.String taskParentTaskId)
Description copied from interface:TaskQuery
Select the tasks which are sub tasks of the given parent task.- Specified by:
taskParentTaskId
in interfaceTaskQuery
-
caseInstanceId
public TaskQuery caseInstanceId(java.lang.String caseInstanceId)
Description copied from interface:TaskQuery
Only select tasks for the given case instance id.- Specified by:
caseInstanceId
in interfaceTaskQuery
-
caseInstanceBusinessKey
public TaskQuery caseInstanceBusinessKey(java.lang.String caseInstanceBusinessKey)
Description copied from interface:TaskQuery
Only select tasks for the given case instance business key- Specified by:
caseInstanceBusinessKey
in interfaceTaskQuery
-
caseInstanceBusinessKeyLike
public TaskQuery caseInstanceBusinessKeyLike(java.lang.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 interfaceTaskQuery
-
caseExecutionId
public TaskQuery caseExecutionId(java.lang.String caseExecutionId)
Description copied from interface:TaskQuery
Only select tasks for the given case execution.- Specified by:
caseExecutionId
in interfaceTaskQuery
-
caseDefinitionId
public TaskQuery caseDefinitionId(java.lang.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 interfaceTaskQuery
-
caseDefinitionKey
public TaskQuery caseDefinitionKey(java.lang.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 interfaceTaskQuery
-
caseDefinitionName
public TaskQuery caseDefinitionName(java.lang.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 interfaceTaskQuery
-
caseDefinitionNameLike
public TaskQuery caseDefinitionNameLike(java.lang.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 interfaceTaskQuery
-
taskVariableValueEquals
public TaskQuery taskVariableValueEquals(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
taskVariableValueNotEquals
public TaskQuery taskVariableValueNotEquals(java.lang.String variableName, java.lang.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 andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
taskVariableValueNotEquals
in interfaceTaskQuery
-
taskVariableValueLike
public TaskQuery taskVariableValueLike(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
taskVariableValueGreaterThan
public TaskQuery taskVariableValueGreaterThan(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
taskVariableValueGreaterThanOrEquals
public TaskQuery taskVariableValueGreaterThanOrEquals(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
taskVariableValueLessThan
public TaskQuery taskVariableValueLessThan(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
taskVariableValueLessThanOrEquals
public TaskQuery taskVariableValueLessThanOrEquals(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
processVariableValueEquals
public TaskQuery processVariableValueEquals(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
processVariableValueNotEquals
public TaskQuery processVariableValueNotEquals(java.lang.String variableName, java.lang.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 andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueNotEquals
in interfaceTaskQuery
-
processVariableValueLike
public TaskQuery processVariableValueLike(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
processVariableValueNotLike
public TaskQuery processVariableValueNotLike(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
processVariableValueGreaterThan
public TaskQuery processVariableValueGreaterThan(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
processVariableValueGreaterThanOrEquals
public TaskQuery processVariableValueGreaterThanOrEquals(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
processVariableValueLessThan
public TaskQuery processVariableValueLessThan(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
processVariableValueLessThanOrEquals
public TaskQuery processVariableValueLessThanOrEquals(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
caseInstanceVariableValueEquals
public TaskQuery caseInstanceVariableValueEquals(java.lang.String variableName, java.lang.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 inProcessEngineConfiguration#getVariableSerializers()
. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueEquals
in interfaceTaskQuery
-
caseInstanceVariableValueNotEquals
public TaskQuery caseInstanceVariableValueNotEquals(java.lang.String variableName, java.lang.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 inProcessEngineConfiguration#getVariableSerializers()
. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueNotEquals
in interfaceTaskQuery
-
caseInstanceVariableValueLike
public TaskQuery caseInstanceVariableValueLike(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
caseInstanceVariableValueNotLike
public TaskQuery caseInstanceVariableValueNotLike(java.lang.String variableName, java.lang.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 interfaceTaskQuery
-
caseInstanceVariableValueGreaterThan
public TaskQuery caseInstanceVariableValueGreaterThan(java.lang.String variableName, java.lang.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 andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueGreaterThan
in interfaceTaskQuery
-
caseInstanceVariableValueGreaterThanOrEquals
public TaskQuery caseInstanceVariableValueGreaterThanOrEquals(java.lang.String variableName, java.lang.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 andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueGreaterThanOrEquals
in interfaceTaskQuery
-
caseInstanceVariableValueLessThan
public TaskQuery caseInstanceVariableValueLessThan(java.lang.String variableName, java.lang.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 andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueLessThan
in interfaceTaskQuery
-
caseInstanceVariableValueLessThanOrEquals
public TaskQuery caseInstanceVariableValueLessThanOrEquals(java.lang.String variableName, java.lang.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 andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueLessThanOrEquals
in interfaceTaskQuery
-
processDefinitionKey
public TaskQuery processDefinitionKey(java.lang.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 interfaceTaskQuery
-
processDefinitionKeyIn
public TaskQuery processDefinitionKeyIn(java.lang.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 interfaceTaskQuery
-
processDefinitionId
public TaskQuery processDefinitionId(java.lang.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 interfaceTaskQuery
-
processDefinitionName
public TaskQuery processDefinitionName(java.lang.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 interfaceTaskQuery
-
processDefinitionNameLike
public TaskQuery processDefinitionNameLike(java.lang.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 interfaceTaskQuery
-
dueDate
public TaskQuery dueDate(java.util.Date dueDate)
Description copied from interface:TaskQuery
Only select tasks with the given due date.
-
dueDateExpression
public TaskQuery dueDateExpression(java.lang.String dueDateExpression)
Description copied from interface:TaskQuery
Only select tasks with the described due date by the given expression.
- Specified by:
dueDateExpression
in interfaceTaskQuery
-
dueBefore
public TaskQuery dueBefore(java.util.Date dueBefore)
Description copied from interface:TaskQuery
Only select tasks which have a due date before the given date.
-
dueBeforeExpression
public TaskQuery dueBeforeExpression(java.lang.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 interfaceTaskQuery
-
dueAfter
public TaskQuery dueAfter(java.util.Date dueAfter)
Description copied from interface:TaskQuery
Only select tasks which have a due date after the given date.
-
dueAfterExpression
public TaskQuery dueAfterExpression(java.lang.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 interfaceTaskQuery
-
withoutDueDate
public TaskQuery withoutDueDate()
Description copied from interface:TaskQuery
Only select tasks which have no due date.- Specified by:
withoutDueDate
in interfaceTaskQuery
-
followUpDate
public TaskQuery followUpDate(java.util.Date followUpDate)
Description copied from interface:TaskQuery
Only select tasks with the given follow-up date.- Specified by:
followUpDate
in interfaceTaskQuery
-
followUpDateExpression
public TaskQuery followUpDateExpression(java.lang.String 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
public TaskQuery followUpBefore(java.util.Date 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
public TaskQuery followUpBeforeExpression(java.lang.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 interfaceTaskQuery
-
followUpBeforeOrNotExistent
public TaskQuery followUpBeforeOrNotExistent(java.util.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 interfaceTaskQuery
-
followUpBeforeOrNotExistentExpression
public TaskQuery followUpBeforeOrNotExistentExpression(java.lang.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 interfaceTaskQuery
-
setFollowUpNullAccepted
public void setFollowUpNullAccepted(boolean followUpNullAccepted)
-
followUpAfter
public TaskQuery followUpAfter(java.util.Date 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
public TaskQuery followUpAfterExpression(java.lang.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 interfaceTaskQuery
-
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 interfaceTaskQuery
-
active
public TaskQuery active()
Description copied from interface:TaskQuery
Only select tasks which are active (ie. not suspended)
-
suspended
public TaskQuery suspended()
Description copied from interface:TaskQuery
Only select tasks which are suspended, because its process instance was suspended.
-
initializeFormKeys
public TaskQuery 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
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 classAbstractQuery<TaskQuery,Task>
- Returns:
true
if the query does have excluding conditions,false
otherwise
-
getCandidateGroups
public java.util.List<java.lang.String> getCandidateGroups()
-
isWithCandidateGroups
public java.lang.Boolean isWithCandidateGroups()
-
isWithCandidateUsers
public java.lang.Boolean isWithCandidateUsers()
-
isWithCandidateGroupsInternal
public java.lang.Boolean isWithCandidateGroupsInternal()
-
isWithoutCandidateGroups
public java.lang.Boolean isWithoutCandidateGroups()
-
isWithoutCandidateUsers
public java.lang.Boolean isWithoutCandidateUsers()
-
isWithoutCandidateGroupsInternal
public java.lang.Boolean isWithoutCandidateGroupsInternal()
-
getCandidateGroupsInternal
public java.util.List<java.lang.String> getCandidateGroupsInternal()
-
getGroupsForCandidateUser
protected java.util.List<java.lang.String> getGroupsForCandidateUser(java.lang.String candidateUser)
-
getCachedUserGroups
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> getCachedUserGroups()
-
ensureOrExpressionsEvaluated
protected void ensureOrExpressionsEvaluated()
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
-
ensureNotInOrQuery
protected void ensureNotInOrQuery(java.lang.String methodName)
-
addVariable
public void addVariable(java.lang.String name, java.lang.Object value, QueryOperator operator, boolean isTaskVariable, boolean isProcessInstanceVariable)
-
addVariable
protected void addVariable(TaskQueryVariableValue taskQueryVariableValue)
-
orderByTaskId
public TaskQuery orderByTaskId()
Description copied from interface:TaskQuery
Order by task id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskId
in interfaceTaskQuery
-
orderByTaskName
public TaskQuery orderByTaskName()
Description copied from interface:TaskQuery
Order by task name (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskName
in interfaceTaskQuery
-
orderByTaskNameCaseInsensitive
public TaskQuery 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
public TaskQuery orderByTaskDescription()
Description copied from interface:TaskQuery
Order by description (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskDescription
in interfaceTaskQuery
-
orderByTaskPriority
public TaskQuery orderByTaskPriority()
Description copied from interface:TaskQuery
Order by priority (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskPriority
in interfaceTaskQuery
-
orderByProcessInstanceId
public TaskQuery 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
public TaskQuery 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
public TaskQuery orderByExecutionId()
Description copied from interface:TaskQuery
Order by execution id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByExecutionId
in interfaceTaskQuery
-
orderByTenantId
public TaskQuery 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
public TaskQuery 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
public TaskQuery orderByTaskAssignee()
Description copied from interface:TaskQuery
Order by assignee (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskAssignee
in interfaceTaskQuery
-
orderByTaskCreateTime
public TaskQuery 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
public TaskQuery 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
public TaskQuery orderByDueDate()
Description copied from interface:TaskQuery
Order by due date (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDueDate
in interfaceTaskQuery
-
orderByFollowUpDate
public TaskQuery 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
public TaskQuery orderByProcessVariable(java.lang.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 withnull
values is database-specific.- Specified by:
orderByProcessVariable
in interfaceTaskQuery
-
orderByExecutionVariable
public TaskQuery orderByExecutionVariable(java.lang.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 withnull
values is database-specific.- Specified by:
orderByExecutionVariable
in interfaceTaskQuery
-
orderByTaskVariable
public TaskQuery orderByTaskVariable(java.lang.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 withnull
values is database-specific.- Specified by:
orderByTaskVariable
in interfaceTaskQuery
-
orderByCaseExecutionVariable
public TaskQuery orderByCaseExecutionVariable(java.lang.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 withnull
values is database-specific.- Specified by:
orderByCaseExecutionVariable
in interfaceTaskQuery
-
orderByCaseInstanceVariable
public TaskQuery orderByCaseInstanceVariable(java.lang.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 withnull
values is database-specific.- Specified by:
orderByCaseInstanceVariable
in interfaceTaskQuery
-
executeList
public java.util.List<Task> executeList(CommandContext commandContext, Page page)
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
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<TaskQuery,Task>
-
decideAuthorizationJoinType
protected void decideAuthorizationJoinType(CommandContext commandContext)
-
resetCachedCandidateGroups
protected void resetCachedCandidateGroups()
-
getName
public java.lang.String getName()
-
getNameNotEqual
public java.lang.String getNameNotEqual()
-
getNameLike
public java.lang.String getNameLike()
-
getNameNotLike
public java.lang.String getNameNotLike()
-
getAssignee
public java.lang.String getAssignee()
-
getAssigneeLike
public java.lang.String getAssigneeLike()
-
getAssigneeIn
public java.util.Set<java.lang.String> getAssigneeIn()
-
getAssigneeNotIn
public java.util.Set<java.lang.String> getAssigneeNotIn()
-
getInvolvedUser
public java.lang.String getInvolvedUser()
-
getOwner
public java.lang.String getOwner()
-
isAssigned
public java.lang.Boolean isAssigned()
-
isAssignedInternal
public java.lang.Boolean isAssignedInternal()
-
isUnassigned
public boolean isUnassigned()
-
isUnassignedInternal
public java.lang.Boolean isUnassignedInternal()
-
getDelegationState
public DelegationState getDelegationState()
-
isNoDelegationState
public boolean isNoDelegationState()
-
getDelegationStateString
public java.lang.String getDelegationStateString()
-
getCandidateUser
public java.lang.String getCandidateUser()
-
getCandidateGroup
public java.lang.String getCandidateGroup()
-
isIncludeAssignedTasks
public boolean isIncludeAssignedTasks()
-
isIncludeAssignedTasksInternal
public java.lang.Boolean isIncludeAssignedTasksInternal()
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
-
getProcessInstanceIdIn
public java.lang.String[] getProcessInstanceIdIn()
-
getExecutionId
public java.lang.String getExecutionId()
-
getActivityInstanceIdIn
public java.lang.String[] getActivityInstanceIdIn()
-
getTenantIds
public java.lang.String[] getTenantIds()
-
getTaskId
public java.lang.String getTaskId()
-
getTaskIdIn
public java.lang.String[] getTaskIdIn()
-
getDescription
public java.lang.String getDescription()
-
getDescriptionLike
public java.lang.String getDescriptionLike()
-
getPriority
public java.lang.Integer getPriority()
-
getMinPriority
public java.lang.Integer getMinPriority()
-
getMaxPriority
public java.lang.Integer getMaxPriority()
-
getCreateTime
public java.util.Date getCreateTime()
-
getCreateTimeBefore
public java.util.Date getCreateTimeBefore()
-
getCreateTimeAfter
public java.util.Date getCreateTimeAfter()
-
getUpdatedAfter
public java.util.Date getUpdatedAfter()
-
getKey
public java.lang.String getKey()
-
getKeys
public java.lang.String[] getKeys()
-
getKeyLike
public java.lang.String getKeyLike()
-
getParentTaskId
public java.lang.String getParentTaskId()
-
getVariables
public java.util.List<TaskQueryVariableValue> getVariables()
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
-
getProcessDefinitionKeys
public java.lang.String[] getProcessDefinitionKeys()
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
getProcessDefinitionName
public java.lang.String getProcessDefinitionName()
-
getProcessDefinitionNameLike
public java.lang.String getProcessDefinitionNameLike()
-
getProcessInstanceBusinessKey
public java.lang.String getProcessInstanceBusinessKey()
-
getProcessInstanceBusinessKeys
public java.lang.String[] getProcessInstanceBusinessKeys()
-
getProcessInstanceBusinessKeyLike
public java.lang.String getProcessInstanceBusinessKeyLike()
-
getDueDate
public java.util.Date getDueDate()
-
getDueBefore
public java.util.Date getDueBefore()
-
getDueAfter
public java.util.Date getDueAfter()
-
getFollowUpDate
public java.util.Date getFollowUpDate()
-
getFollowUpBefore
public java.util.Date getFollowUpBefore()
-
getFollowUpAfter
public java.util.Date getFollowUpAfter()
-
isExcludeSubtasks
public boolean isExcludeSubtasks()
-
getSuspensionState
public SuspensionState getSuspensionState()
-
getCaseInstanceId
public java.lang.String getCaseInstanceId()
-
getCaseInstanceBusinessKey
public java.lang.String getCaseInstanceBusinessKey()
-
getCaseInstanceBusinessKeyLike
public java.lang.String getCaseInstanceBusinessKeyLike()
-
getCaseExecutionId
public java.lang.String getCaseExecutionId()
-
getCaseDefinitionId
public java.lang.String getCaseDefinitionId()
-
getCaseDefinitionKey
public java.lang.String getCaseDefinitionKey()
-
getCaseDefinitionName
public java.lang.String getCaseDefinitionName()
-
getCaseDefinitionNameLike
public java.lang.String getCaseDefinitionNameLike()
-
isInitializeFormKeys
public boolean isInitializeFormKeys()
-
isTaskNameCaseInsensitive
public boolean isTaskNameCaseInsensitive()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
isWithoutDueDate
public boolean isWithoutDueDate()
-
getTaskDefinitionKeys
public java.lang.String[] getTaskDefinitionKeys()
-
getIsTenantIdSet
public boolean getIsTenantIdSet()
-
isVariableNamesIgnoreCase
public java.lang.Boolean isVariableNamesIgnoreCase()
-
isVariableValuesIgnoreCase
public java.lang.Boolean isVariableValuesIgnoreCase()
-
getQueries
public java.util.List<TaskQueryImpl> getQueries()
-
isOrQueryActive
public boolean isOrQueryActive()
-
addOrQuery
public void addOrQuery(TaskQueryImpl orQuery)
-
setOrQueryActive
public void setOrQueryActive()
-
extend
public TaskQuery extend(TaskQuery extending)
- Overrides:
extend
in classAbstractQuery<TaskQuery,Task>
-
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(java.lang.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 interfaceTaskQuery
-
taskNameNotLike
public TaskQuery taskNameNotLike(java.lang.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 interfaceTaskQuery
-
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.
-
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.
-
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 interfaceTaskQuery
-
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 interfaceTaskQuery
-
-