Class TaskQueryImpl
- java.lang.Object
-
- org.activiti.engine.impl.db.ListQueryParameterObject
-
- org.activiti.engine.impl.AbstractQuery<T,U>
-
- org.activiti.engine.impl.AbstractVariableQueryImpl<TaskQuery,Task>
-
- org.activiti.engine.impl.TaskQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable,Command<java.lang.Object>,Query<TaskQuery,Task>,TaskInfoQuery<TaskQuery,Task>,TaskQuery
public class TaskQueryImpl extends AbstractVariableQueryImpl<TaskQuery,Task> implements TaskQuery
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.activiti.engine.impl.AbstractQuery
AbstractQuery.NullHandlingOnOrder
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringassigneeprotected java.util.List<java.lang.String>assigneeIdsprotected java.lang.StringassigneeLikeprotected java.lang.StringassigneeLikeIgnoreCaseprotected booleanbothCandidateAndAssignedprotected java.lang.StringcandidateGroupprotected java.util.List<java.lang.String>candidateGroupsprotected java.lang.StringcandidateUserprotected java.lang.Stringcategoryprotected java.util.DatecreateTimeprotected java.util.DatecreateTimeAfterprotected java.util.DatecreateTimeBeforeprotected TaskQueryImplcurrentOrQueryObjectprotected DelegationStatedelegationStateprotected java.lang.StringdeploymentIdprotected java.util.List<java.lang.String>deploymentIdsprotected java.lang.Stringdescriptionprotected java.lang.StringdescriptionLikeprotected java.lang.StringdescriptionLikeIgnoreCaseprotected java.util.DatedueAfterprotected java.util.DatedueBeforeprotected java.util.DatedueDateprotected booleanexcludeSubtasksprotected java.lang.StringexecutionIdprotected booleanincludeProcessVariablesprotected booleanincludeTaskLocalVariablesprotected java.util.List<java.lang.String>involvedGroupsprotected java.lang.StringinvolvedUserprotected java.lang.Stringkeyprotected java.lang.StringkeyLikeprotected java.lang.Stringlocaleprotected java.lang.IntegermaxPriorityprotected java.lang.IntegerminPriorityprotected java.lang.Stringnameprotected java.lang.StringnameLikeprotected java.lang.StringnameLikeIgnoreCaseprotected java.util.List<java.lang.String>nameListprotected java.util.List<java.lang.String>nameListIgnoreCaseprotected booleannoDelegationStateprotected booleanorActiveprotected java.util.List<TaskQueryImpl>orQueryObjectsprotected java.lang.Stringownerprotected java.lang.StringownerLikeprotected java.lang.StringownerLikeIgnoreCaseprotected java.lang.Integerpriorityprotected java.util.List<java.lang.String>processCategoryInListprotected java.util.List<java.lang.String>processCategoryNotInListprotected java.lang.StringprocessDefinitionIdprotected java.lang.StringprocessDefinitionKeyprotected java.lang.StringprocessDefinitionKeyLikeprotected java.lang.StringprocessDefinitionKeyLikeIgnoreCaseprotected java.util.List<java.lang.String>processDefinitionKeysprotected java.lang.StringprocessDefinitionNameprotected java.lang.StringprocessDefinitionNameLikeprotected java.lang.StringprocessInstanceBusinessKeyprotected java.lang.StringprocessInstanceBusinessKeyLikeprotected java.lang.StringprocessInstanceBusinessKeyLikeIgnoreCaseprotected java.lang.StringprocessInstanceIdprotected java.util.List<java.lang.String>processInstanceIdsprotected SuspensionStatesuspensionStateprotected java.lang.StringtaskIdprotected java.lang.StringtaskParentTaskIdprotected java.lang.IntegertaskVariablesLimitprotected java.lang.StringtenantIdprotected java.lang.StringtenantIdLikeprotected booleanunassignedprotected java.lang.StringuserIdForCandidateAndAssigneeprotected booleanwithLocalizationFallbackprotected booleanwithoutDueDateprotected booleanwithoutTenantId-
Fields inherited from class org.activiti.engine.impl.AbstractVariableQueryImpl
queryVariableValues
-
Fields inherited from class org.activiti.engine.impl.AbstractQuery
commandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
-
Fields inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
firstResult, maxResults, parameter
-
-
Constructor Summary
Constructors Constructor Description TaskQueryImpl()TaskQueryImpl(CommandContext commandContext)TaskQueryImpl(CommandExecutor commandExecutor)TaskQueryImpl(CommandExecutor commandExecutor, java.lang.String databaseType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskQueryactive()Only selects tasks which are active (ie.TaskQuerydeploymentId(java.lang.String deploymentId)Only select tasks which are part of a process instance which has the given deployment id.TaskQuerydeploymentIdIn(java.util.List<java.lang.String> deploymentIds)Only select tasks which are part of a process instance which has the given deployment id.TaskQuerydueAfter(java.util.Date dueAfter)TaskQuerydueBefore(java.util.Date dueBefore)TaskQuerydueDate(java.util.Date dueDate)TaskQueryendOr()protected voidensureVariablesInitialized()TaskQueryexcludeSubtasks()Only select tasks that have no parent (i.e.longexecuteCount(CommandContext commandContext)java.util.List<Task>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.TaskQueryImplexecutionId(java.lang.String executionId)Only select tasks for the given execution.java.lang.StringgetAssignee()java.util.List<java.lang.String>getAssigneeIds()java.lang.StringgetAssigneeLike()java.lang.StringgetAssigneeLikeIgnoreCase()java.lang.StringgetCandidateGroup()java.util.List<java.lang.String>getCandidateGroups()java.lang.StringgetCandidateUser()java.lang.StringgetCategory()java.util.DategetCreateTime()java.util.DategetCreateTimeAfter()java.util.DategetCreateTimeBefore()DelegationStategetDelegationState()java.lang.StringgetDelegationStateString()java.lang.StringgetDeploymentId()java.util.List<java.lang.String>getDeploymentIds()java.lang.StringgetDescription()java.lang.StringgetDescriptionLike()java.lang.StringgetDescriptionLikeIgnoreCase()java.util.DategetDueAfter()java.util.DategetDueBefore()java.util.DategetDueDate()booleangetExcludeSubtasks()java.lang.StringgetExecutionId()protected java.util.List<java.lang.String>getGroupsForCandidateUser(java.lang.String candidateUser)java.util.List<java.lang.String>getInvolvedGroups()java.lang.StringgetInvolvedUser()java.lang.StringgetKey()java.lang.StringgetKeyLike()java.lang.StringgetLocale()java.lang.IntegergetMaxPriority()java.lang.IntegergetMinPriority()java.lang.StringgetMssqlOrDB2OrderBy()java.lang.StringgetName()java.lang.StringgetNameLike()java.lang.StringgetNameLikeIgnoreCase()java.util.List<java.lang.String>getNameList()java.util.List<java.lang.String>getNameListIgnoreCase()booleangetNoDelegationState()java.util.List<TaskQueryImpl>getOrQueryObjects()java.lang.StringgetOwner()java.lang.StringgetOwnerLike()java.lang.StringgetOwnerLikeIgnoreCase()java.lang.IntegergetPriority()java.util.List<java.lang.String>getProcessCategoryInList()java.util.List<java.lang.String>getProcessCategoryNotInList()java.lang.StringgetProcessDefinitionId()java.lang.StringgetProcessDefinitionKey()java.lang.StringgetProcessDefinitionKeyLike()java.lang.StringgetProcessDefinitionKeyLikeIgnoreCase()java.util.List<java.lang.String>getProcessDefinitionKeys()java.lang.StringgetProcessDefinitionName()java.lang.StringgetProcessDefinitionNameLike()java.lang.StringgetProcessInstanceBusinessKey()java.lang.StringgetProcessInstanceBusinessKeyLike()java.lang.StringgetProcessInstanceBusinessKeyLikeIgnoreCase()java.lang.StringgetProcessInstanceId()java.util.List<java.lang.String>getProcessInstanceIds()SuspensionStategetSuspensionState()java.lang.StringgetTaskId()java.lang.StringgetTaskParentTaskId()java.lang.IntegergetTaskVariablesLimit()java.lang.StringgetTenantId()java.lang.StringgetTenantIdLike()booleangetUnassigned()java.lang.StringgetUserIdForCandidateAndAssignee()TaskQueryincludeProcessVariables()Include global task variables in the task query resultTaskQueryincludeTaskLocalVariables()Include local task variables in the task query resultbooleanisBothCandidateAndAssigned()booleanisIncludeProcessVariables()booleanisIncludeTaskLocalVariables()booleanisOrActive()booleanisWithoutDueDate()booleanisWithoutTenantId()TaskQuerylimitTaskVariables(java.lang.Integer taskVariablesLimit)Limit task variablesTaskQuerylocale(java.lang.String locale)Localize task name and description to specified locale.protected voidlocalize(Task task)TaskQueryor()All query clauses called will be added to a single or-statement.TaskQueryorderByDueDate()TaskQueryorderByDueDateNullsFirst()Order by due date (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByDueDateNullsLast()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()).TaskQueryorderByProcessDefinitionId()Order by process definition id (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByProcessInstanceId()Order by process instance id (needs to be followed byQuery.asc()orQuery.desc()).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()).TaskQueryorderByTaskDefinitionKey()Order by task definition key (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByTaskDescription()Order by description (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByTaskDueDate()Order by task due date (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()).TaskQueryorderByTaskOwner()Order by task owner (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByTaskPriority()Order by priority (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).TaskQueryprocessCategoryIn(java.util.List<java.lang.String> processCategoryInList)Only select tasks which are part of a process instance whose definition belongs to the category which is present in the given list.TaskQueryprocessCategoryNotIn(java.util.List<java.lang.String> processCategoryNotInList)Only select tasks which are part of a process instance whose definition does not belong to the category which is present in the given list.TaskQueryprocessDefinitionId(java.lang.String processDefinitionId)Only select tasks which are part of a process instance which has the given process definition id.TaskQueryprocessDefinitionKey(java.lang.String processDefinitionKey)Only select tasks which are part of a process instance which has the given process definition key.TaskQueryprocessDefinitionKeyIn(java.util.List<java.lang.String> processDefinitionKeys)Only select tasks that have a process definition for which the key is present in the given listTaskQueryprocessDefinitionKeyLike(java.lang.String processDefinitionKeyLike)Only select tasks which are part of a process instance which has a process definition key like the given value.TaskQueryprocessDefinitionKeyLikeIgnoreCase(java.lang.String processDefinitionKeyLikeIgnoreCase)Only select tasks which are part of a process instance which has a process definition key like the given value.TaskQueryprocessDefinitionName(java.lang.String processDefinitionName)Only select tasks which are part of a process instance which has the given process definition name.TaskQueryprocessDefinitionNameLike(java.lang.String processDefinitionNameLike)Only select tasks which are part of a process instance which has a process definition name like the given value.TaskQueryImplprocessInstanceBusinessKey(java.lang.String processInstanceBusinessKey)Only select tasks foe the given business keyTaskQueryImplprocessInstanceBusinessKeyLike(java.lang.String processInstanceBusinessKeyLike)Only select tasks with a business key like the given value The syntax is that of SQL: for example usage: processInstanceBusinessKeyLike("%activiti%").TaskQueryprocessInstanceBusinessKeyLikeIgnoreCase(java.lang.String processInstanceBusinessKeyLikeIgnoreCase)Only select tasks with a business key like the given value The syntax is that of SQL: for example usage: processInstanceBusinessKeyLike("%activiti%").TaskQueryImplprocessInstanceId(java.lang.String processInstanceId)Only select tasks for the given process instance id.TaskQueryprocessInstanceIdIn(java.util.List<java.lang.String> processInstanceIds)Only select tasks for the given process ids.TaskQueryprocessVariableValueEquals(java.lang.Object variableValue)Only select tasks which are part of a process that has at least one variable with the given value.TaskQueryprocessVariableValueEquals(java.lang.String variableName, java.lang.Object variableValue)Only select tasks which are part of a process that has a variable with the given name set to the given value.TaskQueryprocessVariableValueEqualsIgnoreCase(java.lang.String name, java.lang.String value)Only select tasks which are part of a process that has a local string variable which is not the given value, case insensitive.TaskQueryprocessVariableValueGreaterThan(java.lang.String name, java.lang.Object value)Only select tasks which have a global variable value greater than the passed value when they ended.TaskQueryprocessVariableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)Only select tasks which have a global variable value greater than or equal to the passed value when they ended.TaskQueryprocessVariableValueLessThan(java.lang.String name, java.lang.Object value)Only select tasks which have a global variable value less than the passed value when the ended.Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.TaskQueryprocessVariableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)Only select tasks which have a global variable value less than or equal to the passed value when they ended.TaskQueryprocessVariableValueLike(java.lang.String name, java.lang.String value)Only select tasks which have a global variable value like the given value when they ended.TaskQueryprocessVariableValueLikeIgnoreCase(java.lang.String name, java.lang.String value)Only select tasks which have a global variable value like the given value (case insensitive) when they ended.TaskQueryprocessVariableValueNotEquals(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.TaskQueryprocessVariableValueNotEqualsIgnoreCase(java.lang.String name, java.lang.String value)Only select tasks which are part of a process that has a string variable with the given value, case insensitive.voidsetOrQueryObjects(java.util.List<TaskQueryImpl> orQueryObjects)TaskQuerysuspended()Only selects tasks which are suspended, because its process instance was suspended.TaskQueryImpltaskAssignee(java.lang.String assignee)Only select tasks which are assigned to the given user.TaskQuerytaskAssigneeIds(java.util.List<java.lang.String> assigneeIds)Only select tasks with an assignee that is in the given listTaskQueryImpltaskAssigneeLike(java.lang.String assigneeLike)Only select tasks which were last assigned to an assignee like the given value.TaskQuerytaskAssigneeLikeIgnoreCase(java.lang.String assigneeLikeIgnoreCase)Only select tasks which were last assigned to an assignee like the given value.TaskQueryImpltaskCandidateGroup(java.lang.String candidateGroup)Only select tasks for which users in the given group are candidates.TaskQuerytaskCandidateGroupIn(java.util.List<java.lang.String> candidateGroups)Only select tasks for which the 'candidateGroup' is one of the given groups.TaskQuerytaskCandidateOrAssigned(java.lang.String userIdForCandidateAndAssignee)Select tasks that has been claimed or assigned to user or waiting to claim by user (candidate user or groups).TaskQuerytaskCandidateOrAssigned(java.lang.String userIdForCandidateAndAssignee, java.util.List<java.lang.String> usersGroups)Select tasks that has been claimed or assigned to user or waiting to claim by user (candidate user or groups).TaskQueryImpltaskCandidateUser(java.lang.String candidateUser)Only select tasks for which the given user is a candidate.TaskQueryImpltaskCandidateUser(java.lang.String candidateUser, java.util.List<java.lang.String> usersGroups)Only select tasks for which the given user is a candidate.TaskQuerytaskCategory(java.lang.String category)Only select tasks with the given category.TaskQuerytaskCreatedAfter(java.util.Date after)Only select tasks that are created after the given date.TaskQuerytaskCreatedBefore(java.util.Date before)Only select tasks that are created before the given date.TaskQueryImpltaskCreatedOn(java.util.Date createTime)Only select tasks that are created on the given date.TaskQuerytaskDefinitionKey(java.lang.String key)Only select tasks with the given taskDefinitionKey.TaskQuerytaskDefinitionKeyLike(java.lang.String keyLike)Only select tasks with a taskDefinitionKey that match the given parameter.TaskQuerytaskDelegationState(DelegationState delegationState)Only select tasks with the givenDelegationState.TaskQueryImpltaskDescription(java.lang.String description)Only select tasks with the given description.TaskQuerytaskDescriptionLike(java.lang.String descriptionLike)Only select tasks with a description matching the parameter .TaskQuerytaskDescriptionLikeIgnoreCase(java.lang.String descriptionLikeIgnoreCase)Only select tasks with a description matching the parameter .TaskQuerytaskDueAfter(java.util.Date dueDate)Only select tasks which have a due date after the given date.TaskQuerytaskDueBefore(java.util.Date dueDate)Only select tasks which have a due date before the given date.TaskQuerytaskDueDate(java.util.Date dueDate)Only select tasks with the given due date.TaskQueryImpltaskId(java.lang.String taskId)Only select tasks with the given task id (in practice, there will be maximum one of this kind)TaskQueryImpltaskInvolvedGroupsIn(java.util.List<java.lang.String> involvedGroups)Only select tasks for users involved in the given groupsTaskQueryImpltaskInvolvedUser(java.lang.String involvedUser)Only select tasks for which there exist anIdentityLinkwith the given user, including tasks which have been assigned to the given user (assignee) or owned by the given user (owner).TaskQuerytaskMaxPriority(java.lang.Integer maxPriority)Only select tasks with the given priority or lower.TaskQuerytaskMinPriority(java.lang.Integer minPriority)Only select tasks with the given priority or higher.TaskQueryImpltaskName(java.lang.String name)Only select tasks with the given nameTaskQuerytaskNameIn(java.util.List<java.lang.String> nameList)Only select tasks with a name that is in the given listTaskQuerytaskNameInIgnoreCase(java.util.List<java.lang.String> nameList)Only select tasks with a name that is in the given list This method, unlike theTaskInfoQuery.taskNameIn(List)method will not take in account the upper/lower case: both the input parameters as the column value are lowercased when the query is executed.TaskQueryImpltaskNameLike(java.lang.String nameLike)Only select tasks with a name matching the parameter.TaskQuerytaskNameLikeIgnoreCase(java.lang.String nameLikeIgnoreCase)Only select tasks with a name matching the parameter.TaskQueryImpltaskOwner(java.lang.String owner)Only select tasks for which the given user is the owner.TaskQueryImpltaskOwnerLike(java.lang.String ownerLike)Only select tasks which were last assigned to an owner like the given value.TaskQuerytaskOwnerLikeIgnoreCase(java.lang.String ownerLikeIgnoreCase)Only select tasks which were last assigned to an owner like the given value.TaskQuerytaskParentTaskId(java.lang.String parentTaskId)TaskQuerytaskPriority(java.lang.Integer priority)Only select tasks with the given priority.TaskQuerytaskTenantId(java.lang.String tenantId)Only select tasks that have the given tenant id.TaskQuerytaskTenantIdLike(java.lang.String tenantIdLike)Only select tasks with a tenant id like the given one.TaskQuerytaskUnassigned()Only select tasks which don't have an assignee.TaskQuerytaskVariableValueEquals(java.lang.Object variableValue)Only select tasks which have at least one local task variable with the given value.TaskQuerytaskVariableValueEquals(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.TaskQuerytaskVariableValueEqualsIgnoreCase(java.lang.String name, java.lang.String value)Only select tasks which have a local string variable with the given value, case insensitive.TaskQuerytaskVariableValueGreaterThan(java.lang.String name, java.lang.Object value)Only select tasks which have a local variable value greater than the passed value when they ended.TaskQuerytaskVariableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)Only select tasks which have a local variable value greater than or equal to the passed value when they ended.TaskQuerytaskVariableValueLessThan(java.lang.String name, java.lang.Object value)Only select tasks which have a local variable value less than the passed value when the ended.Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.TaskQuerytaskVariableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)Only select tasks which have a local variable value less than or equal to the passed value when they ended.TaskQuerytaskVariableValueLike(java.lang.String name, java.lang.String value)Only select tasks which have a local variable value like the given value when they ended.TaskQuerytaskVariableValueLikeIgnoreCase(java.lang.String name, java.lang.String value)Only select tasks which have a local variable value like the given value (case insensitive) when they ended.TaskQuerytaskVariableValueNotEquals(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.TaskQuerytaskVariableValueNotEqualsIgnoreCase(java.lang.String name, java.lang.String value)Only select tasks which have a local string variable with is not the given value, case insensitive.TaskQuerytaskWithoutTenantId()Only select tasks that do not have a tenant id.TaskQuerywithLocalizationFallback()Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.TaskQuerywithoutDueDate()TaskQuerywithoutTaskDueDate()Only select tasks with no due date.-
Methods inherited from class org.activiti.engine.impl.AbstractVariableQueryImpl
addVariable, getQueryVariableValues, hasLocalQueryVariableValue, hasNonLocalQueryVariableValue, isBoolean, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThan, variableValueLessThanOrEqual, variableValueLessThanOrEqual, variableValueLike, variableValueLike, variableValueLikeIgnoreCase, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEquals, variableValueNotEqualsIgnoreCase, variableValueNotEqualsIgnoreCase
-
Methods inherited from class org.activiti.engine.impl.AbstractQuery
addOrder, asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getDatabaseType, getOrderBy, getOrderByColumns, list, listPage, orderBy, orderBy, setCommandExecutor, setDatabaseType, singleResult
-
Methods inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameter
-
-
-
-
Field Detail
-
taskId
protected java.lang.String taskId
-
name
protected java.lang.String name
-
nameLike
protected java.lang.String nameLike
-
nameLikeIgnoreCase
protected java.lang.String nameLikeIgnoreCase
-
taskParentTaskId
protected java.lang.String taskParentTaskId
-
nameList
protected java.util.List<java.lang.String> nameList
-
nameListIgnoreCase
protected java.util.List<java.lang.String> nameListIgnoreCase
-
description
protected java.lang.String description
-
descriptionLike
protected java.lang.String descriptionLike
-
descriptionLikeIgnoreCase
protected java.lang.String descriptionLikeIgnoreCase
-
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
-
assigneeLikeIgnoreCase
protected java.lang.String assigneeLikeIgnoreCase
-
assigneeIds
protected java.util.List<java.lang.String> assigneeIds
-
involvedUser
protected java.lang.String involvedUser
-
involvedGroups
protected java.util.List<java.lang.String> involvedGroups
-
owner
protected java.lang.String owner
-
ownerLike
protected java.lang.String ownerLike
-
ownerLikeIgnoreCase
protected java.lang.String ownerLikeIgnoreCase
-
unassigned
protected boolean unassigned
-
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
-
tenantId
protected java.lang.String tenantId
-
tenantIdLike
protected java.lang.String tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
processInstanceId
protected java.lang.String processInstanceId
-
processInstanceIds
protected java.util.List<java.lang.String> processInstanceIds
-
executionId
protected java.lang.String executionId
-
createTime
protected java.util.Date createTime
-
createTimeBefore
protected java.util.Date createTimeBefore
-
createTimeAfter
protected java.util.Date createTimeAfter
-
category
protected java.lang.String category
-
key
protected java.lang.String key
-
keyLike
protected java.lang.String keyLike
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
processDefinitionKeyLike
protected java.lang.String processDefinitionKeyLike
-
processDefinitionKeyLikeIgnoreCase
protected java.lang.String processDefinitionKeyLikeIgnoreCase
-
processDefinitionKeys
protected java.util.List<java.lang.String> processDefinitionKeys
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processDefinitionName
protected java.lang.String processDefinitionName
-
processDefinitionNameLike
protected java.lang.String processDefinitionNameLike
-
processCategoryInList
protected java.util.List<java.lang.String> processCategoryInList
-
processCategoryNotInList
protected java.util.List<java.lang.String> processCategoryNotInList
-
deploymentId
protected java.lang.String deploymentId
-
deploymentIds
protected java.util.List<java.lang.String> deploymentIds
-
processInstanceBusinessKey
protected java.lang.String processInstanceBusinessKey
-
processInstanceBusinessKeyLike
protected java.lang.String processInstanceBusinessKeyLike
-
processInstanceBusinessKeyLikeIgnoreCase
protected java.lang.String processInstanceBusinessKeyLikeIgnoreCase
-
dueDate
protected java.util.Date dueDate
-
dueBefore
protected java.util.Date dueBefore
-
dueAfter
protected java.util.Date dueAfter
-
withoutDueDate
protected boolean withoutDueDate
-
suspensionState
protected SuspensionState suspensionState
-
excludeSubtasks
protected boolean excludeSubtasks
-
includeTaskLocalVariables
protected boolean includeTaskLocalVariables
-
includeProcessVariables
protected boolean includeProcessVariables
-
taskVariablesLimit
protected java.lang.Integer taskVariablesLimit
-
userIdForCandidateAndAssignee
protected java.lang.String userIdForCandidateAndAssignee
-
bothCandidateAndAssigned
protected boolean bothCandidateAndAssigned
-
locale
protected java.lang.String locale
-
withLocalizationFallback
protected boolean withLocalizationFallback
-
orActive
protected boolean orActive
-
orQueryObjects
protected java.util.List<TaskQueryImpl> orQueryObjects
-
currentOrQueryObject
protected TaskQueryImpl currentOrQueryObject
-
-
Constructor Detail
-
TaskQueryImpl
public TaskQueryImpl()
-
TaskQueryImpl
public TaskQueryImpl(CommandContext commandContext)
-
TaskQueryImpl
public TaskQueryImpl(CommandExecutor commandExecutor)
-
TaskQueryImpl
public TaskQueryImpl(CommandExecutor commandExecutor, java.lang.String databaseType)
-
-
Method Detail
-
taskId
public TaskQueryImpl taskId(java.lang.String taskId)
Description copied from interface:TaskInfoQueryOnly select tasks with the given task id (in practice, there will be maximum one of this kind)- Specified by:
taskIdin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskName
public TaskQueryImpl taskName(java.lang.String name)
Description copied from interface:TaskInfoQueryOnly select tasks with the given name- Specified by:
taskNamein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskNameIn
public TaskQuery taskNameIn(java.util.List<java.lang.String> nameList)
Description copied from interface:TaskInfoQueryOnly select tasks with a name that is in the given list- Specified by:
taskNameInin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskNameInIgnoreCase
public TaskQuery taskNameInIgnoreCase(java.util.List<java.lang.String> nameList)
Description copied from interface:TaskInfoQueryOnly select tasks with a name that is in the given list This method, unlike theTaskInfoQuery.taskNameIn(List)method will not take in account the upper/lower case: both the input parameters as the column value are lowercased when the query is executed.- Specified by:
taskNameInIgnoreCasein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskNameLike
public TaskQueryImpl taskNameLike(java.lang.String nameLike)
Description copied from interface:TaskInfoQueryOnly select tasks with a name matching the parameter. The syntax is that of SQL: for example usage: nameLike(%activiti%)- Specified by:
taskNameLikein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskNameLikeIgnoreCase
public TaskQuery taskNameLikeIgnoreCase(java.lang.String nameLikeIgnoreCase)
Description copied from interface:TaskInfoQueryOnly select tasks with a name matching the parameter. The syntax is that of SQL: for example usage: nameLike(%activiti%) This method, unlike theTaskInfoQuery.taskNameLike(String)method will not take in account the upper/lower case: both the input parameter as the column value are lowercased when the query is executed.- Specified by:
taskNameLikeIgnoreCasein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskDescription
public TaskQueryImpl taskDescription(java.lang.String description)
Description copied from interface:TaskInfoQueryOnly select tasks with the given description.- Specified by:
taskDescriptionin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskDescriptionLike
public TaskQuery taskDescriptionLike(java.lang.String descriptionLike)
Description copied from interface:TaskInfoQueryOnly select tasks with a description matching the parameter . The syntax is that of SQL: for example usage: descriptionLike(%activiti%)- Specified by:
taskDescriptionLikein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskDescriptionLikeIgnoreCase
public TaskQuery taskDescriptionLikeIgnoreCase(java.lang.String descriptionLikeIgnoreCase)
Description copied from interface:TaskInfoQueryOnly select tasks with a description matching the parameter . The syntax is that of SQL: for example usage: descriptionLike(%activiti%) This method, unlike theTaskInfoQuery.taskDescriptionLike(String)method will not take in account the upper/lower case: both the input parameter as the column value are lowercased when the query is executed.- Specified by:
taskDescriptionLikeIgnoreCasein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskPriority
public TaskQuery taskPriority(java.lang.Integer priority)
Description copied from interface:TaskInfoQueryOnly select tasks with the given priority.- Specified by:
taskPriorityin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskMinPriority
public TaskQuery taskMinPriority(java.lang.Integer minPriority)
Description copied from interface:TaskInfoQueryOnly select tasks with the given priority or higher.- Specified by:
taskMinPriorityin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskMaxPriority
public TaskQuery taskMaxPriority(java.lang.Integer maxPriority)
Description copied from interface:TaskInfoQueryOnly select tasks with the given priority or lower.- Specified by:
taskMaxPriorityin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskAssignee
public TaskQueryImpl taskAssignee(java.lang.String assignee)
Description copied from interface:TaskInfoQueryOnly select tasks which are assigned to the given user.- Specified by:
taskAssigneein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskAssigneeLike
public TaskQueryImpl taskAssigneeLike(java.lang.String assigneeLike)
Description copied from interface:TaskInfoQueryOnly select tasks which were last assigned to an assignee like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.- Specified by:
taskAssigneeLikein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskAssigneeLikeIgnoreCase
public TaskQuery taskAssigneeLikeIgnoreCase(java.lang.String assigneeLikeIgnoreCase)
Description copied from interface:TaskInfoQueryOnly select tasks which were last assigned to an assignee like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%. This method, unlike theTaskInfoQuery.taskAssigneeLike(String)method will not take in account the upper/lower case: both the input parameter as the column value are lowercased when the query is executed.- Specified by:
taskAssigneeLikeIgnoreCasein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskAssigneeIds
public TaskQuery taskAssigneeIds(java.util.List<java.lang.String> assigneeIds)
Description copied from interface:TaskInfoQueryOnly select tasks with an assignee that is in the given list- Specified by:
taskAssigneeIdsin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskOwner
public TaskQueryImpl taskOwner(java.lang.String owner)
Description copied from interface:TaskInfoQueryOnly select tasks for which the given user is the owner.- Specified by:
taskOwnerin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskOwnerLike
public TaskQueryImpl taskOwnerLike(java.lang.String ownerLike)
Description copied from interface:TaskInfoQueryOnly select tasks which were last assigned to an owner like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.- Specified by:
taskOwnerLikein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskOwnerLikeIgnoreCase
public TaskQuery taskOwnerLikeIgnoreCase(java.lang.String ownerLikeIgnoreCase)
Description copied from interface:TaskInfoQueryOnly select tasks which were last assigned to an owner like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%. This method, unlike theTaskInfoQuery.taskOwnerLike(String)method will not take in account the upper/lower case: both the input parameter as the column value are lowercased when the query is executed.- Specified by:
taskOwnerLikeIgnoreCasein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskUnassigned
public TaskQuery taskUnassigned()
Description copied from interface:TaskQueryOnly select tasks which don't have an assignee.- Specified by:
taskUnassignedin 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(java.lang.String candidateUser)
Description copied from interface:TaskInfoQueryOnly select tasks for which the given user is a candidate. If identity service is available then also through user's groups.- Specified by:
taskCandidateUserin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskCandidateUser
public TaskQueryImpl taskCandidateUser(java.lang.String candidateUser, java.util.List<java.lang.String> usersGroups)
Description copied from interface:TaskInfoQueryOnly select tasks for which the given user is a candidate.- Specified by:
taskCandidateUserin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskInvolvedUser
public TaskQueryImpl taskInvolvedUser(java.lang.String involvedUser)
Description copied from interface:TaskInfoQueryOnly select tasks for which there exist anIdentityLinkwith the given user, including tasks which have been assigned to the given user (assignee) or owned by the given user (owner).- Specified by:
taskInvolvedUserin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskInvolvedGroupsIn
public TaskQueryImpl taskInvolvedGroupsIn(java.util.List<java.lang.String> involvedGroups)
Description copied from interface:TaskInfoQueryOnly select tasks for users involved in the given groups- Specified by:
taskInvolvedGroupsInin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskCandidateGroup
public TaskQueryImpl taskCandidateGroup(java.lang.String candidateGroup)
Description copied from interface:TaskInfoQueryOnly select tasks for which users in the given group are candidates.- Specified by:
taskCandidateGroupin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskCandidateOrAssigned
public TaskQuery taskCandidateOrAssigned(java.lang.String userIdForCandidateAndAssignee)
Description copied from interface:TaskQuerySelect tasks that has been claimed or assigned to user or waiting to claim by user (candidate user or groups). You can invokeTaskInfoQuery.taskCandidateGroupIn(List)to include tasks that can be claimed by a user in the given groups while set property dbIdentityUsed to false in process engine configuration or using custom session factory of GroupIdentityManager.- Specified by:
taskCandidateOrAssignedin interfaceTaskQuery
-
taskCandidateOrAssigned
public TaskQuery taskCandidateOrAssigned(java.lang.String userIdForCandidateAndAssignee, java.util.List<java.lang.String> usersGroups)
Description copied from interface:TaskQuerySelect tasks that has been claimed or assigned to user or waiting to claim by user (candidate user or groups).- Specified by:
taskCandidateOrAssignedin interfaceTaskQuery
-
taskCandidateGroupIn
public TaskQuery taskCandidateGroupIn(java.util.List<java.lang.String> candidateGroups)
Description copied from interface:TaskInfoQueryOnly select tasks for which the 'candidateGroup' is one of the given groups.- Specified by:
taskCandidateGroupInin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskTenantId
public TaskQuery taskTenantId(java.lang.String tenantId)
Description copied from interface:TaskInfoQueryOnly select tasks that have the given tenant id.- Specified by:
taskTenantIdin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskTenantIdLike
public TaskQuery taskTenantIdLike(java.lang.String tenantIdLike)
Description copied from interface:TaskInfoQueryOnly select tasks with a tenant id like the given one.- Specified by:
taskTenantIdLikein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskWithoutTenantId
public TaskQuery taskWithoutTenantId()
Description copied from interface:TaskInfoQueryOnly select tasks that do not have a tenant id.- Specified by:
taskWithoutTenantIdin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskParentTaskId
public TaskQuery taskParentTaskId(java.lang.String parentTaskId)
- Specified by:
taskParentTaskIdin interfaceTaskInfoQuery<TaskQuery,Task>
-
processInstanceId
public TaskQueryImpl processInstanceId(java.lang.String processInstanceId)
Description copied from interface:TaskInfoQueryOnly select tasks for the given process instance id.- Specified by:
processInstanceIdin interfaceTaskInfoQuery<TaskQuery,Task>
-
processInstanceIdIn
public TaskQuery processInstanceIdIn(java.util.List<java.lang.String> processInstanceIds)
Description copied from interface:TaskInfoQueryOnly select tasks for the given process ids.- Specified by:
processInstanceIdInin interfaceTaskInfoQuery<TaskQuery,Task>
-
processInstanceBusinessKey
public TaskQueryImpl processInstanceBusinessKey(java.lang.String processInstanceBusinessKey)
Description copied from interface:TaskInfoQueryOnly select tasks foe the given business key- Specified by:
processInstanceBusinessKeyin interfaceTaskInfoQuery<TaskQuery,Task>
-
processInstanceBusinessKeyLike
public TaskQueryImpl processInstanceBusinessKeyLike(java.lang.String processInstanceBusinessKeyLike)
Description copied from interface:TaskInfoQueryOnly select tasks with a business key like the given value The syntax is that of SQL: for example usage: processInstanceBusinessKeyLike("%activiti%").- Specified by:
processInstanceBusinessKeyLikein interfaceTaskInfoQuery<TaskQuery,Task>
-
processInstanceBusinessKeyLikeIgnoreCase
public TaskQuery processInstanceBusinessKeyLikeIgnoreCase(java.lang.String processInstanceBusinessKeyLikeIgnoreCase)
Description copied from interface:TaskInfoQueryOnly select tasks with a business key like the given value The syntax is that of SQL: for example usage: processInstanceBusinessKeyLike("%activiti%"). This method, unlike theTaskInfoQuery.processInstanceBusinessKeyLike(String)method will not take in account the upper/lower case: both the input parameter as the column value are lowercased when the query is executed.- Specified by:
processInstanceBusinessKeyLikeIgnoreCasein interfaceTaskInfoQuery<TaskQuery,Task>
-
executionId
public TaskQueryImpl executionId(java.lang.String executionId)
Description copied from interface:TaskInfoQueryOnly select tasks for the given execution.- Specified by:
executionIdin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskCreatedOn
public TaskQueryImpl taskCreatedOn(java.util.Date createTime)
Description copied from interface:TaskInfoQueryOnly select tasks that are created on the given date.- Specified by:
taskCreatedOnin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskCreatedBefore
public TaskQuery taskCreatedBefore(java.util.Date before)
Description copied from interface:TaskInfoQueryOnly select tasks that are created before the given date.- Specified by:
taskCreatedBeforein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskCreatedAfter
public TaskQuery taskCreatedAfter(java.util.Date after)
Description copied from interface:TaskInfoQueryOnly select tasks that are created after the given date.- Specified by:
taskCreatedAfterin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskCategory
public TaskQuery taskCategory(java.lang.String category)
Description copied from interface:TaskInfoQueryOnly select tasks with the given category.- Specified by:
taskCategoryin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskDefinitionKey
public TaskQuery taskDefinitionKey(java.lang.String key)
Description copied from interface:TaskInfoQueryOnly select tasks with the given taskDefinitionKey. The task definition key is the id of the userTask: <userTask id="xxx" .../>- Specified by:
taskDefinitionKeyin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskDefinitionKeyLike
public TaskQuery taskDefinitionKeyLike(java.lang.String keyLike)
Description copied from interface:TaskInfoQueryOnly select tasks with a taskDefinitionKey that match the given parameter. The syntax is that of SQL: for example usage: taskDefinitionKeyLike("%activiti%"). The task definition key is the id of the userTask: <userTask id="xxx" .../>- Specified by:
taskDefinitionKeyLikein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskVariableValueEquals
public TaskQuery taskVariableValueEquals(java.lang.String variableName, java.lang.Object variableValue)
Description copied from interface:TaskInfoQueryOnly select tasks which have a local task variable with the given name set to the given value.- Specified by:
taskVariableValueEqualsin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskVariableValueEquals
public TaskQuery taskVariableValueEquals(java.lang.Object variableValue)
Description copied from interface:TaskInfoQueryOnly select tasks which have at least one local task variable with the given value.- Specified by:
taskVariableValueEqualsin interfaceTaskInfoQuery<TaskQuery,Task>
-
taskVariableValueEqualsIgnoreCase
public TaskQuery taskVariableValueEqualsIgnoreCase(java.lang.String name, java.lang.String value)
Description copied from interface:TaskInfoQueryOnly select tasks which have a local string variable with the given value, case insensitive.This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).
- Specified by:
taskVariableValueEqualsIgnoreCasein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskVariableValueNotEqualsIgnoreCase
public TaskQuery taskVariableValueNotEqualsIgnoreCase(java.lang.String name, java.lang.String value)
Description copied from interface:TaskInfoQueryOnly select tasks which have a local string variable with is not the given value, case insensitive.This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).
- Specified by:
taskVariableValueNotEqualsIgnoreCasein interfaceTaskInfoQuery<TaskQuery,Task>
-
taskVariableValueNotEquals
public TaskQuery taskVariableValueNotEquals(java.lang.String variableName, java.lang.Object variableValue)
Description copied from interface:TaskInfoQueryOnly 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 interfaceTaskInfoQuery<TaskQuery,Task>
-
taskVariableValueGreaterThan
public TaskQuery taskVariableValueGreaterThan(java.lang.String name, java.lang.Object value)
Description copied from interface:TaskInfoQueryOnly select tasks which have a local variable value greater than the passed value when they ended. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
taskVariableValueGreaterThanin interfaceTaskInfoQuery<TaskQuery,Task>- Parameters:
name- cannot be null.value- cannot be null.
-
taskVariableValueGreaterThanOrEqual
public TaskQuery taskVariableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)
Description copied from interface:TaskInfoQueryOnly select tasks which have a local variable value greater than or equal to the passed value when they ended. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
taskVariableValueGreaterThanOrEqualin interfaceTaskInfoQuery<TaskQuery,Task>- Parameters:
name- cannot be null.value- cannot be null.
-
taskVariableValueLessThan
public TaskQuery taskVariableValueLessThan(java.lang.String name, java.lang.Object value)
Description copied from interface:TaskInfoQueryOnly select tasks which have a local variable value less than the passed value when the ended.Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
taskVariableValueLessThanin interfaceTaskInfoQuery<TaskQuery,Task>- Parameters:
name- cannot be null.value- cannot be null.
-
taskVariableValueLessThanOrEqual
public TaskQuery taskVariableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)
Description copied from interface:TaskInfoQueryOnly select tasks which have a local variable value less than or equal to the passed value when they ended. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
taskVariableValueLessThanOrEqualin interfaceTaskInfoQuery<TaskQuery,Task>- Parameters:
name- cannot be null.value- cannot be null.
-
taskVariableValueLike
public TaskQuery taskVariableValueLike(java.lang.String name, java.lang.String value)
Description copied from interface:TaskInfoQueryOnly select tasks which have a local variable value like the given value when they ended. This can be used on string variables only.- Specified by:
taskVariableValueLikein interfaceTaskInfoQuery<TaskQuery,Task>- Parameters:
name- cannot be null.value- cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
taskVariableValueLikeIgnoreCase
public TaskQuery taskVariableValueLikeIgnoreCase(java.lang.String name, java.lang.String value)
Description copied from interface:TaskInfoQueryOnly select tasks which have a local variable value like the given value (case insensitive) when they ended. This can be used on string variables only.- Specified by:
taskVariableValueLikeIgnoreCasein interfaceTaskInfoQuery<TaskQuery,Task>- Parameters:
name- cannot be null.value- cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
processVariableValueEquals
public TaskQuery processVariableValueEquals(java.lang.String variableName, java.lang.Object variableValue)
Description copied from interface:TaskInfoQueryOnly select tasks which are part of a process that has a variable with the given name set to the given value.- Specified by:
processVariableValueEqualsin interfaceTaskInfoQuery<TaskQuery,Task>
-
processVariableValueNotEquals
public TaskQuery processVariableValueNotEquals(java.lang.String variableName, java.lang.Object variableValue)
Description copied from interface:TaskInfoQueryOnly 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 interfaceTaskInfoQuery<TaskQuery,Task>
-
processVariableValueEquals
public TaskQuery processVariableValueEquals(java.lang.Object variableValue)
Description copied from interface:TaskInfoQueryOnly select tasks which are part of a process that has at least one variable with the given value.- Specified by:
processVariableValueEqualsin interfaceTaskInfoQuery<TaskQuery,Task>
-
processVariableValueEqualsIgnoreCase
public TaskQuery processVariableValueEqualsIgnoreCase(java.lang.String name, java.lang.String value)
Description copied from interface:TaskInfoQueryOnly select tasks which are part of a process that has a local string variable which is not the given value, case insensitive.This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).
- Specified by:
processVariableValueEqualsIgnoreCasein interfaceTaskInfoQuery<TaskQuery,Task>
-
processVariableValueNotEqualsIgnoreCase
public TaskQuery processVariableValueNotEqualsIgnoreCase(java.lang.String name, java.lang.String value)
Description copied from interface:TaskInfoQueryOnly select tasks which are part of a process that has a string variable with the given value, case insensitive.This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).
- Specified by:
processVariableValueNotEqualsIgnoreCasein interfaceTaskInfoQuery<TaskQuery,Task>
-
processVariableValueGreaterThan
public TaskQuery processVariableValueGreaterThan(java.lang.String name, java.lang.Object value)
Description copied from interface:TaskInfoQueryOnly select tasks which have a global variable value greater than the passed value when they ended. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueGreaterThanin interfaceTaskInfoQuery<TaskQuery,Task>- Parameters:
name- cannot be null.value- cannot be null.
-
processVariableValueGreaterThanOrEqual
public TaskQuery processVariableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)
Description copied from interface:TaskInfoQueryOnly select tasks which have a global variable value greater than or equal to the passed value when they ended. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueGreaterThanOrEqualin interfaceTaskInfoQuery<TaskQuery,Task>- Parameters:
name- cannot be null.value- cannot be null.
-
processVariableValueLessThan
public TaskQuery processVariableValueLessThan(java.lang.String name, java.lang.Object value)
Description copied from interface:TaskInfoQueryOnly select tasks which have a global variable value less than the passed value when the ended.Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueLessThanin interfaceTaskInfoQuery<TaskQuery,Task>- Parameters:
name- cannot be null.value- cannot be null.
-
processVariableValueLessThanOrEqual
public TaskQuery processVariableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)
Description copied from interface:TaskInfoQueryOnly select tasks which have a global variable value less than or equal to the passed value when they ended. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueLessThanOrEqualin interfaceTaskInfoQuery<TaskQuery,Task>- Parameters:
name- cannot be null.value- cannot be null.
-
processVariableValueLike
public TaskQuery processVariableValueLike(java.lang.String name, java.lang.String value)
Description copied from interface:TaskInfoQueryOnly select tasks which have a global variable value like the given value when they ended. This can be used on string variables only.- Specified by:
processVariableValueLikein interfaceTaskInfoQuery<TaskQuery,Task>- Parameters:
name- cannot be null.value- cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
processVariableValueLikeIgnoreCase
public TaskQuery processVariableValueLikeIgnoreCase(java.lang.String name, java.lang.String value)
Description copied from interface:TaskInfoQueryOnly select tasks which have a global variable value like the given value (case insensitive) when they ended. This can be used on string variables only.- Specified by:
processVariableValueLikeIgnoreCasein interfaceTaskInfoQuery<TaskQuery,Task>- Parameters:
name- cannot be null.value- cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
processDefinitionKey
public TaskQuery processDefinitionKey(java.lang.String processDefinitionKey)
Description copied from interface:TaskInfoQueryOnly select tasks which are part of a process instance which has the given process definition key.- Specified by:
processDefinitionKeyin interfaceTaskInfoQuery<TaskQuery,Task>
-
processDefinitionKeyLike
public TaskQuery processDefinitionKeyLike(java.lang.String processDefinitionKeyLike)
Description copied from interface:TaskInfoQueryOnly select tasks which are part of a process instance which has a process definition key like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.- Specified by:
processDefinitionKeyLikein interfaceTaskInfoQuery<TaskQuery,Task>
-
processDefinitionKeyLikeIgnoreCase
public TaskQuery processDefinitionKeyLikeIgnoreCase(java.lang.String processDefinitionKeyLikeIgnoreCase)
Description copied from interface:TaskInfoQueryOnly select tasks which are part of a process instance which has a process definition key like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%. This method, unlike theTaskInfoQuery.processDefinitionKeyLike(String)method will not take in account the upper/lower case: both the input parameter as the column value are lowercased when the query is executed.- Specified by:
processDefinitionKeyLikeIgnoreCasein interfaceTaskInfoQuery<TaskQuery,Task>
-
processDefinitionKeyIn
public TaskQuery processDefinitionKeyIn(java.util.List<java.lang.String> processDefinitionKeys)
Description copied from interface:TaskInfoQueryOnly select tasks that have a process definition for which the key is present in the given list- Specified by:
processDefinitionKeyInin interfaceTaskInfoQuery<TaskQuery,Task>
-
processDefinitionId
public TaskQuery processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:TaskInfoQueryOnly select tasks which are part of a process instance which has the given process definition id.- Specified by:
processDefinitionIdin interfaceTaskInfoQuery<TaskQuery,Task>
-
processDefinitionName
public TaskQuery processDefinitionName(java.lang.String processDefinitionName)
Description copied from interface:TaskInfoQueryOnly select tasks which are part of a process instance which has the given process definition name.- Specified by:
processDefinitionNamein interfaceTaskInfoQuery<TaskQuery,Task>
-
processDefinitionNameLike
public TaskQuery processDefinitionNameLike(java.lang.String processDefinitionNameLike)
Description copied from interface:TaskInfoQueryOnly select tasks which are part of a process instance which has a process definition name like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.- Specified by:
processDefinitionNameLikein interfaceTaskInfoQuery<TaskQuery,Task>
-
processCategoryIn
public TaskQuery processCategoryIn(java.util.List<java.lang.String> processCategoryInList)
Description copied from interface:TaskInfoQueryOnly select tasks which are part of a process instance whose definition belongs to the category which is present in the given list.- Specified by:
processCategoryInin interfaceTaskInfoQuery<TaskQuery,Task>
-
processCategoryNotIn
public TaskQuery processCategoryNotIn(java.util.List<java.lang.String> processCategoryNotInList)
Description copied from interface:TaskInfoQueryOnly select tasks which are part of a process instance whose definition does not belong to the category which is present in the given list.- Specified by:
processCategoryNotInin interfaceTaskInfoQuery<TaskQuery,Task>
-
deploymentId
public TaskQuery deploymentId(java.lang.String deploymentId)
Description copied from interface:TaskInfoQueryOnly select tasks which are part of a process instance which has the given deployment id.- Specified by:
deploymentIdin interfaceTaskInfoQuery<TaskQuery,Task>
-
deploymentIdIn
public TaskQuery deploymentIdIn(java.util.List<java.lang.String> deploymentIds)
Description copied from interface:TaskInfoQueryOnly select tasks which are part of a process instance which has the given deployment id.- Specified by:
deploymentIdInin interfaceTaskInfoQuery<TaskQuery,Task>
-
dueDate
public TaskQuery dueDate(java.util.Date dueDate)
-
taskDueDate
public TaskQuery taskDueDate(java.util.Date dueDate)
Description copied from interface:TaskInfoQueryOnly select tasks with the given due date.- Specified by:
taskDueDatein interfaceTaskInfoQuery<TaskQuery,Task>
-
dueBefore
public TaskQuery dueBefore(java.util.Date dueBefore)
-
taskDueBefore
public TaskQuery taskDueBefore(java.util.Date dueDate)
Description copied from interface:TaskInfoQueryOnly select tasks which have a due date before the given date.- Specified by:
taskDueBeforein interfaceTaskInfoQuery<TaskQuery,Task>
-
dueAfter
public TaskQuery dueAfter(java.util.Date dueAfter)
-
taskDueAfter
public TaskQuery taskDueAfter(java.util.Date dueDate)
Description copied from interface:TaskInfoQueryOnly select tasks which have a due date after the given date.- Specified by:
taskDueAfterin interfaceTaskInfoQuery<TaskQuery,Task>
-
withoutDueDate
public TaskQuery withoutDueDate()
-
withoutTaskDueDate
public TaskQuery withoutTaskDueDate()
Description copied from interface:TaskInfoQueryOnly select tasks with no due date.- Specified by:
withoutTaskDueDatein interfaceTaskInfoQuery<TaskQuery,Task>
-
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
-
suspended
public TaskQuery suspended()
Description copied from interface:TaskQueryOnly selects tasks which are suspended, because its process instance was suspended.
-
active
public TaskQuery active()
Description copied from interface:TaskQueryOnly selects tasks which are active (ie. not suspended)
-
locale
public TaskQuery locale(java.lang.String locale)
Description copied from interface:TaskInfoQueryLocalize task name and description to specified locale.- Specified by:
localein interfaceTaskInfoQuery<TaskQuery,Task>
-
withLocalizationFallback
public TaskQuery withLocalizationFallback()
Description copied from interface:TaskInfoQueryInstruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.- Specified by:
withLocalizationFallbackin interfaceTaskInfoQuery<TaskQuery,Task>
-
includeTaskLocalVariables
public TaskQuery includeTaskLocalVariables()
Description copied from interface:TaskInfoQueryInclude local task variables in the task query result- Specified by:
includeTaskLocalVariablesin interfaceTaskInfoQuery<TaskQuery,Task>
-
includeProcessVariables
public TaskQuery includeProcessVariables()
Description copied from interface:TaskInfoQueryInclude global task variables in the task query result- Specified by:
includeProcessVariablesin interfaceTaskInfoQuery<TaskQuery,Task>
-
limitTaskVariables
public TaskQuery limitTaskVariables(java.lang.Integer taskVariablesLimit)
Description copied from interface:TaskInfoQueryLimit task variables- Specified by:
limitTaskVariablesin interfaceTaskInfoQuery<TaskQuery,Task>
-
getTaskVariablesLimit
public java.lang.Integer getTaskVariablesLimit()
-
getCandidateGroups
public java.util.List<java.lang.String> getCandidateGroups()
-
getGroupsForCandidateUser
protected java.util.List<java.lang.String> getGroupsForCandidateUser(java.lang.String candidateUser)
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
- Overrides:
ensureVariablesInitializedin classAbstractVariableQueryImpl<TaskQuery,Task>
-
or
public TaskQuery or()
Description copied from interface:TaskInfoQueryAll query clauses called will be added to a single or-statement. This or-statement will be included with the other already existing clauses in the query, joined by an 'and'. Calling endOr() will add all clauses to the regular query again. Calling or() after endOr() has been called will result in an exception.- Specified by:
orin interfaceTaskInfoQuery<TaskQuery,Task>
-
endOr
public TaskQuery endOr()
- Specified by:
endOrin interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByTaskId
public TaskQuery orderByTaskId()
Description copied from interface:TaskInfoQueryOrder by task id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskIdin interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByTaskName
public TaskQuery orderByTaskName()
Description copied from interface:TaskInfoQueryOrder by task name (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskNamein interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByTaskDescription
public TaskQuery orderByTaskDescription()
Description copied from interface:TaskInfoQueryOrder by description (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskDescriptionin interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByTaskPriority
public TaskQuery orderByTaskPriority()
Description copied from interface:TaskInfoQueryOrder by priority (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskPriorityin interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByProcessInstanceId
public TaskQuery orderByProcessInstanceId()
Description copied from interface:TaskInfoQueryOrder by process instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByExecutionId
public TaskQuery orderByExecutionId()
Description copied from interface:TaskInfoQueryOrder by execution id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByProcessDefinitionId
public TaskQuery orderByProcessDefinitionId()
Description copied from interface:TaskInfoQueryOrder by process definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByTaskAssignee
public TaskQuery orderByTaskAssignee()
Description copied from interface:TaskInfoQueryOrder by assignee (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskAssigneein interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByTaskOwner
public TaskQuery orderByTaskOwner()
Description copied from interface:TaskInfoQueryOrder by task owner (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskOwnerin interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByTaskCreateTime
public TaskQuery orderByTaskCreateTime()
Description copied from interface:TaskInfoQueryOrder by the time on which the tasks were created (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskCreateTimein interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByDueDate
public TaskQuery orderByDueDate()
-
orderByTaskDueDate
public TaskQuery orderByTaskDueDate()
Description copied from interface:TaskInfoQueryOrder by task due date (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskDueDatein interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByTaskDefinitionKey
public TaskQuery orderByTaskDefinitionKey()
Description copied from interface:TaskInfoQueryOrder by task definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskDefinitionKeyin interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByDueDateNullsFirst
public TaskQuery orderByDueDateNullsFirst()
Description copied from interface:TaskInfoQueryOrder by due date (needs to be followed byQuery.asc()orQuery.desc()). If any of the tasks have null for the due date, these will be first in the result.- Specified by:
orderByDueDateNullsFirstin interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByDueDateNullsLast
public TaskQuery orderByDueDateNullsLast()
Description copied from interface:TaskInfoQueryOrder by due date (needs to be followed byQuery.asc()orQuery.desc()). If any of the tasks have null for the due date, these will be last in the result.- Specified by:
orderByDueDateNullsLastin interfaceTaskInfoQuery<TaskQuery,Task>
-
orderByTenantId
public TaskQuery orderByTenantId()
Description copied from interface:TaskInfoQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceTaskInfoQuery<TaskQuery,Task>
-
getMssqlOrDB2OrderBy
public java.lang.String getMssqlOrDB2OrderBy()
-
executeList
public java.util.List<Task> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<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 classAbstractVariableQueryImpl<TaskQuery,Task>
-
localize
protected void localize(Task task)
-
getName
public java.lang.String getName()
-
getNameLike
public java.lang.String getNameLike()
-
getNameList
public java.util.List<java.lang.String> getNameList()
-
getNameListIgnoreCase
public java.util.List<java.lang.String> getNameListIgnoreCase()
-
getAssignee
public java.lang.String getAssignee()
-
getUnassigned
public boolean getUnassigned()
-
getDelegationState
public DelegationState getDelegationState()
-
getNoDelegationState
public boolean getNoDelegationState()
-
getDelegationStateString
public java.lang.String getDelegationStateString()
-
getCandidateUser
public java.lang.String getCandidateUser()
-
getCandidateGroup
public java.lang.String getCandidateGroup()
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
-
getProcessInstanceIds
public java.util.List<java.lang.String> getProcessInstanceIds()
-
getExecutionId
public java.lang.String getExecutionId()
-
getTaskId
public java.lang.String getTaskId()
-
getDescription
public java.lang.String getDescription()
-
getDescriptionLike
public java.lang.String getDescriptionLike()
-
getPriority
public java.lang.Integer getPriority()
-
getCreateTime
public java.util.Date getCreateTime()
-
getCreateTimeBefore
public java.util.Date getCreateTimeBefore()
-
getCreateTimeAfter
public java.util.Date getCreateTimeAfter()
-
getKey
public java.lang.String getKey()
-
getKeyLike
public java.lang.String getKeyLike()
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
getProcessDefinitionName
public java.lang.String getProcessDefinitionName()
-
getProcessInstanceBusinessKey
public java.lang.String getProcessInstanceBusinessKey()
-
getExcludeSubtasks
public boolean getExcludeSubtasks()
-
getTenantId
public java.lang.String getTenantId()
-
getTenantIdLike
public java.lang.String getTenantIdLike()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
getUserIdForCandidateAndAssignee
public java.lang.String getUserIdForCandidateAndAssignee()
-
getOrQueryObjects
public java.util.List<TaskQueryImpl> getOrQueryObjects()
-
setOrQueryObjects
public void setOrQueryObjects(java.util.List<TaskQueryImpl> orQueryObjects)
-
getMinPriority
public java.lang.Integer getMinPriority()
-
getMaxPriority
public java.lang.Integer getMaxPriority()
-
getAssigneeLike
public java.lang.String getAssigneeLike()
-
getAssigneeIds
public java.util.List<java.lang.String> getAssigneeIds()
-
getInvolvedUser
public java.lang.String getInvolvedUser()
-
getInvolvedGroups
public java.util.List<java.lang.String> getInvolvedGroups()
-
getOwner
public java.lang.String getOwner()
-
getOwnerLike
public java.lang.String getOwnerLike()
-
getTaskParentTaskId
public java.lang.String getTaskParentTaskId()
-
getCategory
public java.lang.String getCategory()
-
getProcessDefinitionKeyLike
public java.lang.String getProcessDefinitionKeyLike()
-
getProcessDefinitionKeys
public java.util.List<java.lang.String> getProcessDefinitionKeys()
-
getProcessDefinitionNameLike
public java.lang.String getProcessDefinitionNameLike()
-
getProcessCategoryInList
public java.util.List<java.lang.String> getProcessCategoryInList()
-
getProcessCategoryNotInList
public java.util.List<java.lang.String> getProcessCategoryNotInList()
-
getDeploymentId
public java.lang.String getDeploymentId()
-
getDeploymentIds
public java.util.List<java.lang.String> getDeploymentIds()
-
getProcessInstanceBusinessKeyLike
public java.lang.String getProcessInstanceBusinessKeyLike()
-
getDueDate
public java.util.Date getDueDate()
-
getDueBefore
public java.util.Date getDueBefore()
-
getDueAfter
public java.util.Date getDueAfter()
-
isWithoutDueDate
public boolean isWithoutDueDate()
-
getSuspensionState
public SuspensionState getSuspensionState()
-
isIncludeTaskLocalVariables
public boolean isIncludeTaskLocalVariables()
-
isIncludeProcessVariables
public boolean isIncludeProcessVariables()
-
isBothCandidateAndAssigned
public boolean isBothCandidateAndAssigned()
-
getNameLikeIgnoreCase
public java.lang.String getNameLikeIgnoreCase()
-
getDescriptionLikeIgnoreCase
public java.lang.String getDescriptionLikeIgnoreCase()
-
getAssigneeLikeIgnoreCase
public java.lang.String getAssigneeLikeIgnoreCase()
-
getOwnerLikeIgnoreCase
public java.lang.String getOwnerLikeIgnoreCase()
-
getProcessInstanceBusinessKeyLikeIgnoreCase
public java.lang.String getProcessInstanceBusinessKeyLikeIgnoreCase()
-
getProcessDefinitionKeyLikeIgnoreCase
public java.lang.String getProcessDefinitionKeyLikeIgnoreCase()
-
getLocale
public java.lang.String getLocale()
-
isOrActive
public boolean isOrActive()
-
-