public class TaskQueryImpl extends AbstractVariableQueryImpl<TaskQuery,Task> implements TaskQuery
AbstractQuery.NullHandlingOnOrderqueryVariableValuescommandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESCfirstResult, maxResults, parameter| Constructor and Description |
|---|
TaskQueryImpl() |
TaskQueryImpl(CommandContext commandContext) |
TaskQueryImpl(CommandExecutor commandExecutor) |
TaskQueryImpl(CommandExecutor commandExecutor,
String databaseType) |
| Modifier and Type | Method and Description |
|---|---|
TaskQuery |
active()
Only selects tasks which are active (ie.
|
TaskQuery |
deploymentId(String deploymentId)
Only select tasks which are part of a process instance which has the given
deployment id.
|
TaskQuery |
deploymentIdIn(List<String> deploymentIds)
Only select tasks which are part of a process instance which has the given
deployment id.
|
TaskQuery |
dueAfter(Date dueAfter)
Only select tasks which have a due date after the given date.
|
TaskQuery |
dueBefore(Date dueBefore)
Only select tasks which have a due date before the given date.
|
TaskQuery |
dueDate(Date dueDate)
Only select tasks with the given due date.
|
TaskQuery |
endOr() |
protected void |
ensureVariablesInitialized() |
TaskQuery |
excludeSubtasks()
Only select tasks that have no parent (i.e.
|
long |
executeCount(CommandContext commandContext) |
List<Task> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
TaskQueryImpl |
executionId(String executionId)
Only select tasks for the given execution.
|
String |
getAssignee() |
String |
getAssigneeLike() |
String |
getAssigneeLikeIgnoreCase() |
String |
getCandidateGroup() |
List<String> |
getCandidateGroups() |
String |
getCandidateUser() |
String |
getCategory() |
Date |
getCreateTime() |
Date |
getCreateTimeAfter() |
Date |
getCreateTimeBefore() |
DelegationState |
getDelegationState() |
String |
getDelegationStateString() |
String |
getDeploymentId() |
List<String> |
getDeploymentIds() |
String |
getDescription() |
String |
getDescriptionLike() |
String |
getDescriptionLikeIgnoreCase() |
Date |
getDueAfter() |
Date |
getDueBefore() |
Date |
getDueDate() |
boolean |
getExcludeSubtasks() |
String |
getExecutionId() |
protected List<String> |
getGroupsForCandidateUser(String candidateUser) |
String |
getInvolvedUser() |
String |
getKey() |
String |
getKeyLike() |
Integer |
getMaxPriority() |
Integer |
getMinPriority() |
String |
getMssqlOrDB2OrderBy() |
String |
getName() |
String |
getNameLike() |
String |
getNameLikeIgnoreCase() |
List<String> |
getNameList() |
List<String> |
getNameListIgnoreCase() |
boolean |
getNoDelegationState() |
List<TaskQueryImpl> |
getOrQueryObjects() |
String |
getOwner() |
String |
getOwnerLike() |
String |
getOwnerLikeIgnoreCase() |
Integer |
getPriority() |
List<String> |
getProcessCategoryInList() |
List<String> |
getProcessCategoryNotInList() |
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
String |
getProcessDefinitionKeyLike() |
String |
getProcessDefinitionKeyLikeIgnoreCase() |
List<String> |
getProcessDefinitionKeys() |
String |
getProcessDefinitionName() |
String |
getProcessDefinitionNameLike() |
String |
getProcessInstanceBusinessKey() |
String |
getProcessInstanceBusinessKeyLike() |
String |
getProcessInstanceBusinessKeyLikeIgnoreCase() |
String |
getProcessInstanceId() |
List<String> |
getProcessInstanceIds() |
SuspensionState |
getSuspensionState() |
String |
getTaskId() |
String |
getTenantId() |
String |
getTenantIdLike() |
boolean |
getUnassigned() |
String |
getUserIdForCandidateAndAssignee() |
TaskQuery |
includeProcessVariables()
Include global task variables in the task query result
|
TaskQuery |
includeTaskLocalVariables()
Include local task variables in the task query result
|
boolean |
isBothCandidateAndAssigned() |
boolean |
isIncludeProcessVariables() |
boolean |
isIncludeTaskLocalVariables() |
boolean |
isOrActive() |
boolean |
isWithoutDueDate() |
boolean |
isWithoutTenantId() |
TaskQuery |
locale(String locale)
Localize task name and description to specified locale.
|
protected void |
localize(Task task) |
TaskQuery |
or()
All query clauses called will be added to a single or-statement.
|
TaskQuery |
orderByDueDate()
Order by due date (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByDueDateNullsFirst()
Order by due date (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByDueDateNullsLast()
Order by due date (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByExecutionId()
Order by execution id (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByProcessDefinitionId()
Order by process definition id (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByProcessInstanceId()
Order by process instance id (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByTaskAssignee()
Order by assignee (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByTaskCreateTime()
Order by the time on which the tasks were created (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByTaskDefinitionKey()
Order by task definition key (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByTaskDescription()
Order by description (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByTaskDueDate()
Order by task due date (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByTaskId()
Order by task id (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByTaskName()
Order by task name (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByTaskOwner()
Order by task owner (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByTaskPriority()
Order by priority (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc()). |
TaskQuery |
processCategoryIn(List<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.
|
TaskQuery |
processCategoryNotIn(List<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.
|
TaskQuery |
processDefinitionId(String processDefinitionId)
Only select tasks which are part of a process instance which has the given
process definition id.
|
TaskQuery |
processDefinitionKey(String processDefinitionKey)
Only select tasks which are part of a process instance which has the given
process definition key.
|
TaskQuery |
processDefinitionKeyIn(List<String> processDefinitionKeys)
Only select tasks that have a process definition for which the key is present in the given list
|
TaskQuery |
processDefinitionKeyLike(String processDefinitionKeyLike)
Only select tasks which are part of a process instance which has a
process definition key like the given value.
|
TaskQuery |
processDefinitionKeyLikeIgnoreCase(String processDefinitionKeyLikeIgnoreCase)
Only select tasks which are part of a process instance which has a
process definition key like the given value.
|
TaskQuery |
processDefinitionName(String processDefinitionName)
Only select tasks which are part of a process instance which has the given
process definition name.
|
TaskQuery |
processDefinitionNameLike(String processDefinitionNameLike)
Only select tasks which are part of a process instance which has a
process definition name like the given value.
|
TaskQueryImpl |
processInstanceBusinessKey(String processInstanceBusinessKey)
Only select tasks foe the given business key
|
TaskQueryImpl |
processInstanceBusinessKeyLike(String processInstanceBusinessKeyLike)
Only select tasks with a business key like the given value
The syntax is that of SQL: for example usage: processInstanceBusinessKeyLike("%activiti%").
|
TaskQuery |
processInstanceBusinessKeyLikeIgnoreCase(String processInstanceBusinessKeyLikeIgnoreCase)
Only select tasks with a business key like the given value
The syntax is that of SQL: for example usage: processInstanceBusinessKeyLike("%activiti%").
|
TaskQueryImpl |
processInstanceId(String processInstanceId)
Only select tasks for the given process instance id.
|
TaskQuery |
processInstanceIdIn(List<String> processInstanceIds)
Only select tasks for the given process ids.
|
TaskQuery |
processVariableValueEquals(Object variableValue)
Only select tasks which are part of a process that has at least one variable
with the given value.
|
TaskQuery |
processVariableValueEquals(String variableName,
Object variableValue)
Only select tasks which are part of a process that has a variable
with the given name set to the given value.
|
TaskQuery |
processVariableValueEqualsIgnoreCase(String name,
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.
|
TaskQuery |
processVariableValueGreaterThan(String name,
Object value)
Only select tasks which have a global variable value greater than the
passed value when they ended.
|
TaskQuery |
processVariableValueGreaterThanOrEqual(String name,
Object value)
Only select tasks which have a global variable value greater than or
equal to the passed value when they ended.
|
TaskQuery |
processVariableValueLessThan(String name,
Object value)
Only select tasks which have a global variable value less than the
passed value when the ended.Booleans,
Byte-arrays and
Serializable objects (which are not primitive type
wrappers) are not supported. |
TaskQuery |
processVariableValueLessThanOrEqual(String name,
Object value)
Only select tasks which have a global variable value less than or equal
to the passed value when they ended.
|
TaskQuery |
processVariableValueLike(String name,
String value)
Only select tasks which have a global variable value like the given value
when they ended.
|
TaskQuery |
processVariableValueLikeIgnoreCase(String name,
String value)
Only select tasks which have a global variable value like the given value (case insensitive)
when they ended.
|
TaskQuery |
processVariableValueNotEquals(String variableName,
Object variableValue)
Only select tasks which have a variable with the given name, but
with a different value than the passed value.
|
TaskQuery |
processVariableValueNotEqualsIgnoreCase(String name,
String value)
Only select tasks which are part of a process that has a string variable with
the given value, case insensitive.
|
void |
setOrQueryObjects(List<TaskQueryImpl> orQueryObjects) |
TaskQuery |
suspended()
Only selects tasks which are suspended, because its process instance was suspended.
|
TaskQueryImpl |
taskAssignee(String assignee)
Only select tasks which are assigned to the given user.
|
TaskQueryImpl |
taskAssigneeLike(String assigneeLike)
Only select tasks which were last assigned to an assignee like
the given value.
|
TaskQuery |
taskAssigneeLikeIgnoreCase(String assigneeLikeIgnoreCase)
Only select tasks which were last assigned to an assignee like
the given value.
|
TaskQueryImpl |
taskCandidateGroup(String candidateGroup)
Only select tasks for which users in the given group are candidates.
|
TaskQuery |
taskCandidateGroupIn(List<String> candidateGroups)
Only select tasks for which the 'candidateGroup' is one of the given groups.
|
TaskQuery |
taskCandidateOrAssigned(String userIdForCandidateAndAssignee)
Select tasks that has been claimed or assigned to user or waiting to claim by user (candidate user or groups).
|
TaskQueryImpl |
taskCandidateUser(String candidateUser)
Only select tasks for which the given user is a candidate.
|
TaskQuery |
taskCategory(String category)
Only select tasks with the given category.
|
TaskQuery |
taskCreatedAfter(Date after)
Only select tasks that are created after the given date.
|
TaskQuery |
taskCreatedBefore(Date before)
Only select tasks that are created before the given date.
|
TaskQueryImpl |
taskCreatedOn(Date createTime)
Only select tasks that are created on the given date.
|
TaskQuery |
taskDefinitionKey(String key)
Only select tasks with the given taskDefinitionKey.
|
TaskQuery |
taskDefinitionKeyLike(String keyLike)
Only select tasks with a taskDefinitionKey that match the given parameter.
|
TaskQuery |
taskDelegationState(DelegationState delegationState)
Only select tasks with the given
DelegationState. |
TaskQueryImpl |
taskDescription(String description)
Only select tasks with the given description.
|
TaskQuery |
taskDescriptionLike(String descriptionLike)
Only select tasks with a description matching the parameter .
|
TaskQuery |
taskDescriptionLikeIgnoreCase(String descriptionLikeIgnoreCase)
Only select tasks with a description matching the parameter .
|
TaskQuery |
taskDueAfter(Date dueDate) |
TaskQuery |
taskDueBefore(Date dueDate) |
TaskQuery |
taskDueDate(Date dueDate) |
TaskQueryImpl |
taskId(String taskId)
Only select tasks with the given task id (in practice, there will be
maximum one of this kind)
|
TaskQueryImpl |
taskInvolvedUser(String involvedUser)
Only select tasks for which there exist an
IdentityLink with the given user, including tasks which have been
assigned to the given user (assignee) or owned by the given user (owner). |
TaskQuery |
taskMaxPriority(Integer maxPriority)
Only select tasks with the given priority or lower.
|
TaskQuery |
taskMinPriority(Integer minPriority)
Only select tasks with the given priority or higher.
|
TaskQueryImpl |
taskName(String name)
Only select tasks with the given name
|
TaskQuery |
taskNameIn(List<String> nameList)
Only select tasks with a name that is in the given list
|
TaskQuery |
taskNameInIgnoreCase(List<String> nameList)
Only select tasks with a name that is in the given list
This method, unlike the
TaskInfoQuery.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. |
TaskQueryImpl |
taskNameLike(String nameLike)
Only select tasks with a name matching the parameter.
|
TaskQuery |
taskNameLikeIgnoreCase(String nameLikeIgnoreCase)
Only select tasks with a name matching the parameter.
|
TaskQueryImpl |
taskOwner(String owner)
Only select tasks for which the given user is the owner.
|
TaskQueryImpl |
taskOwnerLike(String ownerLike)
Only select tasks which were last assigned to an owner like
the given value.
|
TaskQuery |
taskOwnerLikeIgnoreCase(String ownerLikeIgnoreCase)
Only select tasks which were last assigned to an owner like
the given value.
|
TaskQuery |
taskPriority(Integer priority)
Only select tasks with the given priority.
|
TaskQuery |
taskTenantId(String tenantId)
Only select tasks that have the given tenant id.
|
TaskQuery |
taskTenantIdLike(String tenantIdLike)
Only select tasks with a tenant id like the given one.
|
TaskQuery |
taskUnassigned()
Only select tasks which don't have an assignee.
|
TaskQuery |
taskUnnassigned()
Deprecated.
|
TaskQuery |
taskVariableValueEquals(Object variableValue)
Only select tasks which have at least one local task variable with the given value.
|
TaskQuery |
taskVariableValueEquals(String variableName,
Object variableValue)
Only select tasks which have a local task variable with the given name
set to the given value.
|
TaskQuery |
taskVariableValueEqualsIgnoreCase(String name,
String value)
Only select tasks which have a local string variable with the given value,
case insensitive.
|
TaskQuery |
taskVariableValueGreaterThan(String name,
Object value)
Only select tasks which have a local variable value greater than the
passed value when they ended.
|
TaskQuery |
taskVariableValueGreaterThanOrEqual(String name,
Object value)
Only select tasks which have a local variable value greater than or
equal to the passed value when they ended.
|
TaskQuery |
taskVariableValueLessThan(String name,
Object value)
Only select tasks which have a local variable value less than the
passed value when the ended.Booleans,
Byte-arrays and
Serializable objects (which are not primitive type
wrappers) are not supported. |
TaskQuery |
taskVariableValueLessThanOrEqual(String name,
Object value)
Only select tasks which have a local variable value less than or equal
to the passed value when they ended.
|
TaskQuery |
taskVariableValueLike(String name,
String value)
Only select tasks which have a local variable value like the given value
when they ended.
|
TaskQuery |
taskVariableValueLikeIgnoreCase(String name,
String value)
Only select tasks which have a local variable value like the given value (case insensitive)
when they ended.
|
TaskQuery |
taskVariableValueNotEquals(String variableName,
Object variableValue)
Only select tasks which have a local task variable with the given name, but
with a different value than the passed value.
|
TaskQuery |
taskVariableValueNotEqualsIgnoreCase(String name,
String value)
Only select tasks which have a local string variable with is not the given value,
case insensitive.
|
TaskQuery |
taskWithoutTenantId()
Only select tasks that do not have a tenant id.
|
TaskQuery |
withLocalizationFallback()
Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.
|
TaskQuery |
withoutDueDate()
Only select tasks with no due date.
|
TaskQuery |
withoutTaskDueDate() |
addVariable, getQueryVariableValues, isBoolean, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThan, variableValueLessThanOrEqual, variableValueLessThanOrEqual, variableValueLike, variableValueLike, variableValueLikeIgnoreCase, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEquals, variableValueNotEqualsIgnoreCase, variableValueNotEqualsIgnoreCaseaddOrder, asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getDatabaseType, getOrderBy, getOrderByColumns, list, listPage, orderBy, orderBy, setCommandExecutor, setDatabaseType, singleResultgetFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameterprotected String taskId
protected String name
protected String nameLike
protected String nameLikeIgnoreCase
protected String description
protected String descriptionLike
protected String descriptionLikeIgnoreCase
protected Integer priority
protected Integer minPriority
protected Integer maxPriority
protected String assignee
protected String assigneeLike
protected String assigneeLikeIgnoreCase
protected String involvedUser
protected String owner
protected String ownerLike
protected String ownerLikeIgnoreCase
protected boolean unassigned
protected boolean noDelegationState
protected DelegationState delegationState
protected String candidateUser
protected String candidateGroup
protected String tenantId
protected String tenantIdLike
protected boolean withoutTenantId
protected String processInstanceId
protected String executionId
protected Date createTime
protected Date createTimeBefore
protected Date createTimeAfter
protected String category
protected String key
protected String keyLike
protected String processDefinitionKey
protected String processDefinitionKeyLike
protected String processDefinitionKeyLikeIgnoreCase
protected String processDefinitionId
protected String processDefinitionName
protected String processDefinitionNameLike
protected String deploymentId
protected String processInstanceBusinessKey
protected String processInstanceBusinessKeyLike
protected String processInstanceBusinessKeyLikeIgnoreCase
protected Date dueDate
protected Date dueBefore
protected Date dueAfter
protected boolean withoutDueDate
protected SuspensionState suspensionState
protected boolean excludeSubtasks
protected boolean includeTaskLocalVariables
protected boolean includeProcessVariables
protected String userIdForCandidateAndAssignee
protected boolean bothCandidateAndAssigned
protected String locale
protected boolean withLocalizationFallback
protected boolean orActive
protected List<TaskQueryImpl> orQueryObjects
protected TaskQueryImpl currentOrQueryObject
public TaskQueryImpl()
public TaskQueryImpl(CommandContext commandContext)
public TaskQueryImpl(CommandExecutor commandExecutor)
public TaskQueryImpl(CommandExecutor commandExecutor, String databaseType)
public TaskQueryImpl taskId(String taskId)
TaskInfoQuerytaskId in interface TaskInfoQuery<TaskQuery,Task>public TaskQueryImpl taskName(String name)
TaskInfoQuerytaskName in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskNameIn(List<String> nameList)
TaskInfoQuerytaskNameIn in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskNameInIgnoreCase(List<String> nameList)
TaskInfoQueryTaskInfoQuery.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.taskNameInIgnoreCase in interface TaskInfoQuery<TaskQuery,Task>public TaskQueryImpl taskNameLike(String nameLike)
TaskInfoQuerytaskNameLike in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskNameLikeIgnoreCase(String nameLikeIgnoreCase)
TaskInfoQueryTaskInfoQuery.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.taskNameLikeIgnoreCase in interface TaskInfoQuery<TaskQuery,Task>public TaskQueryImpl taskDescription(String description)
TaskInfoQuerytaskDescription in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskDescriptionLike(String descriptionLike)
TaskInfoQuerytaskDescriptionLike in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskDescriptionLikeIgnoreCase(String descriptionLikeIgnoreCase)
TaskInfoQueryTaskInfoQuery.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.taskDescriptionLikeIgnoreCase in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskPriority(Integer priority)
TaskInfoQuerytaskPriority in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskMinPriority(Integer minPriority)
TaskInfoQuerytaskMinPriority in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskMaxPriority(Integer maxPriority)
TaskInfoQuerytaskMaxPriority in interface TaskInfoQuery<TaskQuery,Task>public TaskQueryImpl taskAssignee(String assignee)
TaskInfoQuerytaskAssignee in interface TaskInfoQuery<TaskQuery,Task>public TaskQueryImpl taskAssigneeLike(String assigneeLike)
TaskInfoQuerytaskAssigneeLike in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskAssigneeLikeIgnoreCase(String assigneeLikeIgnoreCase)
TaskInfoQueryTaskInfoQuery.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.taskAssigneeLikeIgnoreCase in interface TaskInfoQuery<TaskQuery,Task>public TaskQueryImpl taskOwner(String owner)
TaskInfoQuerytaskOwner in interface TaskInfoQuery<TaskQuery,Task>public TaskQueryImpl taskOwnerLike(String ownerLike)
TaskInfoQuerytaskOwnerLike in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskOwnerLikeIgnoreCase(String ownerLikeIgnoreCase)
TaskInfoQueryTaskInfoQuery.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.taskOwnerLikeIgnoreCase in interface TaskInfoQuery<TaskQuery,Task>@Deprecated public TaskQuery taskUnnassigned()
taskUnnassigned in interface TaskQuery#taskUnassigned}public TaskQuery taskUnassigned()
TaskQuerytaskUnassigned in interface TaskQuerypublic TaskQuery taskDelegationState(DelegationState delegationState)
TaskQueryDelegationState.taskDelegationState in interface TaskQuerypublic TaskQueryImpl taskCandidateUser(String candidateUser)
TaskInfoQuerytaskCandidateUser in interface TaskInfoQuery<TaskQuery,Task>public TaskQueryImpl taskInvolvedUser(String involvedUser)
TaskInfoQueryIdentityLink with the given user, including tasks which have been
assigned to the given user (assignee) or owned by the given user (owner).taskInvolvedUser in interface TaskInfoQuery<TaskQuery,Task>public TaskQueryImpl taskCandidateGroup(String candidateGroup)
TaskInfoQuerytaskCandidateGroup in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskCandidateOrAssigned(String userIdForCandidateAndAssignee)
TaskQueryTaskInfoQuery.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.taskCandidateOrAssigned in interface TaskQuerypublic TaskQuery taskCandidateGroupIn(List<String> candidateGroups)
TaskInfoQuerytaskCandidateGroupIn in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskTenantId(String tenantId)
TaskInfoQuerytaskTenantId in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskTenantIdLike(String tenantIdLike)
TaskInfoQuerytaskTenantIdLike in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskWithoutTenantId()
TaskInfoQuerytaskWithoutTenantId in interface TaskInfoQuery<TaskQuery,Task>public TaskQueryImpl processInstanceId(String processInstanceId)
TaskInfoQueryprocessInstanceId in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processInstanceIdIn(List<String> processInstanceIds)
TaskInfoQueryprocessInstanceIdIn in interface TaskInfoQuery<TaskQuery,Task>public TaskQueryImpl processInstanceBusinessKey(String processInstanceBusinessKey)
TaskInfoQueryprocessInstanceBusinessKey in interface TaskInfoQuery<TaskQuery,Task>public TaskQueryImpl processInstanceBusinessKeyLike(String processInstanceBusinessKeyLike)
TaskInfoQueryprocessInstanceBusinessKeyLike in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processInstanceBusinessKeyLikeIgnoreCase(String processInstanceBusinessKeyLikeIgnoreCase)
TaskInfoQueryTaskInfoQuery.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.processInstanceBusinessKeyLikeIgnoreCase in interface TaskInfoQuery<TaskQuery,Task>public TaskQueryImpl executionId(String executionId)
TaskInfoQueryexecutionId in interface TaskInfoQuery<TaskQuery,Task>public TaskQueryImpl taskCreatedOn(Date createTime)
TaskInfoQuerytaskCreatedOn in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskCreatedBefore(Date before)
TaskInfoQuerytaskCreatedBefore in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskCreatedAfter(Date after)
TaskInfoQuerytaskCreatedAfter in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskCategory(String category)
TaskInfoQuerytaskCategory in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskDefinitionKey(String key)
TaskInfoQuerytaskDefinitionKey in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskDefinitionKeyLike(String keyLike)
TaskInfoQuerytaskDefinitionKeyLike in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskVariableValueEquals(String variableName, Object variableValue)
TaskInfoQuerytaskVariableValueEquals in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskVariableValueEquals(Object variableValue)
TaskInfoQuerytaskVariableValueEquals in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskVariableValueEqualsIgnoreCase(String name, String value)
TaskInfoQueryThis 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).
taskVariableValueEqualsIgnoreCase in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskVariableValueNotEqualsIgnoreCase(String name, String value)
TaskInfoQueryThis 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).
taskVariableValueNotEqualsIgnoreCase in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskVariableValueNotEquals(String variableName, Object variableValue)
TaskInfoQuerySerializable objects (which are not primitive type wrappers)
are not supported.taskVariableValueNotEquals in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskVariableValueGreaterThan(String name, Object value)
TaskInfoQuerySerializable objects (which are not primitive type wrappers) are
not supported.taskVariableValueGreaterThan in interface TaskInfoQuery<TaskQuery,Task>name - cannot be null.value - cannot be null.public TaskQuery taskVariableValueGreaterThanOrEqual(String name, Object value)
TaskInfoQuerySerializable objects (which are not primitive type wrappers) are
not supported.taskVariableValueGreaterThanOrEqual in interface TaskInfoQuery<TaskQuery,Task>name - cannot be null.value - cannot be null.public TaskQuery taskVariableValueLessThan(String name, Object value)
TaskInfoQuerySerializable objects (which are not primitive type
wrappers) are not supported.taskVariableValueLessThan in interface TaskInfoQuery<TaskQuery,Task>name - cannot be null.value - cannot be null.public TaskQuery taskVariableValueLessThanOrEqual(String name, Object value)
TaskInfoQuerySerializable objects (which are not primitive type
wrappers) are not supported.taskVariableValueLessThanOrEqual in interface TaskInfoQuery<TaskQuery,Task>name - cannot be null.value - cannot be null.public TaskQuery taskVariableValueLike(String name, String value)
TaskInfoQuerytaskVariableValueLike in interface TaskInfoQuery<TaskQuery,Task>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%).public TaskQuery taskVariableValueLikeIgnoreCase(String name, String value)
TaskInfoQuerytaskVariableValueLikeIgnoreCase in interface TaskInfoQuery<TaskQuery,Task>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%).public TaskQuery processVariableValueEquals(String variableName, Object variableValue)
TaskInfoQueryprocessVariableValueEquals in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processVariableValueNotEquals(String variableName, Object variableValue)
TaskInfoQuerySerializable objects (which are not primitive type wrappers)
are not supported.processVariableValueNotEquals in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processVariableValueEquals(Object variableValue)
TaskInfoQueryprocessVariableValueEquals in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processVariableValueEqualsIgnoreCase(String name, String value)
TaskInfoQueryThis 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).
processVariableValueEqualsIgnoreCase in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processVariableValueNotEqualsIgnoreCase(String name, String value)
TaskInfoQueryThis 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).
processVariableValueNotEqualsIgnoreCase in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processVariableValueGreaterThan(String name, Object value)
TaskInfoQuerySerializable objects (which are not primitive type wrappers) are
not supported.processVariableValueGreaterThan in interface TaskInfoQuery<TaskQuery,Task>name - cannot be null.value - cannot be null.public TaskQuery processVariableValueGreaterThanOrEqual(String name, Object value)
TaskInfoQuerySerializable objects (which are not primitive type wrappers) are
not supported.processVariableValueGreaterThanOrEqual in interface TaskInfoQuery<TaskQuery,Task>name - cannot be null.value - cannot be null.public TaskQuery processVariableValueLessThan(String name, Object value)
TaskInfoQuerySerializable objects (which are not primitive type
wrappers) are not supported.processVariableValueLessThan in interface TaskInfoQuery<TaskQuery,Task>name - cannot be null.value - cannot be null.public TaskQuery processVariableValueLessThanOrEqual(String name, Object value)
TaskInfoQuerySerializable objects (which are not primitive type
wrappers) are not supported.processVariableValueLessThanOrEqual in interface TaskInfoQuery<TaskQuery,Task>name - cannot be null.value - cannot be null.public TaskQuery processVariableValueLike(String name, String value)
TaskInfoQueryprocessVariableValueLike in interface TaskInfoQuery<TaskQuery,Task>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%).public TaskQuery processVariableValueLikeIgnoreCase(String name, String value)
TaskInfoQueryprocessVariableValueLikeIgnoreCase in interface TaskInfoQuery<TaskQuery,Task>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%).public TaskQuery processDefinitionKey(String processDefinitionKey)
TaskInfoQueryprocessDefinitionKey in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processDefinitionKeyLike(String processDefinitionKeyLike)
TaskInfoQueryprocessDefinitionKeyLike in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processDefinitionKeyLikeIgnoreCase(String processDefinitionKeyLikeIgnoreCase)
TaskInfoQueryTaskInfoQuery.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.processDefinitionKeyLikeIgnoreCase in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processDefinitionKeyIn(List<String> processDefinitionKeys)
TaskInfoQueryprocessDefinitionKeyIn in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processDefinitionId(String processDefinitionId)
TaskInfoQueryprocessDefinitionId in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processDefinitionName(String processDefinitionName)
TaskInfoQueryprocessDefinitionName in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processDefinitionNameLike(String processDefinitionNameLike)
TaskInfoQueryprocessDefinitionNameLike in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processCategoryIn(List<String> processCategoryInList)
TaskInfoQueryprocessCategoryIn in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery processCategoryNotIn(List<String> processCategoryNotInList)
TaskInfoQueryprocessCategoryNotIn in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery deploymentId(String deploymentId)
TaskInfoQuerydeploymentId in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery deploymentIdIn(List<String> deploymentIds)
TaskInfoQuerydeploymentIdIn in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery dueDate(Date dueDate)
TaskInfoQuerydueDate in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskDueDate(Date dueDate)
taskDueDate in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery dueBefore(Date dueBefore)
TaskInfoQuerydueBefore in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskDueBefore(Date dueDate)
taskDueBefore in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery dueAfter(Date dueAfter)
TaskInfoQuerydueAfter in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery taskDueAfter(Date dueDate)
taskDueAfter in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery withoutDueDate()
TaskInfoQuerywithoutDueDate in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery withoutTaskDueDate()
withoutTaskDueDate in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery excludeSubtasks()
TaskQueryexcludeSubtasks in interface TaskQuerypublic TaskQuery suspended()
TaskQuerypublic TaskQuery active()
TaskQuerypublic TaskQuery locale(String locale)
TaskInfoQuerylocale in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery withLocalizationFallback()
TaskInfoQuerywithLocalizationFallback in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery includeTaskLocalVariables()
TaskInfoQueryincludeTaskLocalVariables in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery includeProcessVariables()
TaskInfoQueryincludeProcessVariables in interface TaskInfoQuery<TaskQuery,Task>protected void ensureVariablesInitialized()
ensureVariablesInitialized in class AbstractVariableQueryImpl<TaskQuery,Task>public TaskQuery or()
TaskInfoQueryor in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery endOr()
endOr in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByTaskId()
TaskInfoQueryQuery.asc() or Query.desc()).orderByTaskId in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByTaskName()
TaskInfoQueryQuery.asc() or Query.desc()).orderByTaskName in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByTaskDescription()
TaskInfoQueryQuery.asc() or Query.desc()).orderByTaskDescription in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByTaskPriority()
TaskInfoQueryQuery.asc() or Query.desc()).orderByTaskPriority in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByProcessInstanceId()
TaskInfoQueryQuery.asc() or Query.desc()).orderByProcessInstanceId in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByExecutionId()
TaskInfoQueryQuery.asc() or Query.desc()).orderByExecutionId in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByProcessDefinitionId()
TaskInfoQueryQuery.asc() or Query.desc()).orderByProcessDefinitionId in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByTaskAssignee()
TaskInfoQueryQuery.asc() or Query.desc()).orderByTaskAssignee in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByTaskOwner()
TaskInfoQueryQuery.asc() or Query.desc()).orderByTaskOwner in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByTaskCreateTime()
TaskInfoQueryQuery.asc() or Query.desc()).orderByTaskCreateTime in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByDueDate()
TaskQueryQuery.asc() or Query.desc()).
This will use the default handling of null values of the used database.orderByDueDate in interface TaskQuerypublic TaskQuery orderByTaskDueDate()
TaskInfoQueryQuery.asc() or Query.desc()).orderByTaskDueDate in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByTaskDefinitionKey()
TaskInfoQueryQuery.asc() or Query.desc()).orderByTaskDefinitionKey in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByDueDateNullsFirst()
TaskInfoQueryQuery.asc() or Query.desc()).
If any of the tasks have null for the due date, these will be first in the result.orderByDueDateNullsFirst in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByDueDateNullsLast()
TaskInfoQueryQuery.asc() or Query.desc()).
If any of the tasks have null for the due date, these will be last in the result.orderByDueDateNullsLast in interface TaskInfoQuery<TaskQuery,Task>public TaskQuery orderByTenantId()
TaskInfoQueryQuery.asc() or Query.desc()).orderByTenantId in interface TaskInfoQuery<TaskQuery,Task>public String getMssqlOrDB2OrderBy()
public List<Task> executeList(CommandContext commandContext, Page page)
AbstractQueryexecuteList in class AbstractVariableQueryImpl<TaskQuery,Task>page - used if the results must be paged. If null, no paging will be applied.public long executeCount(CommandContext commandContext)
executeCount in class AbstractVariableQueryImpl<TaskQuery,Task>protected void localize(Task task)
public String getName()
public String getNameLike()
public String getAssignee()
public boolean getUnassigned()
public DelegationState getDelegationState()
public boolean getNoDelegationState()
public String getDelegationStateString()
public String getCandidateUser()
public String getCandidateGroup()
public String getProcessInstanceId()
public String getExecutionId()
public String getTaskId()
public String getDescription()
public String getDescriptionLike()
public Integer getPriority()
public Date getCreateTime()
public Date getCreateTimeBefore()
public Date getCreateTimeAfter()
public String getKey()
public String getKeyLike()
public String getProcessDefinitionKey()
public String getProcessDefinitionId()
public String getProcessDefinitionName()
public String getProcessInstanceBusinessKey()
public boolean getExcludeSubtasks()
public String getTenantId()
public String getTenantIdLike()
public boolean isWithoutTenantId()
public String getUserIdForCandidateAndAssignee()
public List<TaskQueryImpl> getOrQueryObjects()
public void setOrQueryObjects(List<TaskQueryImpl> orQueryObjects)
public Integer getMinPriority()
public Integer getMaxPriority()
public String getAssigneeLike()
public String getInvolvedUser()
public String getOwner()
public String getOwnerLike()
public String getCategory()
public String getProcessDefinitionKeyLike()
public String getProcessDefinitionNameLike()
public String getDeploymentId()
public String getProcessInstanceBusinessKeyLike()
public Date getDueDate()
public Date getDueBefore()
public Date getDueAfter()
public boolean isWithoutDueDate()
public SuspensionState getSuspensionState()
public boolean isIncludeTaskLocalVariables()
public boolean isIncludeProcessVariables()
public boolean isBothCandidateAndAssigned()
public String getNameLikeIgnoreCase()
public String getDescriptionLikeIgnoreCase()
public String getAssigneeLikeIgnoreCase()
public String getOwnerLikeIgnoreCase()
public String getProcessInstanceBusinessKeyLikeIgnoreCase()
public String getProcessDefinitionKeyLikeIgnoreCase()
public boolean isOrActive()
Copyright © 2016 Alfresco. All rights reserved.