public class TaskQueryImpl extends AbstractQuery<TaskQuery,Task> implements TaskQuery
Modifier and Type | Class and Description |
---|---|
protected class |
TaskQueryImpl.TaskQueryVariableValueComparable |
commandExecutor, expressions, orderingProperties, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
databaseType, DEFAULT_ORDER_BY, firstResult, maxResults, orderBy, parameter
authDefaultPerm, authGroupIds, authUserId, isAuthorizationCheckEnabled, permissionChecks
Constructor and Description |
---|
TaskQueryImpl() |
TaskQueryImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
TaskQuery |
active()
Only selects tasks which are active (ie.
|
TaskQuery |
activityInstanceIdIn(String... activityInstanceIds)
Only select task which have one of the activity instance ids.
|
void |
addTaskPermissionCheck(PermissionCheck permissionCheck) |
void |
addVariable(String name,
Object value,
QueryOperator operator,
boolean isTaskVariable,
boolean isProcessInstanceVariable) |
protected void |
addVariable(TaskQueryVariableValue taskQueryVariableValue) |
TaskQuery |
caseDefinitionId(String caseDefinitionId)
Only select tasks which are part of a case instance which has the given
case definition id.
|
TaskQuery |
caseDefinitionKey(String caseDefinitionKey)
Only select tasks which are part of a case instance which has the given
case definition key.
|
TaskQuery |
caseDefinitionName(String caseDefinitionName)
Only select tasks which are part of a case instance which has the given
case definition name.
|
TaskQuery |
caseDefinitionNameLike(String caseDefinitionNameLike)
Only select tasks which are part of a case instance which case definition
name is like the given parameter.
|
TaskQuery |
caseExecutionId(String caseExecutionId)
Only select tasks for the given case execution.
|
TaskQuery |
caseInstanceBusinessKey(String caseInstanceBusinessKey)
Only select tasks for the given case instance business key
|
TaskQuery |
caseInstanceBusinessKeyLike(String caseInstanceBusinessKeyLike)
Only select tasks matching the given case instance business key.
|
TaskQuery |
caseInstanceId(String caseInstanceId)
Only select tasks for the given case instance id.
|
TaskQuery |
caseInstanceVariableValueEquals(String variableName,
Object variableValue)
Only select tasks which are part of a case instance that have a variable
with the given name set to the given value.
|
TaskQuery |
caseInstanceVariableValueGreaterThan(String variableName,
Object variableValue)
Only select tasks which are part of a case instance that have a variable
with the given name and a variable value greater than the passed value.
|
TaskQuery |
caseInstanceVariableValueGreaterThanOrEquals(String variableName,
Object variableValue)
Only select tasks which are part of a case instance that have a
variable value greater than or equal to the passed value.
|
TaskQuery |
caseInstanceVariableValueLessThan(String variableName,
Object variableValue)
Only select tasks which are part of a case instance that have a variable
value less than the passed value.
|
TaskQuery |
caseInstanceVariableValueLessThanOrEquals(String variableName,
Object variableValue)
Only select tasks which are part of a case instance that have a variable
value less than or equal to the passed value.
|
TaskQuery |
caseInstanceVariableValueLike(String variableName,
String variableValue)
Only select tasks which are part of a case instance that have a variable value
like the given value.
|
TaskQuery |
caseInstanceVariableValueNotEquals(String variableName,
Object variableValue)
Only select tasks which are part of a case instance that have a variable
with the given name, but with a different value than the passed value.
|
TaskQuery |
dueAfter(Date dueAfter)
Only select tasks which have a due date after the given date.
|
TaskQuery |
dueAfterExpression(String dueDateExpression)
Only select tasks which have a due date after the described date by the given expression.
|
TaskQuery |
dueBefore(Date dueBefore)
Only select tasks which have a due date before the given date.
|
TaskQuery |
dueBeforeExpression(String dueDate)
Only select tasks which have a due date before the described date by the given expression.
|
TaskQuery |
dueDate(Date dueDate)
Only select tasks with the given due date.
|
TaskQuery |
dueDateExpression(String dueDateExpression)
Only select tasks with the described due date by the given expression.
|
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.
|
TaskQuery |
extend(TaskQuery extending) |
TaskQuery |
followUpAfter(Date followUpAfter)
Only select tasks which have a follow-up date after the given date.
|
TaskQuery |
followUpAfterExpression(String followUpAfterExpression)
Only select tasks which have a follow-up date after the described date by the given expression.
|
TaskQuery |
followUpBefore(Date followUpBefore)
Only select tasks which have a follow-up date before the given date.
|
TaskQuery |
followUpBeforeExpression(String followUpBeforeExpression)
Only select tasks which have a follow-up date before the described date by the given expression.
|
TaskQuery |
followUpBeforeOrNotExistent(Date followUpDate)
Only select tasks which have no follow-up date or a follow-up date before the given date.
|
TaskQuery |
followUpBeforeOrNotExistentExpression(String followUpDateExpression)
Only select tasks which have no follow-up date or a follow-up date before the described date by the given expression.
|
TaskQuery |
followUpDate(Date followUpDate)
Only select tasks with the given follow-up date.
|
TaskQuery |
followUpDateExpression(String followUpDateExpression)
Only select tasks with the described follow-up date by the given expression.
|
String[] |
getActivityInstanceIdIn() |
String |
getAssignee() |
String |
getAssigneeLike() |
String |
getCandidateGroup() |
List<String> |
getCandidateGroups() |
List<String> |
getCandidateGroupsInternal() |
String |
getCandidateUser() |
String |
getCaseDefinitionId() |
String |
getCaseDefinitionKey() |
String |
getCaseDefinitionName() |
String |
getCaseDefinitionNameLike() |
String |
getCaseExecutionId() |
String |
getCaseInstanceBusinessKey() |
String |
getCaseInstanceBusinessKeyLike() |
String |
getCaseInstanceId() |
Date |
getCreateTime() |
Date |
getCreateTimeAfter() |
Date |
getCreateTimeBefore() |
DelegationState |
getDelegationState() |
String |
getDelegationStateString() |
String |
getDescription() |
String |
getDescriptionLike() |
Date |
getDueAfter() |
Date |
getDueBefore() |
Date |
getDueDate() |
String |
getExecutionId() |
Date |
getFollowUpAfter() |
Date |
getFollowUpBefore() |
Date |
getFollowUpDate() |
protected List<String> |
getGroupsForCandidateUser(String candidateUser) |
String |
getInvolvedUser() |
String |
getKey() |
String |
getKeyLike() |
String[] |
getKeys() |
Integer |
getMaxPriority() |
Integer |
getMinPriority() |
String |
getName() |
String |
getNameLike() |
String |
getOwner() |
String |
getParentTaskId() |
Integer |
getPriority() |
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
String[] |
getProcessDefinitionKeys() |
String |
getProcessDefinitionName() |
String |
getProcessDefinitionNameLike() |
String |
getProcessInstanceBusinessKey() |
String |
getProcessInstanceBusinessKeyLike() |
String[] |
getProcessInstanceBusinessKeys() |
String |
getProcessInstanceId() |
SuspensionState |
getSuspensionState() |
String |
getTaskId() |
CompositePermissionCheck |
getTaskPermissionChecks() |
List<TaskQueryVariableValue> |
getVariables() |
protected boolean |
hasExcludingConditions()
Whether or not the query has excluding conditions.
|
TaskQuery |
includeAssignedTasks()
Select both assigned and not assigned tasks for candidate user or group queries.
|
TaskQuery |
includeAssignedTasksInternal() |
TaskQuery |
initializeFormKeys()
If called, the form keys of the fetched tasks are initialized and
Task.getFormKey() will return a value (in case the task has a form key). |
boolean |
isExcludeSubtasks() |
boolean |
isFollowUpNullAccepted() |
boolean |
isIncludeAssignedTasks() |
Boolean |
isIncludeAssignedTasksInternal() |
boolean |
isInitializeFormKeys() |
boolean |
isNoDelegationState() |
boolean |
isTaskNameCaseInsensitive() |
boolean |
isUnassigned() |
Boolean |
isUnassignedInternal() |
protected void |
mergeVariables(TaskQueryImpl extendedQuery,
TaskQueryImpl extendingQuery)
Simple implementation of variable merging.
|
TaskQuery |
orderByCaseExecutionId()
Order by case execution id (needs to be followed by
Query.asc() or Query.desc() ). |
TaskQuery |
orderByCaseExecutionVariable(String variableName,
org.camunda.bpm.engine.variable.type.ValueType valueType)
Order by a task variable value of a certain type.
|
TaskQuery |
orderByCaseInstanceId()
Order by case instance id (needs to be followed by
Query.asc() or Query.desc() ). |
TaskQuery |
orderByCaseInstanceVariable(String variableName,
org.camunda.bpm.engine.variable.type.ValueType valueType)
Order by a task variable value of a certain type.
|
TaskQuery |
orderByDueDate()
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 |
orderByExecutionVariable(String variableName,
org.camunda.bpm.engine.variable.type.ValueType valueType)
Order by an execution variable value of a certain type.
|
TaskQuery |
orderByFollowUpDate()
Order by follow-up date (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 |
orderByProcessVariable(String variableName,
org.camunda.bpm.engine.variable.type.ValueType valueType)
Order by a process instance variable value of a certain type.
|
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 |
orderByTaskDescription()
Order by description (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 |
orderByTaskNameCaseInsensitive()
Order by task name case insensitive (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 |
orderByTaskVariable(String variableName,
org.camunda.bpm.engine.variable.type.ValueType valueType)
Order by a task variable value of a certain type.
|
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(String... processDefinitionKeys)
Only select tasks which are part of a process instance which has one of the
given process definition keys.
|
TaskQuery |
processDefinitionName(String processDefinitionName)
Only select tasks which are part of a process instance which has the given
process definition name.
|
TaskQuery |
processDefinitionNameLike(String processDefinitionName)
Only select tasks which are part of a process instance which process definition
name is like the given parameter.
|
TaskQueryImpl |
processInstanceBusinessKey(String processInstanceBusinessKey)
Only select tasks for the given process instance business key
|
TaskQuery |
processInstanceBusinessKeyIn(String... processInstanceBusinessKeys)
Only select tasks for any of the given the given process instance business keys.
|
TaskQuery |
processInstanceBusinessKeyLike(String processInstanceBusinessKey)
Only select tasks matching the given process instance business key.
|
TaskQueryImpl |
processInstanceId(String processInstanceId)
Only select tasks for the given process instance id.
|
TaskQuery |
processVariableValueEquals(String variableName,
Object variableValue)
Only select tasks which have are part of a process that have a variable
with the given name set to the given value.
|
TaskQuery |
processVariableValueGreaterThan(String variableName,
Object variableValue)
Only select tasks which are part of a process that have a variable
with the given name and a value greater than the given one.
|
TaskQuery |
processVariableValueGreaterThanOrEquals(String variableName,
Object variableValue)
Only select tasks which are part of a process that have a variable
with the given name and a value greater than or equal to the given one.
|
TaskQuery |
processVariableValueLessThan(String variableName,
Object variableValue)
Only select tasks which are part of a process that have a variable
with the given name and a value less than the given one.
|
TaskQuery |
processVariableValueLessThanOrEquals(String variableName,
Object variableValue)
Only select tasks which are part of a process that have a variable
with the given name and a value greater than or equal to the given one.
|
TaskQuery |
processVariableValueLike(String variableName,
String variableValue)
Only select tasks which are part of a process that have a variable
with the given name and matching the given value.
|
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.
|
void |
setFollowUpNullAccepted(boolean followUpNullAccepted) |
void |
setTaskPermissionChecks(List<PermissionCheck> taskPermissionChecks) |
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.
|
TaskQuery |
taskAssigneeExpression(String assigneeExpression)
Only select tasks which are assigned to the user described by the given expression.
|
TaskQuery |
taskAssigneeLike(String assignee)
Only select tasks which are matching the given user.
|
TaskQuery |
taskAssigneeLikeExpression(String assigneeLikeExpression)
Only select tasks which are assigned to the user described by the given expression.
|
TaskQueryImpl |
taskCandidateGroup(String candidateGroup)
Only select tasks for which users in the given group are candidates.
|
TaskQuery |
taskCandidateGroupExpression(String candidateGroupExpression)
Only select tasks for which users in the described group by the given expression are candidates.
|
TaskQuery |
taskCandidateGroupIn(List<String> candidateGroups)
Only select tasks for which the 'candidateGroup' is one of the given groups.
|
TaskQuery |
taskCandidateGroupInExpression(String candidateGroupsExpression)
Only select tasks for which the 'candidateGroup' is one of the described groups of the given expression.
|
TaskQueryImpl |
taskCandidateUser(String candidateUser)
Only select tasks for which the given user is a candidate.
|
TaskQuery |
taskCandidateUserExpression(String candidateUserExpression)
Only select tasks for which the described user by the given expression is a candidate.
|
TaskQuery |
taskCreatedAfter(Date after)
Only select tasks that are created after the given date.
|
TaskQuery |
taskCreatedAfterExpression(String afterExpression)
Only select tasks that are created after the described date by the given expression.
|
TaskQuery |
taskCreatedBefore(Date before)
Only select tasks that are created before the given date.
|
TaskQuery |
taskCreatedBeforeExpression(String beforeExpression)
Only select tasks that are created before the described date by the given expression.
|
TaskQueryImpl |
taskCreatedOn(Date createTime)
Only select tasks that are created on the given date.
|
TaskQuery |
taskCreatedOnExpression(String createTimeExpression)
Only select tasks that are created on the described date by the given expression.
|
TaskQuery |
taskDefinitionKey(String key)
Only select tasks with the given taskDefinitionKey.
|
TaskQuery |
taskDefinitionKeyIn(String... taskDefinitionKeys)
Only select tasks which have one of the taskDefinitionKeys.
|
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 .
|
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 |
TaskQuery |
taskInvolvedUserExpression(String involvedUserExpression)
Only select tasks for which there exist an
IdentityLink with the
described user by the given expression |
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 |
taskNameCaseInsensitive() |
TaskQueryImpl |
taskNameLike(String nameLike)
Only select tasks with a name matching the parameter.
|
TaskQueryImpl |
taskOwner(String owner)
Only select tasks for which the given user is the owner.
|
TaskQuery |
taskOwnerExpression(String ownerExpression)
Only select tasks for which the described user by the given expression is the owner.
|
TaskQuery |
taskParentTaskId(String taskParentTaskId)
Select the tasks which are sub tasks of the given parent task.
|
TaskQuery |
taskPriority(Integer priority)
Only select tasks with the given priority.
|
TaskQuery |
taskUnassigned()
Only select tasks which don't have an assignee.
|
TaskQuery |
taskUnnassigned()
Deprecated.
|
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 |
taskVariableValueGreaterThan(String variableName,
Object variableValue)
Only select tasks which have a local task variable with the given name
and a value greater than the given one.
|
TaskQuery |
taskVariableValueGreaterThanOrEquals(String variableName,
Object variableValue)
Only select tasks which have a local task variable with the given name
and a value greater than or equal to the given one.
|
TaskQuery |
taskVariableValueLessThan(String variableName,
Object variableValue)
Only select tasks which have a local task variable with the given name
and a value less than the given one.
|
TaskQuery |
taskVariableValueLessThanOrEquals(String variableName,
Object variableValue)
Only select tasks which have a local task variable with the given name
and a value less than or equal to the given one.
|
TaskQuery |
taskVariableValueLike(String variableName,
String variableValue)
Only select tasks which have a local task variable with the given name
matching the given value.
|
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.
|
addExpression, addValidator, asc, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteList, execute, executeSingleResult, getExpressions, getMethod, getOrderBy, getOrderingProperties, list, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, setOrderingProperties, singleResult, validate, validate
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter
addAtomicPermissionCheck, getAuthDefaultPerm, getAuthGroupIds, getAuthUserId, getPermissionChecks, isAuthorizationCheckEnabled, setAtomicPermissionChecks, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthUserId, setPermissionChecks
protected String taskId
protected String name
protected String nameLike
protected String description
protected String descriptionLike
protected Integer priority
protected Integer minPriority
protected Integer maxPriority
protected String assignee
protected String assigneeLike
protected String involvedUser
protected String owner
protected Boolean unassigned
protected boolean noDelegationState
protected DelegationState delegationState
protected String candidateUser
protected String candidateGroup
protected Boolean includeAssignedTasks
protected String processInstanceId
protected String executionId
protected String[] activityInstanceIdIn
protected Date createTime
protected Date createTimeBefore
protected Date createTimeAfter
protected String key
protected String keyLike
protected String[] taskDefinitionKeys
protected String processDefinitionKey
protected String[] processDefinitionKeys
protected String processDefinitionId
protected String processDefinitionName
protected String processDefinitionNameLike
protected String processInstanceBusinessKey
protected String[] processInstanceBusinessKeys
protected String processInstanceBusinessKeyLike
protected List<TaskQueryVariableValue> variables
protected Date dueDate
protected Date dueBefore
protected Date dueAfter
protected Date followUpDate
protected Date followUpBefore
protected boolean followUpNullAccepted
protected Date followUpAfter
protected boolean excludeSubtasks
protected SuspensionState suspensionState
protected boolean initializeFormKeys
protected boolean taskNameCaseInsensitive
protected String parentTaskId
protected String caseDefinitionKey
protected String caseDefinitionId
protected String caseDefinitionName
protected String caseDefinitionNameLike
protected String caseInstanceId
protected String caseInstanceBusinessKey
protected String caseInstanceBusinessKeyLike
protected String caseExecutionId
protected CompositePermissionCheck taskPermissionChecks
public TaskQueryImpl()
public TaskQueryImpl(CommandExecutor commandExecutor)
public TaskQueryImpl taskId(String taskId)
TaskQuery
public TaskQueryImpl taskName(String name)
TaskQuery
public TaskQueryImpl taskNameLike(String nameLike)
TaskQuery
taskNameLike
in interface TaskQuery
public TaskQueryImpl taskDescription(String description)
TaskQuery
taskDescription
in interface TaskQuery
public TaskQuery taskDescriptionLike(String descriptionLike)
TaskQuery
taskDescriptionLike
in interface TaskQuery
public TaskQuery taskPriority(Integer priority)
TaskQuery
taskPriority
in interface TaskQuery
public TaskQuery taskMinPriority(Integer minPriority)
TaskQuery
taskMinPriority
in interface TaskQuery
public TaskQuery taskMaxPriority(Integer maxPriority)
TaskQuery
taskMaxPriority
in interface TaskQuery
public TaskQueryImpl taskAssignee(String assignee)
TaskQuery
taskAssignee
in interface TaskQuery
public TaskQuery taskAssigneeExpression(String assigneeExpression)
TaskQuery
Only select tasks which are assigned to the user described by the given expression.
taskAssigneeExpression
in interface TaskQuery
public TaskQuery taskAssigneeLike(String assignee)
TaskQuery
taskAssigneeLike
in interface TaskQuery
public TaskQuery taskAssigneeLikeExpression(String assigneeLikeExpression)
TaskQuery
Only select tasks which are assigned to the user described by the given expression. The syntax is that of SQL: for example usage: taskAssigneeLikeExpression("${'%test%'}")
taskAssigneeLikeExpression
in interface TaskQuery
public TaskQueryImpl taskOwner(String owner)
TaskQuery
public TaskQuery taskOwnerExpression(String ownerExpression)
TaskQuery
Only select tasks for which the described user by the given expression is the owner.
taskOwnerExpression
in interface TaskQuery
@Deprecated public TaskQuery taskUnnassigned()
taskUnnassigned
in interface TaskQuery
#taskUnassigned}
public TaskQuery taskUnassigned()
TaskQuery
taskUnassigned
in interface TaskQuery
public TaskQuery taskDelegationState(DelegationState delegationState)
TaskQuery
DelegationState
.taskDelegationState
in interface TaskQuery
public TaskQueryImpl taskCandidateUser(String candidateUser)
TaskQuery
Per default it only selects tasks which are not already assigned
to a user. To also include assigned task in the result specify
TaskQuery.includeAssignedTasks()
in your query.
taskCandidateUser
in interface TaskQuery
public TaskQuery taskCandidateUserExpression(String candidateUserExpression)
TaskQuery
Per default it only selects tasks which are not already assigned
to a user. To also include assigned task in the result specify
TaskQuery.includeAssignedTasks()
in your query.
taskCandidateUserExpression
in interface TaskQuery
public TaskQueryImpl taskInvolvedUser(String involvedUser)
TaskQuery
IdentityLink
with the given usertaskInvolvedUser
in interface TaskQuery
public TaskQuery taskInvolvedUserExpression(String involvedUserExpression)
TaskQuery
Only select tasks for which there exist an IdentityLink
with the
described user by the given expression
taskInvolvedUserExpression
in interface TaskQuery
public TaskQueryImpl taskCandidateGroup(String candidateGroup)
TaskQuery
Per default it only selects tasks which are not already assigned
to a user. To also include assigned task in the result specify
TaskQuery.includeAssignedTasks()
in your query.
taskCandidateGroup
in interface TaskQuery
public TaskQuery taskCandidateGroupExpression(String candidateGroupExpression)
TaskQuery
Per default it only selects tasks which are not already assigned
to a user. To also include assigned task in the result specify
TaskQuery.includeAssignedTasks()
in your query.
taskCandidateGroupExpression
in interface TaskQuery
public TaskQuery taskCandidateGroupIn(List<String> candidateGroups)
TaskQuery
Per default it only selects tasks which are not already assigned
to a user. To also include assigned task in the result specify
TaskQuery.includeAssignedTasks()
in your query.
taskCandidateGroupIn
in interface TaskQuery
public TaskQuery taskCandidateGroupInExpression(String candidateGroupsExpression)
TaskQuery
Per default it only selects tasks which are not already assigned
to a user. To also include assigned task in the result specify
TaskQuery.includeAssignedTasks()
in your query.
taskCandidateGroupInExpression
in interface TaskQuery
public TaskQuery includeAssignedTasks()
TaskQuery
By default TaskQuery.taskCandidateUser(String)
, TaskQuery.taskCandidateGroup(String)
and TaskQuery.taskCandidateGroupIn(List)
queries only select not assigned tasks.
includeAssignedTasks
in interface TaskQuery
public TaskQuery includeAssignedTasksInternal()
public TaskQueryImpl processInstanceId(String processInstanceId)
TaskQuery
processInstanceId
in interface TaskQuery
public TaskQueryImpl processInstanceBusinessKey(String processInstanceBusinessKey)
TaskQuery
processInstanceBusinessKey
in interface TaskQuery
public TaskQuery processInstanceBusinessKeyIn(String... processInstanceBusinessKeys)
TaskQuery
processInstanceBusinessKeyIn
in interface TaskQuery
public TaskQuery processInstanceBusinessKeyLike(String processInstanceBusinessKey)
TaskQuery
processInstanceBusinessKeyLike
in interface TaskQuery
public TaskQueryImpl executionId(String executionId)
TaskQuery
executionId
in interface TaskQuery
public TaskQuery activityInstanceIdIn(String... activityInstanceIds)
TaskQuery
activityInstanceIdIn
in interface TaskQuery
public TaskQueryImpl taskCreatedOn(Date createTime)
TaskQuery
taskCreatedOn
in interface TaskQuery
public TaskQuery taskCreatedOnExpression(String createTimeExpression)
TaskQuery
taskCreatedOnExpression
in interface TaskQuery
public TaskQuery taskCreatedBefore(Date before)
TaskQuery
taskCreatedBefore
in interface TaskQuery
public TaskQuery taskCreatedBeforeExpression(String beforeExpression)
TaskQuery
taskCreatedBeforeExpression
in interface TaskQuery
public TaskQuery taskCreatedAfter(Date after)
TaskQuery
taskCreatedAfter
in interface TaskQuery
public TaskQuery taskCreatedAfterExpression(String afterExpression)
TaskQuery
taskCreatedAfterExpression
in interface TaskQuery
public TaskQuery taskDefinitionKey(String key)
TaskQuery
taskDefinitionKey
in interface TaskQuery
public TaskQuery taskDefinitionKeyLike(String keyLike)
TaskQuery
taskDefinitionKeyLike
in interface TaskQuery
public TaskQuery taskDefinitionKeyIn(String... taskDefinitionKeys)
TaskQuery
taskDefinitionKeyIn
in interface TaskQuery
public TaskQuery taskParentTaskId(String taskParentTaskId)
TaskQuery
taskParentTaskId
in interface TaskQuery
public TaskQuery caseInstanceId(String caseInstanceId)
TaskQuery
caseInstanceId
in interface TaskQuery
public TaskQuery caseInstanceBusinessKey(String caseInstanceBusinessKey)
TaskQuery
caseInstanceBusinessKey
in interface TaskQuery
public TaskQuery caseInstanceBusinessKeyLike(String caseInstanceBusinessKeyLike)
TaskQuery
caseInstanceBusinessKeyLike
in interface TaskQuery
public TaskQuery caseExecutionId(String caseExecutionId)
TaskQuery
caseExecutionId
in interface TaskQuery
public TaskQuery caseDefinitionId(String caseDefinitionId)
TaskQuery
caseDefinitionId
in interface TaskQuery
public TaskQuery caseDefinitionKey(String caseDefinitionKey)
TaskQuery
caseDefinitionKey
in interface TaskQuery
public TaskQuery caseDefinitionName(String caseDefinitionName)
TaskQuery
caseDefinitionName
in interface TaskQuery
public TaskQuery caseDefinitionNameLike(String caseDefinitionNameLike)
TaskQuery
caseDefinitionNameLike
in interface TaskQuery
public TaskQuery taskVariableValueEquals(String variableName, Object variableValue)
TaskQuery
taskVariableValueEquals
in interface TaskQuery
public TaskQuery taskVariableValueNotEquals(String variableName, Object variableValue)
TaskQuery
Serializable
objects (which are not primitive type wrappers)
are not supported.taskVariableValueNotEquals
in interface TaskQuery
public TaskQuery taskVariableValueLike(String variableName, String variableValue)
TaskQuery
taskVariableValueLike
in interface TaskQuery
public TaskQuery taskVariableValueGreaterThan(String variableName, Object variableValue)
TaskQuery
taskVariableValueGreaterThan
in interface TaskQuery
public TaskQuery taskVariableValueGreaterThanOrEquals(String variableName, Object variableValue)
TaskQuery
taskVariableValueGreaterThanOrEquals
in interface TaskQuery
public TaskQuery taskVariableValueLessThan(String variableName, Object variableValue)
TaskQuery
taskVariableValueLessThan
in interface TaskQuery
public TaskQuery taskVariableValueLessThanOrEquals(String variableName, Object variableValue)
TaskQuery
taskVariableValueLessThanOrEquals
in interface TaskQuery
public TaskQuery processVariableValueEquals(String variableName, Object variableValue)
TaskQuery
processVariableValueEquals
in interface TaskQuery
public TaskQuery processVariableValueNotEquals(String variableName, Object variableValue)
TaskQuery
Serializable
objects (which are not primitive type wrappers)
are not supported.processVariableValueNotEquals
in interface TaskQuery
public TaskQuery processVariableValueLike(String variableName, String variableValue)
TaskQuery
processVariableValueLike
in interface TaskQuery
public TaskQuery processVariableValueGreaterThan(String variableName, Object variableValue)
TaskQuery
processVariableValueGreaterThan
in interface TaskQuery
public TaskQuery processVariableValueGreaterThanOrEquals(String variableName, Object variableValue)
TaskQuery
processVariableValueGreaterThanOrEquals
in interface TaskQuery
public TaskQuery processVariableValueLessThan(String variableName, Object variableValue)
TaskQuery
processVariableValueLessThan
in interface TaskQuery
public TaskQuery processVariableValueLessThanOrEquals(String variableName, Object variableValue)
TaskQuery
processVariableValueLessThanOrEquals
in interface TaskQuery
public TaskQuery caseInstanceVariableValueEquals(String variableName, Object variableValue)
TaskQuery
ProcessEngineConfiguration#getVariableSerializers()
.
Byte-arrays and Serializable
objects (which are not primitive type wrappers)
are not supported.caseInstanceVariableValueEquals
in interface TaskQuery
public TaskQuery caseInstanceVariableValueNotEquals(String variableName, Object variableValue)
TaskQuery
ProcessEngineConfiguration#getVariableSerializers()
.
Byte-arrays and Serializable
objects (which are not primitive type wrappers)
are not supported.caseInstanceVariableValueNotEquals
in interface TaskQuery
public TaskQuery caseInstanceVariableValueLike(String variableName, String variableValue)
TaskQuery
caseInstanceVariableValueLike
in interface TaskQuery
public TaskQuery caseInstanceVariableValueGreaterThan(String variableName, Object variableValue)
TaskQuery
Serializable
objects (which are not primitive type wrappers)
are not supported.caseInstanceVariableValueGreaterThan
in interface TaskQuery
public TaskQuery caseInstanceVariableValueGreaterThanOrEquals(String variableName, Object variableValue)
TaskQuery
Serializable
objects (which
are not primitive type wrappers) are not supported.caseInstanceVariableValueGreaterThanOrEquals
in interface TaskQuery
public TaskQuery caseInstanceVariableValueLessThan(String variableName, Object variableValue)
TaskQuery
Serializable
objects (which are not primitive type wrappers)
are not supported.caseInstanceVariableValueLessThan
in interface TaskQuery
public TaskQuery caseInstanceVariableValueLessThanOrEquals(String variableName, Object variableValue)
TaskQuery
Serializable
objects (which are not primitive type wrappers)
are not supported.caseInstanceVariableValueLessThanOrEquals
in interface TaskQuery
public TaskQuery processDefinitionKey(String processDefinitionKey)
TaskQuery
processDefinitionKey
in interface TaskQuery
public TaskQuery processDefinitionKeyIn(String... processDefinitionKeys)
TaskQuery
processDefinitionKeyIn
in interface TaskQuery
public TaskQuery processDefinitionId(String processDefinitionId)
TaskQuery
processDefinitionId
in interface TaskQuery
public TaskQuery processDefinitionName(String processDefinitionName)
TaskQuery
processDefinitionName
in interface TaskQuery
public TaskQuery processDefinitionNameLike(String processDefinitionName)
TaskQuery
processDefinitionNameLike
in interface TaskQuery
public TaskQuery dueDate(Date dueDate)
TaskQuery
public TaskQuery dueDateExpression(String dueDateExpression)
TaskQuery
Only select tasks with the described due date by the given expression.
dueDateExpression
in interface TaskQuery
public TaskQuery dueBefore(Date dueBefore)
TaskQuery
public TaskQuery dueBeforeExpression(String dueDate)
TaskQuery
Only select tasks which have a due date before the described date by the given expression.
dueBeforeExpression
in interface TaskQuery
public TaskQuery dueAfter(Date dueAfter)
TaskQuery
public TaskQuery dueAfterExpression(String dueDateExpression)
TaskQuery
Only select tasks which have a due date after the described date by the given expression.
dueAfterExpression
in interface TaskQuery
public TaskQuery followUpDate(Date followUpDate)
TaskQuery
followUpDate
in interface TaskQuery
public TaskQuery followUpDateExpression(String followUpDateExpression)
TaskQuery
Only select tasks with the described follow-up date by the given expression.
followUpDateExpression
in interface TaskQuery
public TaskQuery followUpBefore(Date followUpBefore)
TaskQuery
followUpBefore
in interface TaskQuery
public TaskQuery followUpBeforeExpression(String followUpBeforeExpression)
TaskQuery
Only select tasks which have a follow-up date before the described date by the given expression.
followUpBeforeExpression
in interface TaskQuery
public TaskQuery followUpBeforeOrNotExistent(Date followUpDate)
TaskQuery
followUpBeforeOrNotExistent
in interface TaskQuery
public TaskQuery followUpBeforeOrNotExistentExpression(String followUpDateExpression)
TaskQuery
Only select tasks which have no follow-up date or a follow-up date before the described date by the given expression. Serves the typical use case "give me all tasks without follow-up or follow-up date which is already due"
followUpBeforeOrNotExistentExpression
in interface TaskQuery
public void setFollowUpNullAccepted(boolean followUpNullAccepted)
public TaskQuery followUpAfter(Date followUpAfter)
TaskQuery
followUpAfter
in interface TaskQuery
public TaskQuery followUpAfterExpression(String followUpAfterExpression)
TaskQuery
Only select tasks which have a follow-up date after the described date by the given expression.
followUpAfterExpression
in interface TaskQuery
public TaskQuery excludeSubtasks()
TaskQuery
excludeSubtasks
in interface TaskQuery
public TaskQuery active()
TaskQuery
public TaskQuery suspended()
TaskQuery
public TaskQuery initializeFormKeys()
TaskQuery
Task.getFormKey()
will return a value (in case the task has a form key).initializeFormKeys
in interface TaskQuery
public TaskQuery taskNameCaseInsensitive()
protected boolean hasExcludingConditions()
AbstractQuery
hasExcludingConditions
in class AbstractQuery<TaskQuery,Task>
true
if the query does have excluding conditions, false
otherwiseprotected void ensureVariablesInitialized()
public void addVariable(String name, Object value, QueryOperator operator, boolean isTaskVariable, boolean isProcessInstanceVariable)
protected void addVariable(TaskQueryVariableValue taskQueryVariableValue)
public TaskQuery orderByTaskId()
TaskQuery
Query.asc()
or Query.desc()
).orderByTaskId
in interface TaskQuery
public TaskQuery orderByTaskName()
TaskQuery
Query.asc()
or Query.desc()
).orderByTaskName
in interface TaskQuery
public TaskQuery orderByTaskNameCaseInsensitive()
TaskQuery
Query.asc()
or Query.desc()
).orderByTaskNameCaseInsensitive
in interface TaskQuery
public TaskQuery orderByTaskDescription()
TaskQuery
Query.asc()
or Query.desc()
).orderByTaskDescription
in interface TaskQuery
public TaskQuery orderByTaskPriority()
TaskQuery
Query.asc()
or Query.desc()
).orderByTaskPriority
in interface TaskQuery
public TaskQuery orderByProcessInstanceId()
TaskQuery
Query.asc()
or Query.desc()
).orderByProcessInstanceId
in interface TaskQuery
public TaskQuery orderByCaseInstanceId()
TaskQuery
Query.asc()
or Query.desc()
).orderByCaseInstanceId
in interface TaskQuery
public TaskQuery orderByExecutionId()
TaskQuery
Query.asc()
or Query.desc()
).orderByExecutionId
in interface TaskQuery
public TaskQuery orderByCaseExecutionId()
TaskQuery
Query.asc()
or Query.desc()
).orderByCaseExecutionId
in interface TaskQuery
public TaskQuery orderByTaskAssignee()
TaskQuery
Query.asc()
or Query.desc()
).orderByTaskAssignee
in interface TaskQuery
public TaskQuery orderByTaskCreateTime()
TaskQuery
Query.asc()
or Query.desc()
).orderByTaskCreateTime
in interface TaskQuery
public TaskQuery orderByDueDate()
TaskQuery
Query.asc()
or Query.desc()
).orderByDueDate
in interface TaskQuery
public TaskQuery orderByFollowUpDate()
TaskQuery
Query.asc()
or Query.desc()
).orderByFollowUpDate
in interface TaskQuery
public TaskQuery orderByProcessVariable(String variableName, org.camunda.bpm.engine.variable.type.ValueType valueType)
TaskQuery
null
values is database-specific.orderByProcessVariable
in interface TaskQuery
public TaskQuery orderByExecutionVariable(String variableName, org.camunda.bpm.engine.variable.type.ValueType valueType)
TaskQuery
null
values is database-specific.orderByExecutionVariable
in interface TaskQuery
public TaskQuery orderByTaskVariable(String variableName, org.camunda.bpm.engine.variable.type.ValueType valueType)
TaskQuery
null
values is database-specific.orderByTaskVariable
in interface TaskQuery
public TaskQuery orderByCaseExecutionVariable(String variableName, org.camunda.bpm.engine.variable.type.ValueType valueType)
TaskQuery
null
values is database-specific.orderByCaseExecutionVariable
in interface TaskQuery
public TaskQuery orderByCaseInstanceVariable(String variableName, org.camunda.bpm.engine.variable.type.ValueType valueType)
TaskQuery
null
values is database-specific.orderByCaseInstanceVariable
in interface TaskQuery
public List<Task> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractQuery<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 AbstractQuery<TaskQuery,Task>
public String getName()
public String getNameLike()
public String getAssignee()
public String getAssigneeLike()
public String getInvolvedUser()
public String getOwner()
public boolean isUnassigned()
public Boolean isUnassignedInternal()
public DelegationState getDelegationState()
public boolean isNoDelegationState()
public String getDelegationStateString()
public String getCandidateUser()
public String getCandidateGroup()
public boolean isIncludeAssignedTasks()
public Boolean isIncludeAssignedTasksInternal()
public String getProcessInstanceId()
public String getExecutionId()
public String[] getActivityInstanceIdIn()
public String getTaskId()
public String getDescription()
public String getDescriptionLike()
public Integer getPriority()
public Integer getMinPriority()
public Integer getMaxPriority()
public Date getCreateTime()
public Date getCreateTimeBefore()
public Date getCreateTimeAfter()
public String getKey()
public String[] getKeys()
public String getKeyLike()
public String getParentTaskId()
public List<TaskQueryVariableValue> getVariables()
public String getProcessDefinitionKey()
public String[] getProcessDefinitionKeys()
public String getProcessDefinitionId()
public String getProcessDefinitionName()
public String getProcessDefinitionNameLike()
public String getProcessInstanceBusinessKey()
public String[] getProcessInstanceBusinessKeys()
public String getProcessInstanceBusinessKeyLike()
public Date getDueDate()
public Date getDueBefore()
public Date getDueAfter()
public Date getFollowUpDate()
public Date getFollowUpBefore()
public Date getFollowUpAfter()
public boolean isExcludeSubtasks()
public SuspensionState getSuspensionState()
public String getCaseInstanceId()
public String getCaseInstanceBusinessKey()
public String getCaseInstanceBusinessKeyLike()
public String getCaseExecutionId()
public String getCaseDefinitionId()
public String getCaseDefinitionKey()
public String getCaseDefinitionName()
public String getCaseDefinitionNameLike()
public boolean isInitializeFormKeys()
public boolean isTaskNameCaseInsensitive()
public TaskQuery extend(TaskQuery extending)
extend
in class AbstractQuery<TaskQuery,Task>
protected void mergeVariables(TaskQueryImpl extendedQuery, TaskQueryImpl extendingQuery)
public boolean isFollowUpNullAccepted()
public CompositePermissionCheck getTaskPermissionChecks()
public void setTaskPermissionChecks(List<PermissionCheck> taskPermissionChecks)
public void addTaskPermissionCheck(PermissionCheck permissionCheck)
Copyright © 2018. All rights reserved.