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
-
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 classTaskQueryImpl.TaskQueryVariableValueComparable-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
-
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 TaskQueryactive()Only select tasks which are active (ie.TaskQueryactivityInstanceIdIn(String... activityInstanceIds)Only select task which have one of the activity instance ids.voidaddOrQuery(TaskQueryImpl orQuery)voidaddVariable(String name, Object value, QueryOperator operator, boolean isTaskVariable, boolean isProcessInstanceVariable)protected voidaddVariable(TaskQueryVariableValue taskQueryVariableValue)TaskQuerycaseDefinitionId(String caseDefinitionId)Only select tasks which are part of a case instance which has the given case definition id.TaskQuerycaseDefinitionKey(String caseDefinitionKey)Only select tasks which are part of a case instance which has the given case definition key.TaskQuerycaseDefinitionName(String caseDefinitionName)Only select tasks which are part of a case instance which has the given case definition name.TaskQuerycaseDefinitionNameLike(String caseDefinitionNameLike)Only select tasks which are part of a case instance which case definition name is like the given parameter.TaskQuerycaseExecutionId(String caseExecutionId)Only select tasks for the given case execution.TaskQuerycaseInstanceBusinessKey(String caseInstanceBusinessKey)Only select tasks for the given case instance business keyTaskQuerycaseInstanceBusinessKeyLike(String caseInstanceBusinessKeyLike)Only select tasks matching the given case instance business key.TaskQuerycaseInstanceId(String caseInstanceId)Only select tasks for the given case instance id.TaskQuerycaseInstanceVariableValueEquals(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.TaskQuerycaseInstanceVariableValueGreaterThan(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.TaskQuerycaseInstanceVariableValueGreaterThanOrEquals(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.TaskQuerycaseInstanceVariableValueLessThan(String variableName, Object variableValue)Only select tasks which are part of a case instance that have a variable value less than the passed value.TaskQuerycaseInstanceVariableValueLessThanOrEquals(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.TaskQuerycaseInstanceVariableValueLike(String variableName, String variableValue)Only select tasks which are part of a case instance that have a variable value like the given value.TaskQuerycaseInstanceVariableValueNotEquals(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.TaskQuerycaseInstanceVariableValueNotLike(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 voiddecideAuthorizationJoinType(CommandContext commandContext)TaskQuerydueAfter(Date dueAfter)Only select tasks which have a due date after the given date.TaskQuerydueAfterExpression(String dueDateExpression)Only select tasks which have a due date after the described date by the given expression.TaskQuerydueBefore(Date dueBefore)Only select tasks which have a due date before the given date.TaskQuerydueBeforeExpression(String dueDate)Only select tasks which have a due date before the described date by the given expression.TaskQuerydueDate(Date dueDate)Only select tasks with the given due date.TaskQuerydueDateExpression(String dueDateExpression)Only select tasks with the described due date by the given expression.TaskQueryendOr()endOr() terminates an OR query on which an arbitrary amount of filter criteria were applied.protected voidensureOrExpressionsEvaluated()protected voidensureVariablesInitialized()TaskQueryexcludeSubtasks()Only select tasks that have no parent (i.e.longexecuteCount(CommandContext commandContext)List<Task>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.TaskQueryImplexecutionId(String executionId)Only select tasks for the given execution.TaskQueryextend(TaskQuery extending)TaskQueryfollowUpAfter(Date followUpAfter)Only select tasks which have a follow-up date after the given date.TaskQueryfollowUpAfterExpression(String followUpAfterExpression)Only select tasks which have a follow-up date after the described date by the given expression.TaskQueryfollowUpBefore(Date followUpBefore)Only select tasks which have a follow-up date before the given date.TaskQueryfollowUpBeforeExpression(String followUpBeforeExpression)Only select tasks which have a follow-up date before the described date by the given expression.TaskQueryfollowUpBeforeOrNotExistent(Date followUpDate)Only select tasks which have no follow-up date or a follow-up date before the given date.TaskQueryfollowUpBeforeOrNotExistentExpression(String followUpDateExpression)Only select tasks which have no follow-up date or a follow-up date before the described date by the given expression.TaskQueryfollowUpDate(Date followUpDate)Only select tasks with the given follow-up date.TaskQueryfollowUpDateExpression(String followUpDateExpression)Only select tasks with the described follow-up date by the given expression.String[]getActivityInstanceIdIn()StringgetAssignee()Set<String>getAssigneeIn()StringgetAssigneeLike()Set<String>getAssigneeNotIn()protected Map<String,List<String>>getCachedUserGroups()StringgetCandidateGroup()List<String>getCandidateGroups()List<String>getCandidateGroupsInternal()StringgetCandidateUser()StringgetCaseDefinitionId()StringgetCaseDefinitionKey()StringgetCaseDefinitionName()StringgetCaseDefinitionNameLike()StringgetCaseExecutionId()StringgetCaseInstanceBusinessKey()StringgetCaseInstanceBusinessKeyLike()StringgetCaseInstanceId()DategetCreateTime()DategetCreateTimeAfter()DategetCreateTimeBefore()DelegationStategetDelegationState()StringgetDelegationStateString()StringgetDescription()StringgetDescriptionLike()DategetDueAfter()DategetDueBefore()DategetDueDate()StringgetExecutionId()DategetFollowUpAfter()DategetFollowUpBefore()DategetFollowUpDate()protected List<String>getGroupsForCandidateUser(String candidateUser)StringgetInvolvedUser()booleangetIsTenantIdSet()StringgetKey()StringgetKeyLike()String[]getKeys()IntegergetMaxPriority()IntegergetMinPriority()StringgetName()StringgetNameLike()StringgetNameNotEqual()StringgetNameNotLike()StringgetOwner()StringgetParentTaskId()IntegergetPriority()StringgetProcessDefinitionId()StringgetProcessDefinitionKey()String[]getProcessDefinitionKeys()StringgetProcessDefinitionName()StringgetProcessDefinitionNameLike()StringgetProcessInstanceBusinessKey()StringgetProcessInstanceBusinessKeyLike()String[]getProcessInstanceBusinessKeys()StringgetProcessInstanceId()String[]getProcessInstanceIdIn()List<TaskQueryImpl>getQueries()SuspensionStategetSuspensionState()String[]getTaskDefinitionKeys()StringgetTaskId()String[]getTaskIdIn()String[]getTenantIds()List<TaskQueryVariableValue>getVariables()protected booleanhasExcludingConditions()Whether or not the query has excluding conditions.TaskQueryincludeAssignedTasks()Select both assigned and not assigned tasks for candidate user or group queries.TaskQueryincludeAssignedTasksInternal()TaskQueryinitializeFormKeys()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).BooleanisAssigned()BooleanisAssignedInternal()booleanisExcludeSubtasks()booleanisFollowUpNullAccepted()booleanisIncludeAssignedTasks()BooleanisIncludeAssignedTasksInternal()booleanisInitializeFormKeys()booleanisNoDelegationState()booleanisOrQueryActive()booleanisQueryForProcessTasksOnly()booleanisTaskNameCaseInsensitive()booleanisUnassigned()BooleanisUnassignedInternal()BooleanisVariableNamesIgnoreCase()BooleanisVariableValuesIgnoreCase()BooleanisWithCandidateGroups()BooleanisWithCandidateGroupsInternal()BooleanisWithCandidateUsers()BooleanisWithoutCandidateGroups()BooleanisWithoutCandidateGroupsInternal()BooleanisWithoutCandidateUsers()booleanisWithoutDueDate()booleanisWithoutTenantId()TaskQuerymatchVariableNamesIgnoreCase()All queries for task-, process- and case-variables will match the variable names in a case-insensitive way.TaskQuerymatchVariableValuesIgnoreCase()All queries for task-, process- and case-variables will match the variable values in a case-insensitive way.protected voidmergeVariables(TaskQueryImpl extendedQuery, TaskQueryImpl extendingQuery)Simple implementation of variable merging.TaskQueryor()After calling or(), a chain of several filter criteria could follow.TaskQueryorderByCaseExecutionId()Order by case execution id (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByCaseExecutionVariable(String variableName, ValueType valueType)Order by a task variable value of a certain type.TaskQueryorderByCaseInstanceId()Order by case instance id (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByCaseInstanceVariable(String variableName, ValueType valueType)Order by a task variable value of a certain type.TaskQueryorderByDueDate()Order by due date (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByExecutionId()Order by execution id (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByExecutionVariable(String variableName, ValueType valueType)Order by an execution variable value of a certain type.TaskQueryorderByFollowUpDate()Order by follow-up date (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByProcessInstanceId()Order by process instance id (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByProcessVariable(String variableName, ValueType valueType)Order by a process instance variable value of a certain type.TaskQueryorderByTaskAssignee()Order by assignee (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByTaskCreateTime()Order by the time on which the tasks were created (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByTaskDescription()Order by description (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByTaskId()Order by task id (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByTaskName()Order by task name (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByTaskNameCaseInsensitive()Order by task name case insensitive (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByTaskPriority()Order by priority (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByTaskVariable(String variableName, ValueType valueType)Order by a task variable value of a certain type.TaskQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryprocessDefinitionId(String processDefinitionId)Only select tasks which are part of a process instance which has the given process definition id.TaskQueryprocessDefinitionKey(String processDefinitionKey)Only select tasks which are part of a process instance which has the given process definition key.TaskQueryprocessDefinitionKeyIn(String... processDefinitionKeys)Only select tasks which are part of a process instance which has one of the given process definition keys.TaskQueryprocessDefinitionName(String processDefinitionName)Only select tasks which are part of a process instance which has the given process definition name.TaskQueryprocessDefinitionNameLike(String processDefinitionName)Only select tasks which are part of a process instance which process definition name is like the given parameter.TaskQueryImplprocessInstanceBusinessKey(String processInstanceBusinessKey)Only select tasks for the given process instance business keyTaskQueryprocessInstanceBusinessKeyExpression(String processInstanceBusinessKeyExpression)Only select tasks for the given process instance business key described by the given expressionTaskQueryprocessInstanceBusinessKeyIn(String... processInstanceBusinessKeys)Only select tasks for any of the given the given process instance business keys.TaskQueryprocessInstanceBusinessKeyLike(String processInstanceBusinessKey)Only select tasks matching the given process instance business key.TaskQueryprocessInstanceBusinessKeyLikeExpression(String processInstanceBusinessKeyLikeExpression)Only select tasks matching the given process instance business key described by the given expression.TaskQueryImplprocessInstanceId(String processInstanceId)Only select tasks for the given process instance id.TaskQueryprocessInstanceIdIn(String... processInstanceIds)Only select tasks for the given process instance ids.TaskQueryprocessVariableValueEquals(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.TaskQueryprocessVariableValueGreaterThan(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.TaskQueryprocessVariableValueGreaterThanOrEquals(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.TaskQueryprocessVariableValueLessThan(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.TaskQueryprocessVariableValueLessThanOrEquals(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.TaskQueryprocessVariableValueLike(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.TaskQueryprocessVariableValueNotEquals(String variableName, Object variableValue)Only select tasks which have a variable with the given name, but with a different value than the passed value.TaskQueryprocessVariableValueNotLike(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 voidresetCachedCandidateGroups()voidsetFollowUpNullAccepted(boolean followUpNullAccepted)voidsetOrQueryActive()TaskQuerysuspended()Only select tasks which are suspended, because its process instance was suspended.TaskQuerytaskAssigned()Only select tasks which have an assignee.TaskQueryImpltaskAssignee(String assignee)Only select tasks which are assigned to the given user.TaskQuerytaskAssigneeExpression(String assigneeExpression)Only select tasks which are assigned to the user described by the given expression.TaskQuerytaskAssigneeIn(String... assignees)Only select tasks which are assigned to one of the given users.TaskQuerytaskAssigneeLike(String assignee)Only select tasks which are matching the given user.TaskQuerytaskAssigneeLikeExpression(String assigneeLikeExpression)Only select tasks which are assigned to the user described by the given expression.TaskQuerytaskAssigneeNotIn(String... assignees)Only select tasks which are not assigned to any of the given users.TaskQueryImpltaskCandidateGroup(String candidateGroup)Only select tasks for which users in the given group are candidates.TaskQuerytaskCandidateGroupExpression(String candidateGroupExpression)Only select tasks for which users in the described group by the given expression are candidates.TaskQuerytaskCandidateGroupIn(List<String> candidateGroups)Only select tasks for which the 'candidateGroup' is one of the given groups.TaskQuerytaskCandidateGroupInExpression(String candidateGroupsExpression)Only select tasks for which the 'candidateGroup' is one of the described groups of the given expression.TaskQueryImpltaskCandidateUser(String candidateUser)Only select tasks for which the given user or one of his groups is a candidate.TaskQuerytaskCandidateUserExpression(String candidateUserExpression)Only select tasks for which the described user by the given expression is a candidate.TaskQuerytaskCreatedAfter(Date after)Only select tasks that are created after the given date.TaskQuerytaskCreatedAfterExpression(String afterExpression)Only select tasks that are created after the described date by the given expression.TaskQuerytaskCreatedBefore(Date before)Only select tasks that are created before the given date.TaskQuerytaskCreatedBeforeExpression(String beforeExpression)Only select tasks that are created before the described date by the given expression.TaskQueryImpltaskCreatedOn(Date createTime)Only select tasks that are created on the given date.TaskQuerytaskCreatedOnExpression(String createTimeExpression)Only select tasks that are created on the described date by the given expression.TaskQuerytaskDefinitionKey(String key)Only select tasks with the given taskDefinitionKey.TaskQuerytaskDefinitionKeyIn(String... taskDefinitionKeys)Only select tasks which have one of the taskDefinitionKeys.TaskQuerytaskDefinitionKeyLike(String keyLike)Only select tasks with a taskDefinitionKey that match the given parameter.TaskQuerytaskDelegationState(DelegationState delegationState)Only select tasks with the givenDelegationState.TaskQueryImpltaskDescription(String description)Only select tasks with the given description.TaskQuerytaskDescriptionLike(String descriptionLike)Only select tasks with a description matching the parameter .TaskQueryImpltaskId(String taskId)Only select tasks with the given task id (in practice, there will be maximum one of this kind)TaskQueryImpltaskIdIn(String... taskIds)Only select tasks with the given task ids.TaskQueryImpltaskInvolvedUser(String involvedUser)Only select tasks for which there exist anIdentityLinkwith the given userTaskQuerytaskInvolvedUserExpression(String involvedUserExpression)Only select tasks for which there exist anIdentityLinkwith the described user by the given expressionTaskQuerytaskMaxPriority(Integer maxPriority)Only select tasks with the given priority or lower.TaskQuerytaskMinPriority(Integer minPriority)Only select tasks with the given priority or higher.TaskQueryImpltaskName(String name)Only select tasks with the given name.TaskQuerytaskNameCaseInsensitive()TaskQueryImpltaskNameLike(String nameLike)Only select tasks with a name matching the parameter.TaskQuerytaskNameNotEqual(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.TaskQuerytaskNameNotLike(String nameNotLike)Only select tasks with a name not matching the parameter.TaskQueryImpltaskOwner(String owner)Only select tasks for which the given user is the owner.TaskQuerytaskOwnerExpression(String ownerExpression)Only select tasks for which the described user by the given expression is the owner.TaskQuerytaskParentTaskId(String taskParentTaskId)Select the tasks which are sub tasks of the given parent task.TaskQuerytaskPriority(Integer priority)Only select tasks with the given priority.TaskQuerytaskUnassigned()Only select tasks which don't have an assignee.TaskQuerytaskUnnassigned()Deprecated.TaskQuerytaskVariableValueEquals(String variableName, Object variableValue)Only select tasks which have a local task variable with the given name set to the given value.TaskQuerytaskVariableValueGreaterThan(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.TaskQuerytaskVariableValueGreaterThanOrEquals(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.TaskQuerytaskVariableValueLessThan(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.TaskQuerytaskVariableValueLessThanOrEquals(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.TaskQuerytaskVariableValueLike(String variableName, String variableValue)Only select tasks which have a local task variable with the given name matching the given value.TaskQuerytaskVariableValueNotEquals(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.TaskQuerytenantIdIn(String... tenantIds)Only select tasks with one of the given tenant ids.TaskQuerywithCandidateGroups()Only select tasks which have a candidate groupTaskQuerywithCandidateUsers()Only select tasks which have a candidate userTaskQuerywithoutCandidateGroups()Only select tasks which have no candidate groupTaskQuerywithoutCandidateUsers()Only select tasks which have no candidate userTaskQuerywithoutDueDate()Only select tasks which have no due date.TaskQuerywithoutTenantId()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 String taskId
-
taskIdIn
protected String[] taskIdIn
-
name
protected String name
-
nameNotEqual
protected String nameNotEqual
-
nameLike
protected String nameLike
-
nameNotLike
protected String nameNotLike
-
description
protected String description
-
descriptionLike
protected String descriptionLike
-
priority
protected Integer priority
-
minPriority
protected Integer minPriority
-
maxPriority
protected Integer maxPriority
-
assignee
protected String assignee
-
assigneeLike
protected String assigneeLike
-
involvedUser
protected String involvedUser
-
owner
protected String owner
-
unassigned
protected Boolean unassigned
-
assigned
protected Boolean assigned
-
noDelegationState
protected boolean noDelegationState
-
delegationState
protected DelegationState delegationState
-
candidateUser
protected String candidateUser
-
candidateGroup
protected String candidateGroup
-
withCandidateGroups
protected Boolean withCandidateGroups
-
withoutCandidateGroups
protected Boolean withoutCandidateGroups
-
withCandidateUsers
protected Boolean withCandidateUsers
-
withoutCandidateUsers
protected Boolean withoutCandidateUsers
-
includeAssignedTasks
protected Boolean includeAssignedTasks
-
processInstanceId
protected String processInstanceId
-
processInstanceIdIn
protected String[] processInstanceIdIn
-
executionId
protected String executionId
-
activityInstanceIdIn
protected String[] activityInstanceIdIn
-
createTime
protected Date createTime
-
createTimeBefore
protected Date createTimeBefore
-
createTimeAfter
protected Date createTimeAfter
-
key
protected String key
-
keyLike
protected String keyLike
-
taskDefinitionKeys
protected String[] taskDefinitionKeys
-
processDefinitionKey
protected String processDefinitionKey
-
processDefinitionKeys
protected String[] processDefinitionKeys
-
processDefinitionId
protected String processDefinitionId
-
processDefinitionName
protected String processDefinitionName
-
processDefinitionNameLike
protected String processDefinitionNameLike
-
processInstanceBusinessKey
protected String processInstanceBusinessKey
-
processInstanceBusinessKeys
protected String[] processInstanceBusinessKeys
-
processInstanceBusinessKeyLike
protected String processInstanceBusinessKeyLike
-
variables
protected List<TaskQueryVariableValue> variables
-
dueDate
protected Date dueDate
-
dueBefore
protected Date dueBefore
-
dueAfter
protected Date dueAfter
-
followUpDate
protected Date followUpDate
-
followUpBefore
protected Date followUpBefore
-
followUpNullAccepted
protected boolean followUpNullAccepted
-
followUpAfter
protected Date followUpAfter
-
excludeSubtasks
protected boolean excludeSubtasks
-
suspensionState
protected SuspensionState suspensionState
-
initializeFormKeys
protected boolean initializeFormKeys
-
taskNameCaseInsensitive
protected boolean taskNameCaseInsensitive
-
variableNamesIgnoreCase
protected Boolean variableNamesIgnoreCase
-
variableValuesIgnoreCase
protected Boolean variableValuesIgnoreCase
-
parentTaskId
protected String parentTaskId
-
isWithoutTenantId
protected boolean isWithoutTenantId
-
isWithoutDueDate
protected boolean isWithoutDueDate
-
tenantIds
protected String[] tenantIds
-
caseDefinitionKey
protected String caseDefinitionKey
-
caseDefinitionId
protected String caseDefinitionId
-
caseDefinitionName
protected String caseDefinitionName
-
caseDefinitionNameLike
protected String caseDefinitionNameLike
-
caseInstanceId
protected String caseInstanceId
-
caseInstanceBusinessKey
protected String caseInstanceBusinessKey
-
caseInstanceBusinessKeyLike
protected String caseInstanceBusinessKeyLike
-
caseExecutionId
protected String caseExecutionId
-
queries
protected List<TaskQueryImpl> queries
-
isOrQueryActive
protected boolean isOrQueryActive
-
-
Constructor Detail
-
TaskQueryImpl
public TaskQueryImpl()
-
TaskQueryImpl
public TaskQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
taskId
public TaskQueryImpl taskId(String taskId)
Description copied from interface:TaskQueryOnly select tasks with the given task id (in practice, there will be maximum one of this kind)
-
taskIdIn
public TaskQueryImpl taskIdIn(String... taskIds)
Description copied from interface:TaskQueryOnly select tasks with the given task ids.
-
taskName
public TaskQueryImpl taskName(String name)
Description copied from interface:TaskQueryOnly select tasks with the given name. The query will match the names of tasks in a case-insensitive way.
-
taskNameLike
public TaskQueryImpl taskNameLike(String nameLike)
Description copied from interface:TaskQueryOnly 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:
taskNameLikein interfaceTaskQuery
-
taskDescription
public TaskQueryImpl taskDescription(String description)
Description copied from interface:TaskQueryOnly select tasks with the given description. The query will match the descriptions of tasks in a case-insensitive way.- Specified by:
taskDescriptionin interfaceTaskQuery
-
taskDescriptionLike
public TaskQuery taskDescriptionLike(String descriptionLike)
Description copied from interface:TaskQueryOnly 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:
taskDescriptionLikein interfaceTaskQuery
-
taskPriority
public TaskQuery taskPriority(Integer priority)
Description copied from interface:TaskQueryOnly select tasks with the given priority.- Specified by:
taskPriorityin interfaceTaskQuery
-
taskMinPriority
public TaskQuery taskMinPriority(Integer minPriority)
Description copied from interface:TaskQueryOnly select tasks with the given priority or higher.- Specified by:
taskMinPriorityin interfaceTaskQuery
-
taskMaxPriority
public TaskQuery taskMaxPriority(Integer maxPriority)
Description copied from interface:TaskQueryOnly select tasks with the given priority or lower.- Specified by:
taskMaxPriorityin interfaceTaskQuery
-
taskAssignee
public TaskQueryImpl taskAssignee(String assignee)
Description copied from interface:TaskQueryOnly select tasks which are assigned to the given user.- Specified by:
taskAssigneein interfaceTaskQuery
-
taskAssigneeExpression
public TaskQuery taskAssigneeExpression(String assigneeExpression)
Description copied from interface:TaskQueryOnly select tasks which are assigned to the user described by the given expression.
- Specified by:
taskAssigneeExpressionin interfaceTaskQuery
-
taskAssigneeLike
public TaskQuery taskAssigneeLike(String assignee)
Description copied from interface:TaskQueryOnly select tasks which are matching the given user. The syntax is that of SQL: for example usage: nameLike(%camunda%)- Specified by:
taskAssigneeLikein interfaceTaskQuery
-
taskAssigneeLikeExpression
public TaskQuery taskAssigneeLikeExpression(String assigneeLikeExpression)
Description copied from interface:TaskQueryOnly 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:
taskAssigneeLikeExpressionin interfaceTaskQuery
-
taskAssigneeIn
public TaskQuery taskAssigneeIn(String... assignees)
Description copied from interface:TaskQueryOnly select tasks which are assigned to one of the given users.- Specified by:
taskAssigneeInin interfaceTaskQuery
-
taskAssigneeNotIn
public TaskQuery taskAssigneeNotIn(String... assignees)
Description copied from interface:TaskQueryOnly select tasks which are not assigned to any of the given users.- Specified by:
taskAssigneeNotInin interfaceTaskQuery
-
taskOwner
public TaskQueryImpl taskOwner(String owner)
Description copied from interface:TaskQueryOnly select tasks for which the given user is the owner.
-
taskOwnerExpression
public TaskQuery taskOwnerExpression(String ownerExpression)
Description copied from interface:TaskQueryOnly select tasks for which the described user by the given expression is the owner.
- Specified by:
taskOwnerExpressionin interfaceTaskQuery
-
taskUnnassigned
@Deprecated public TaskQuery taskUnnassigned()
Deprecated.- Specified by:
taskUnnassignedin interfaceTaskQuery
-
taskUnassigned
public TaskQuery taskUnassigned()
Description copied from interface:TaskQueryOnly select tasks which don't have an assignee.- Specified by:
taskUnassignedin interfaceTaskQuery
-
taskAssigned
public TaskQuery taskAssigned()
Description copied from interface:TaskQueryOnly select tasks which have an assignee.- Specified by:
taskAssignedin interfaceTaskQuery
-
taskDelegationState
public TaskQuery taskDelegationState(DelegationState delegationState)
Description copied from interface:TaskQueryOnly select tasks with the givenDelegationState.- Specified by:
taskDelegationStatein interfaceTaskQuery
-
taskCandidateUser
public TaskQueryImpl taskCandidateUser(String candidateUser)
Description copied from interface:TaskQueryOnly 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:
taskCandidateUserin interfaceTaskQuery
-
taskCandidateUserExpression
public TaskQuery taskCandidateUserExpression(String candidateUserExpression)
Description copied from interface:TaskQueryOnly 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:
taskCandidateUserExpressionin interfaceTaskQuery
-
taskInvolvedUser
public TaskQueryImpl taskInvolvedUser(String involvedUser)
Description copied from interface:TaskQueryOnly select tasks for which there exist anIdentityLinkwith the given user- Specified by:
taskInvolvedUserin interfaceTaskQuery
-
taskInvolvedUserExpression
public TaskQuery taskInvolvedUserExpression(String involvedUserExpression)
Description copied from interface:TaskQueryOnly select tasks for which there exist an
IdentityLinkwith the described user by the given expression- Specified by:
taskInvolvedUserExpressionin interfaceTaskQuery
-
withCandidateGroups
public TaskQuery withCandidateGroups()
Description copied from interface:TaskQueryOnly select tasks which have a candidate group- Specified by:
withCandidateGroupsin interfaceTaskQuery
-
withoutCandidateGroups
public TaskQuery withoutCandidateGroups()
Description copied from interface:TaskQueryOnly select tasks which have no candidate group- Specified by:
withoutCandidateGroupsin interfaceTaskQuery
-
withCandidateUsers
public TaskQuery withCandidateUsers()
Description copied from interface:TaskQueryOnly select tasks which have a candidate user- Specified by:
withCandidateUsersin interfaceTaskQuery
-
withoutCandidateUsers
public TaskQuery withoutCandidateUsers()
Description copied from interface:TaskQueryOnly select tasks which have no candidate user- Specified by:
withoutCandidateUsersin interfaceTaskQuery
-
taskCandidateGroup
public TaskQueryImpl taskCandidateGroup(String candidateGroup)
Description copied from interface:TaskQueryOnly 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:
taskCandidateGroupin interfaceTaskQuery
-
taskCandidateGroupExpression
public TaskQuery taskCandidateGroupExpression(String candidateGroupExpression)
Description copied from interface:TaskQueryOnly 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:
taskCandidateGroupExpressionin interfaceTaskQuery
-
taskCandidateGroupIn
public TaskQuery taskCandidateGroupIn(List<String> candidateGroups)
Description copied from interface:TaskQueryOnly 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:
taskCandidateGroupInin interfaceTaskQuery
-
taskCandidateGroupInExpression
public TaskQuery taskCandidateGroupInExpression(String candidateGroupsExpression)
Description copied from interface:TaskQueryOnly 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:
taskCandidateGroupInExpressionin interfaceTaskQuery
-
includeAssignedTasks
public TaskQuery includeAssignedTasks()
Description copied from interface:TaskQuerySelect 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:
includeAssignedTasksin interfaceTaskQuery
-
includeAssignedTasksInternal
public TaskQuery includeAssignedTasksInternal()
-
processInstanceId
public TaskQueryImpl processInstanceId(String processInstanceId)
Description copied from interface:TaskQueryOnly select tasks for the given process instance id.- Specified by:
processInstanceIdin interfaceTaskQuery
-
processInstanceIdIn
public TaskQuery processInstanceIdIn(String... processInstanceIds)
Description copied from interface:TaskQueryOnly select tasks for the given process instance ids.- Specified by:
processInstanceIdInin interfaceTaskQuery
-
processInstanceBusinessKey
public TaskQueryImpl processInstanceBusinessKey(String processInstanceBusinessKey)
Description copied from interface:TaskQueryOnly select tasks for the given process instance business key- Specified by:
processInstanceBusinessKeyin interfaceTaskQuery
-
processInstanceBusinessKeyExpression
public TaskQuery processInstanceBusinessKeyExpression(String processInstanceBusinessKeyExpression)
Description copied from interface:TaskQueryOnly select tasks for the given process instance business key described by the given expression- Specified by:
processInstanceBusinessKeyExpressionin interfaceTaskQuery
-
processInstanceBusinessKeyIn
public TaskQuery processInstanceBusinessKeyIn(String... processInstanceBusinessKeys)
Description copied from interface:TaskQueryOnly select tasks for any of the given the given process instance business keys.- Specified by:
processInstanceBusinessKeyInin interfaceTaskQuery
-
processInstanceBusinessKeyLike
public TaskQuery processInstanceBusinessKeyLike(String processInstanceBusinessKey)
Description copied from interface:TaskQueryOnly select tasks matching the given process instance business key. The syntax is that of SQL: for example usage: nameLike(%camunda%)- Specified by:
processInstanceBusinessKeyLikein interfaceTaskQuery
-
processInstanceBusinessKeyLikeExpression
public TaskQuery processInstanceBusinessKeyLikeExpression(String processInstanceBusinessKeyLikeExpression)
Description copied from interface:TaskQueryOnly 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:
processInstanceBusinessKeyLikeExpressionin interfaceTaskQuery
-
executionId
public TaskQueryImpl executionId(String executionId)
Description copied from interface:TaskQueryOnly select tasks for the given execution.- Specified by:
executionIdin interfaceTaskQuery
-
activityInstanceIdIn
public TaskQuery activityInstanceIdIn(String... activityInstanceIds)
Description copied from interface:TaskQueryOnly select task which have one of the activity instance ids.- Specified by:
activityInstanceIdInin interfaceTaskQuery
-
tenantIdIn
public TaskQuery tenantIdIn(String... tenantIds)
Description copied from interface:TaskQueryOnly select tasks with one of the given tenant ids.- Specified by:
tenantIdInin interfaceTaskQuery
-
withoutTenantId
public TaskQuery withoutTenantId()
Description copied from interface:TaskQueryOnly select tasks which have no tenant id.- Specified by:
withoutTenantIdin interfaceTaskQuery
-
taskCreatedOn
public TaskQueryImpl taskCreatedOn(Date createTime)
Description copied from interface:TaskQueryOnly select tasks that are created on the given date.- Specified by:
taskCreatedOnin interfaceTaskQuery
-
taskCreatedOnExpression
public TaskQuery taskCreatedOnExpression(String createTimeExpression)
Description copied from interface:TaskQueryOnly select tasks that are created on the described date by the given expression.- Specified by:
taskCreatedOnExpressionin interfaceTaskQuery
-
taskCreatedBefore
public TaskQuery taskCreatedBefore(Date before)
Description copied from interface:TaskQueryOnly select tasks that are created before the given date.- Specified by:
taskCreatedBeforein interfaceTaskQuery
-
taskCreatedBeforeExpression
public TaskQuery taskCreatedBeforeExpression(String beforeExpression)
Description copied from interface:TaskQueryOnly select tasks that are created before the described date by the given expression.- Specified by:
taskCreatedBeforeExpressionin interfaceTaskQuery
-
taskCreatedAfter
public TaskQuery taskCreatedAfter(Date after)
Description copied from interface:TaskQueryOnly select tasks that are created after the given date.- Specified by:
taskCreatedAfterin interfaceTaskQuery
-
taskCreatedAfterExpression
public TaskQuery taskCreatedAfterExpression(String afterExpression)
Description copied from interface:TaskQueryOnly select tasks that are created after the described date by the given expression.- Specified by:
taskCreatedAfterExpressionin interfaceTaskQuery
-
taskDefinitionKey
public TaskQuery taskDefinitionKey(String key)
Description copied from interface:TaskQueryOnly select tasks with the given taskDefinitionKey. The task definition key is the id of the userTask: <userTask id="xxx" .../>- Specified by:
taskDefinitionKeyin interfaceTaskQuery
-
taskDefinitionKeyLike
public TaskQuery taskDefinitionKeyLike(String keyLike)
Description copied from interface:TaskQueryOnly 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:
taskDefinitionKeyLikein interfaceTaskQuery
-
taskDefinitionKeyIn
public TaskQuery taskDefinitionKeyIn(String... taskDefinitionKeys)
Description copied from interface:TaskQueryOnly select tasks which have one of the taskDefinitionKeys.- Specified by:
taskDefinitionKeyInin interfaceTaskQuery
-
taskParentTaskId
public TaskQuery taskParentTaskId(String taskParentTaskId)
Description copied from interface:TaskQuerySelect the tasks which are sub tasks of the given parent task.- Specified by:
taskParentTaskIdin interfaceTaskQuery
-
caseInstanceId
public TaskQuery caseInstanceId(String caseInstanceId)
Description copied from interface:TaskQueryOnly select tasks for the given case instance id.- Specified by:
caseInstanceIdin interfaceTaskQuery
-
caseInstanceBusinessKey
public TaskQuery caseInstanceBusinessKey(String caseInstanceBusinessKey)
Description copied from interface:TaskQueryOnly select tasks for the given case instance business key- Specified by:
caseInstanceBusinessKeyin interfaceTaskQuery
-
caseInstanceBusinessKeyLike
public TaskQuery caseInstanceBusinessKeyLike(String caseInstanceBusinessKeyLike)
Description copied from interface:TaskQueryOnly select tasks matching the given case instance business key. The syntax is that of SQL: for example usage: nameLike(%aBusinessKey%)- Specified by:
caseInstanceBusinessKeyLikein interfaceTaskQuery
-
caseExecutionId
public TaskQuery caseExecutionId(String caseExecutionId)
Description copied from interface:TaskQueryOnly select tasks for the given case execution.- Specified by:
caseExecutionIdin interfaceTaskQuery
-
caseDefinitionId
public TaskQuery caseDefinitionId(String caseDefinitionId)
Description copied from interface:TaskQueryOnly select tasks which are part of a case instance which has the given case definition id.- Specified by:
caseDefinitionIdin interfaceTaskQuery
-
caseDefinitionKey
public TaskQuery caseDefinitionKey(String caseDefinitionKey)
Description copied from interface:TaskQueryOnly select tasks which are part of a case instance which has the given case definition key.- Specified by:
caseDefinitionKeyin interfaceTaskQuery
-
caseDefinitionName
public TaskQuery caseDefinitionName(String caseDefinitionName)
Description copied from interface:TaskQueryOnly select tasks which are part of a case instance which has the given case definition name.- Specified by:
caseDefinitionNamein interfaceTaskQuery
-
caseDefinitionNameLike
public TaskQuery caseDefinitionNameLike(String caseDefinitionNameLike)
Description copied from interface:TaskQueryOnly 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:
caseDefinitionNameLikein interfaceTaskQuery
-
taskVariableValueEquals
public TaskQuery taskVariableValueEquals(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly select tasks which have a local task variable with the given name set to the given value.- Specified by:
taskVariableValueEqualsin interfaceTaskQuery
-
taskVariableValueNotEquals
public TaskQuery taskVariableValueNotEquals(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly select tasks which have a local task variable with the given name, but with a different value than the passed value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
taskVariableValueNotEqualsin interfaceTaskQuery
-
taskVariableValueLike
public TaskQuery taskVariableValueLike(String variableName, String variableValue)
Description copied from interface:TaskQueryOnly 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:
taskVariableValueLikein interfaceTaskQuery
-
taskVariableValueGreaterThan
public TaskQuery taskVariableValueGreaterThan(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly select tasks which have a local task variable with the given name and a value greater than the given one.- Specified by:
taskVariableValueGreaterThanin interfaceTaskQuery
-
taskVariableValueGreaterThanOrEquals
public TaskQuery taskVariableValueGreaterThanOrEquals(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly 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:
taskVariableValueGreaterThanOrEqualsin interfaceTaskQuery
-
taskVariableValueLessThan
public TaskQuery taskVariableValueLessThan(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly select tasks which have a local task variable with the given name and a value less than the given one.- Specified by:
taskVariableValueLessThanin interfaceTaskQuery
-
taskVariableValueLessThanOrEquals
public TaskQuery taskVariableValueLessThanOrEquals(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly 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:
taskVariableValueLessThanOrEqualsin interfaceTaskQuery
-
processVariableValueEquals
public TaskQuery processVariableValueEquals(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly select tasks which have are part of a process that have a variable with the given name set to the given value.- Specified by:
processVariableValueEqualsin interfaceTaskQuery
-
processVariableValueNotEquals
public TaskQuery processVariableValueNotEquals(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly select tasks which have a variable with the given name, but with a different value than the passed value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueNotEqualsin interfaceTaskQuery
-
processVariableValueLike
public TaskQuery processVariableValueLike(String variableName, String variableValue)
Description copied from interface:TaskQueryOnly 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:
processVariableValueLikein interfaceTaskQuery
-
processVariableValueNotLike
public TaskQuery processVariableValueNotLike(String variableName, String variableValue)
Description copied from interface:TaskQueryOnly 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:
processVariableValueNotLikein interfaceTaskQuery
-
processVariableValueGreaterThan
public TaskQuery processVariableValueGreaterThan(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly 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:
processVariableValueGreaterThanin interfaceTaskQuery
-
processVariableValueGreaterThanOrEquals
public TaskQuery processVariableValueGreaterThanOrEquals(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly 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:
processVariableValueGreaterThanOrEqualsin interfaceTaskQuery
-
processVariableValueLessThan
public TaskQuery processVariableValueLessThan(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly 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:
processVariableValueLessThanin interfaceTaskQuery
-
processVariableValueLessThanOrEquals
public TaskQuery processVariableValueLessThanOrEquals(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly 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:
processVariableValueLessThanOrEqualsin interfaceTaskQuery
-
caseInstanceVariableValueEquals
public TaskQuery caseInstanceVariableValueEquals(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly 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 andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueEqualsin interfaceTaskQuery
-
caseInstanceVariableValueNotEquals
public TaskQuery caseInstanceVariableValueNotEquals(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly 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 andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueNotEqualsin interfaceTaskQuery
-
caseInstanceVariableValueLike
public TaskQuery caseInstanceVariableValueLike(String variableName, String variableValue)
Description copied from interface:TaskQueryOnly 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:
caseInstanceVariableValueLikein interfaceTaskQuery
-
caseInstanceVariableValueNotLike
public TaskQuery caseInstanceVariableValueNotLike(String variableName, String variableValue)
Description copied from interface:TaskQueryOnly 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:
caseInstanceVariableValueNotLikein interfaceTaskQuery
-
caseInstanceVariableValueGreaterThan
public TaskQuery caseInstanceVariableValueGreaterThan(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly 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 andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueGreaterThanin interfaceTaskQuery
-
caseInstanceVariableValueGreaterThanOrEquals
public TaskQuery caseInstanceVariableValueGreaterThanOrEquals(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly 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 andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueGreaterThanOrEqualsin interfaceTaskQuery
-
caseInstanceVariableValueLessThan
public TaskQuery caseInstanceVariableValueLessThan(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly select tasks which are part of a case instance that have a variable value less than the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueLessThanin interfaceTaskQuery
-
caseInstanceVariableValueLessThanOrEquals
public TaskQuery caseInstanceVariableValueLessThanOrEquals(String variableName, Object variableValue)
Description copied from interface:TaskQueryOnly 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 andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueLessThanOrEqualsin interfaceTaskQuery
-
processDefinitionKey
public TaskQuery processDefinitionKey(String processDefinitionKey)
Description copied from interface:TaskQueryOnly select tasks which are part of a process instance which has the given process definition key.- Specified by:
processDefinitionKeyin interfaceTaskQuery
-
processDefinitionKeyIn
public TaskQuery processDefinitionKeyIn(String... processDefinitionKeys)
Description copied from interface:TaskQueryOnly select tasks which are part of a process instance which has one of the given process definition keys.- Specified by:
processDefinitionKeyInin interfaceTaskQuery
-
processDefinitionId
public TaskQuery processDefinitionId(String processDefinitionId)
Description copied from interface:TaskQueryOnly select tasks which are part of a process instance which has the given process definition id.- Specified by:
processDefinitionIdin interfaceTaskQuery
-
processDefinitionName
public TaskQuery processDefinitionName(String processDefinitionName)
Description copied from interface:TaskQueryOnly select tasks which are part of a process instance which has the given process definition name.- Specified by:
processDefinitionNamein interfaceTaskQuery
-
processDefinitionNameLike
public TaskQuery processDefinitionNameLike(String processDefinitionName)
Description copied from interface:TaskQueryOnly 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:
processDefinitionNameLikein interfaceTaskQuery
-
dueDate
public TaskQuery dueDate(Date dueDate)
Description copied from interface:TaskQueryOnly select tasks with the given due date.
-
dueDateExpression
public TaskQuery dueDateExpression(String dueDateExpression)
Description copied from interface:TaskQueryOnly select tasks with the described due date by the given expression.
- Specified by:
dueDateExpressionin interfaceTaskQuery
-
dueBefore
public TaskQuery dueBefore(Date dueBefore)
Description copied from interface:TaskQueryOnly select tasks which have a due date before the given date.
-
dueBeforeExpression
public TaskQuery dueBeforeExpression(String dueDate)
Description copied from interface:TaskQueryOnly select tasks which have a due date before the described date by the given expression.
- Specified by:
dueBeforeExpressionin interfaceTaskQuery
-
dueAfter
public TaskQuery dueAfter(Date dueAfter)
Description copied from interface:TaskQueryOnly select tasks which have a due date after the given date.
-
dueAfterExpression
public TaskQuery dueAfterExpression(String dueDateExpression)
Description copied from interface:TaskQueryOnly select tasks which have a due date after the described date by the given expression.
- Specified by:
dueAfterExpressionin interfaceTaskQuery
-
withoutDueDate
public TaskQuery withoutDueDate()
Description copied from interface:TaskQueryOnly select tasks which have no due date.- Specified by:
withoutDueDatein interfaceTaskQuery
-
followUpDate
public TaskQuery followUpDate(Date followUpDate)
Description copied from interface:TaskQueryOnly select tasks with the given follow-up date.- Specified by:
followUpDatein interfaceTaskQuery
-
followUpDateExpression
public TaskQuery followUpDateExpression(String followUpDateExpression)
Description copied from interface:TaskQueryOnly select tasks with the described follow-up date by the given expression.
- Specified by:
followUpDateExpressionin interfaceTaskQuery
-
followUpBefore
public TaskQuery followUpBefore(Date followUpBefore)
Description copied from interface:TaskQueryOnly select tasks which have a follow-up date before the given date.- Specified by:
followUpBeforein interfaceTaskQuery
-
followUpBeforeExpression
public TaskQuery followUpBeforeExpression(String followUpBeforeExpression)
Description copied from interface:TaskQueryOnly select tasks which have a follow-up date before the described date by the given expression.
- Specified by:
followUpBeforeExpressionin interfaceTaskQuery
-
followUpBeforeOrNotExistent
public TaskQuery followUpBeforeOrNotExistent(Date followUpDate)
Description copied from interface:TaskQueryOnly 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:
followUpBeforeOrNotExistentin interfaceTaskQuery
-
followUpBeforeOrNotExistentExpression
public TaskQuery followUpBeforeOrNotExistentExpression(String followUpDateExpression)
Description copied from interface:TaskQueryOnly 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:
followUpBeforeOrNotExistentExpressionin interfaceTaskQuery
-
setFollowUpNullAccepted
public void setFollowUpNullAccepted(boolean followUpNullAccepted)
-
followUpAfter
public TaskQuery followUpAfter(Date followUpAfter)
Description copied from interface:TaskQueryOnly select tasks which have a follow-up date after the given date.- Specified by:
followUpAfterin interfaceTaskQuery
-
followUpAfterExpression
public TaskQuery followUpAfterExpression(String followUpAfterExpression)
Description copied from interface:TaskQueryOnly select tasks which have a follow-up date after the described date by the given expression.
- Specified by:
followUpAfterExpressionin interfaceTaskQuery
-
excludeSubtasks
public TaskQuery excludeSubtasks()
Description copied from interface:TaskQueryOnly select tasks that have no parent (i.e. do not select subtasks).- Specified by:
excludeSubtasksin interfaceTaskQuery
-
active
public TaskQuery active()
Description copied from interface:TaskQueryOnly select tasks which are active (ie. not suspended)
-
suspended
public TaskQuery suspended()
Description copied from interface:TaskQueryOnly select tasks which are suspended, because its process instance was suspended.
-
initializeFormKeys
public TaskQuery initializeFormKeys()
Description copied from interface:TaskQueryIf 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:
initializeFormKeysin interfaceTaskQuery- Returns:
- the query itself
-
taskNameCaseInsensitive
public TaskQuery taskNameCaseInsensitive()
-
hasExcludingConditions
protected boolean hasExcludingConditions()
Description copied from class:AbstractQueryWhether 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:
hasExcludingConditionsin classAbstractQuery<TaskQuery,Task>- Returns:
trueif the query does have excluding conditions,falseotherwise
-
isWithCandidateGroups
public Boolean isWithCandidateGroups()
-
isWithCandidateUsers
public Boolean isWithCandidateUsers()
-
isWithCandidateGroupsInternal
public Boolean isWithCandidateGroupsInternal()
-
isWithoutCandidateGroups
public Boolean isWithoutCandidateGroups()
-
isWithoutCandidateUsers
public Boolean isWithoutCandidateUsers()
-
isWithoutCandidateGroupsInternal
public Boolean isWithoutCandidateGroupsInternal()
-
ensureOrExpressionsEvaluated
protected void ensureOrExpressionsEvaluated()
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
-
addVariable
public void addVariable(String name, Object value, QueryOperator operator, boolean isTaskVariable, boolean isProcessInstanceVariable)
-
addVariable
protected void addVariable(TaskQueryVariableValue taskQueryVariableValue)
-
orderByTaskId
public TaskQuery orderByTaskId()
Description copied from interface:TaskQueryOrder by task id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskIdin interfaceTaskQuery
-
orderByTaskName
public TaskQuery orderByTaskName()
Description copied from interface:TaskQueryOrder by task name (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskNamein interfaceTaskQuery
-
orderByTaskNameCaseInsensitive
public TaskQuery orderByTaskNameCaseInsensitive()
Description copied from interface:TaskQueryOrder by task name case insensitive (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskNameCaseInsensitivein interfaceTaskQuery
-
orderByTaskDescription
public TaskQuery orderByTaskDescription()
Description copied from interface:TaskQueryOrder by description (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskDescriptionin interfaceTaskQuery
-
orderByTaskPriority
public TaskQuery orderByTaskPriority()
Description copied from interface:TaskQueryOrder by priority (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskPriorityin interfaceTaskQuery
-
orderByProcessInstanceId
public TaskQuery orderByProcessInstanceId()
Description copied from interface:TaskQueryOrder by process instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceTaskQuery
-
orderByCaseInstanceId
public TaskQuery orderByCaseInstanceId()
Description copied from interface:TaskQueryOrder by case instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseInstanceIdin interfaceTaskQuery
-
orderByExecutionId
public TaskQuery orderByExecutionId()
Description copied from interface:TaskQueryOrder by execution id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceTaskQuery
-
orderByTenantId
public TaskQuery orderByTenantId()
Description copied from interface:TaskQueryOrder 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:
orderByTenantIdin interfaceTaskQuery
-
orderByCaseExecutionId
public TaskQuery orderByCaseExecutionId()
Description copied from interface:TaskQueryOrder by case execution id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseExecutionIdin interfaceTaskQuery
-
orderByTaskAssignee
public TaskQuery orderByTaskAssignee()
Description copied from interface:TaskQueryOrder by assignee (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskAssigneein interfaceTaskQuery
-
orderByTaskCreateTime
public TaskQuery orderByTaskCreateTime()
Description copied from interface:TaskQueryOrder by the time on which the tasks were created (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskCreateTimein interfaceTaskQuery
-
orderByDueDate
public TaskQuery orderByDueDate()
Description copied from interface:TaskQueryOrder by due date (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDueDatein interfaceTaskQuery
-
orderByFollowUpDate
public TaskQuery orderByFollowUpDate()
Description copied from interface:TaskQueryOrder by follow-up date (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByFollowUpDatein interfaceTaskQuery
-
orderByProcessVariable
public TaskQuery orderByProcessVariable(String variableName, ValueType valueType)
Description copied from interface:TaskQueryOrder by a process instance variable value of a certain type. Calling this method multiple times specifies secondary, tertiary orderings, etc. The ordering of variables withnullvalues is database-specific.- Specified by:
orderByProcessVariablein interfaceTaskQuery
-
orderByExecutionVariable
public TaskQuery orderByExecutionVariable(String variableName, ValueType valueType)
Description copied from interface:TaskQueryOrder by an execution variable value of a certain type. Calling this method multiple times specifies secondary, tertiary orderings, etc. The ordering of variables withnullvalues is database-specific.- Specified by:
orderByExecutionVariablein interfaceTaskQuery
-
orderByTaskVariable
public TaskQuery orderByTaskVariable(String variableName, ValueType valueType)
Description copied from interface:TaskQueryOrder by a task variable value of a certain type. Calling this method multiple times specifies secondary, tertiary orderings, etc. The ordering of variables withnullvalues is database-specific.- Specified by:
orderByTaskVariablein interfaceTaskQuery
-
orderByCaseExecutionVariable
public TaskQuery orderByCaseExecutionVariable(String variableName, ValueType valueType)
Description copied from interface:TaskQueryOrder by a task variable value of a certain type. Calling this method multiple times specifies secondary, tertiary orderings, etc. The ordering of variables withnullvalues is database-specific.- Specified by:
orderByCaseExecutionVariablein interfaceTaskQuery
-
orderByCaseInstanceVariable
public TaskQuery orderByCaseInstanceVariable(String variableName, ValueType valueType)
Description copied from interface:TaskQueryOrder by a task variable value of a certain type. Calling this method multiple times specifies secondary, tertiary orderings, etc. The ordering of variables withnullvalues is database-specific.- Specified by:
orderByCaseInstanceVariablein interfaceTaskQuery
-
executeList
public List<Task> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin 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:
executeCountin classAbstractQuery<TaskQuery,Task>
-
decideAuthorizationJoinType
protected void decideAuthorizationJoinType(CommandContext commandContext)
-
resetCachedCandidateGroups
protected void resetCachedCandidateGroups()
-
getName
public String getName()
-
getNameNotEqual
public String getNameNotEqual()
-
getNameLike
public String getNameLike()
-
getNameNotLike
public String getNameNotLike()
-
getAssignee
public String getAssignee()
-
getAssigneeLike
public String getAssigneeLike()
-
getInvolvedUser
public String getInvolvedUser()
-
getOwner
public String getOwner()
-
isAssigned
public Boolean isAssigned()
-
isAssignedInternal
public Boolean isAssignedInternal()
-
isUnassigned
public boolean isUnassigned()
-
isUnassignedInternal
public Boolean isUnassignedInternal()
-
getDelegationState
public DelegationState getDelegationState()
-
isNoDelegationState
public boolean isNoDelegationState()
-
getDelegationStateString
public String getDelegationStateString()
-
getCandidateUser
public String getCandidateUser()
-
getCandidateGroup
public String getCandidateGroup()
-
isIncludeAssignedTasks
public boolean isIncludeAssignedTasks()
-
isIncludeAssignedTasksInternal
public Boolean isIncludeAssignedTasksInternal()
-
getProcessInstanceId
public String getProcessInstanceId()
-
getProcessInstanceIdIn
public String[] getProcessInstanceIdIn()
-
getExecutionId
public String getExecutionId()
-
getActivityInstanceIdIn
public String[] getActivityInstanceIdIn()
-
getTenantIds
public String[] getTenantIds()
-
getTaskId
public String getTaskId()
-
getTaskIdIn
public String[] getTaskIdIn()
-
getDescription
public String getDescription()
-
getDescriptionLike
public String getDescriptionLike()
-
getPriority
public Integer getPriority()
-
getMinPriority
public Integer getMinPriority()
-
getMaxPriority
public Integer getMaxPriority()
-
getCreateTime
public Date getCreateTime()
-
getCreateTimeBefore
public Date getCreateTimeBefore()
-
getCreateTimeAfter
public Date getCreateTimeAfter()
-
getKey
public String getKey()
-
getKeys
public String[] getKeys()
-
getKeyLike
public String getKeyLike()
-
getParentTaskId
public String getParentTaskId()
-
getVariables
public List<TaskQueryVariableValue> getVariables()
-
getProcessDefinitionKey
public String getProcessDefinitionKey()
-
getProcessDefinitionKeys
public String[] getProcessDefinitionKeys()
-
getProcessDefinitionId
public String getProcessDefinitionId()
-
getProcessDefinitionName
public String getProcessDefinitionName()
-
getProcessDefinitionNameLike
public String getProcessDefinitionNameLike()
-
getProcessInstanceBusinessKey
public String getProcessInstanceBusinessKey()
-
getProcessInstanceBusinessKeys
public String[] getProcessInstanceBusinessKeys()
-
getProcessInstanceBusinessKeyLike
public String getProcessInstanceBusinessKeyLike()
-
getDueDate
public Date getDueDate()
-
getDueBefore
public Date getDueBefore()
-
getDueAfter
public Date getDueAfter()
-
getFollowUpDate
public Date getFollowUpDate()
-
getFollowUpBefore
public Date getFollowUpBefore()
-
getFollowUpAfter
public Date getFollowUpAfter()
-
isExcludeSubtasks
public boolean isExcludeSubtasks()
-
getSuspensionState
public SuspensionState getSuspensionState()
-
getCaseInstanceId
public String getCaseInstanceId()
-
getCaseInstanceBusinessKey
public String getCaseInstanceBusinessKey()
-
getCaseInstanceBusinessKeyLike
public String getCaseInstanceBusinessKeyLike()
-
getCaseExecutionId
public String getCaseExecutionId()
-
getCaseDefinitionId
public String getCaseDefinitionId()
-
getCaseDefinitionKey
public String getCaseDefinitionKey()
-
getCaseDefinitionName
public String getCaseDefinitionName()
-
getCaseDefinitionNameLike
public String getCaseDefinitionNameLike()
-
isInitializeFormKeys
public boolean isInitializeFormKeys()
-
isTaskNameCaseInsensitive
public boolean isTaskNameCaseInsensitive()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
isWithoutDueDate
public boolean isWithoutDueDate()
-
getTaskDefinitionKeys
public String[] getTaskDefinitionKeys()
-
getIsTenantIdSet
public boolean getIsTenantIdSet()
-
isVariableNamesIgnoreCase
public Boolean isVariableNamesIgnoreCase()
-
isVariableValuesIgnoreCase
public Boolean isVariableValuesIgnoreCase()
-
getQueries
public List<TaskQueryImpl> getQueries()
-
isOrQueryActive
public boolean isOrQueryActive()
-
addOrQuery
public void addOrQuery(TaskQueryImpl orQuery)
-
setOrQueryActive
public void setOrQueryActive()
-
extend
public TaskQuery extend(TaskQuery extending)
- Overrides:
extendin 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(String name)
Description copied from interface:TaskQueryOnly 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:
taskNameNotEqualin interfaceTaskQuery
-
taskNameNotLike
public TaskQuery taskNameNotLike(String nameNotLike)
Description copied from interface:TaskQueryOnly 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:
taskNameNotLikein 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:TaskQueryAfter 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:TaskQueryendOr() 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:TaskQueryAll queries for task-, process- and case-variables will match the variable names in a case-insensitive way.- Specified by:
matchVariableNamesIgnoreCasein interfaceTaskQuery
-
matchVariableValuesIgnoreCase
public TaskQuery matchVariableValuesIgnoreCase()
Description copied from interface:TaskQueryAll queries for task-, process- and case-variables will match the variable values in a case-insensitive way.- Specified by:
matchVariableValuesIgnoreCasein interfaceTaskQuery
-
-