|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.db.AuthorizationCheck
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<TaskQuery,Task>
org.camunda.bpm.engine.impl.TaskQueryImpl
public class TaskQueryImpl
| Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery |
|---|
commandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC |
| Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject |
|---|
databaseType, firstResult, maxResults, parameter |
| Fields inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck |
|---|
authDefaultPerm, authGroupIds, authPerms, authResourceId, authResourceIdQueryParam, authResourceType, authUserId, isAuthorizationCheckEnabled |
| Constructor Summary | |
|---|---|
TaskQueryImpl()
|
|
TaskQueryImpl(CommandContext commandContext)
|
|
TaskQueryImpl(CommandExecutor commandExecutor)
|
|
| Method Summary | |
|---|---|
TaskQuery |
active()
Only selects tasks which are active (ie. |
TaskQuery |
activityInstanceIdIn(String... activityInstanceIds)
Only select task which have one of the activity instance ids. |
protected void |
addVariable(String name,
Object value,
QueryOperator operator,
boolean processInstanceScope)
|
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. |
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 |
followUpAfter(Date followUpAfter)
Only select tasks which have a follow-up date after the given date. |
TaskQuery |
followUpBefore(Date followUpBefore)
Only select tasks which have a follow-up date before the given date. |
TaskQuery |
followUpDate(Date followUpDate)
Only select tasks with the given follow-up date. |
String[] |
getActivityInstanceIdIn()
|
String |
getAssignee()
|
String |
getAssigneeLike()
|
String |
getCandidateGroup()
|
List<String> |
getCandidateGroups()
|
String |
getCandidateUser()
|
Date |
getCreateTime()
|
Date |
getCreateTimeAfter()
|
Date |
getCreateTimeBefore()
|
DelegationState |
getDelegationState()
|
String |
getDelegationStateString()
|
String |
getDescription()
|
String |
getDescriptionLike()
|
boolean |
getExcludeSubtasks()
|
String |
getExecutionId()
|
protected List<String> |
getGroupsForCandidateUser(String candidateUser)
|
String |
getKey()
|
String |
getKeyLike()
|
String |
getName()
|
String |
getNameLike()
|
boolean |
getNoDelegationState()
|
Integer |
getPriority()
|
String |
getProcessDefinitionId()
|
String |
getProcessDefinitionKey()
|
String |
getProcessDefinitionName()
|
String |
getProcessDefinitionNameLike()
|
String |
getProcessInstanceBusinessKey()
|
String |
getProcessInstanceBusinessKeyLike()
|
String |
getProcessInstanceId()
|
String |
getTaskId()
|
boolean |
getUnassigned()
|
List<TaskQueryVariableValue> |
getVariables()
|
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 |
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 |
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 |
orderByTaskPriority()
Order by priority (needs to be followed by Query.asc() or Query.desc()). |
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 |
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 foe the given business key |
TaskQuery |
processInstanceBusinessKeyLike(String processInstanceBusinessKey)
Only select tasks matching the given 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. |
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 |
taskAssigneeLike(String assignee)
Only select tasks which are matching the given user. |
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. |
TaskQueryImpl |
taskCandidateUser(String candidateUser)
Only select tasks for which the given user is a candidate. |
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 . |
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 |
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 |
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 |
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. |
| Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery |
|---|
addOrder, asc, assertParamNotNull, assertParamNotNull, checkQueryOk, count, desc, direction, execute, executeSingleResult, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResult |
| Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject |
|---|
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter |
| Methods inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck |
|---|
getAuthDefaultPerm, getAuthGroupIds, getAuthPerms, getAuthResourceId, getAuthResourceIdQueryParam, getAuthResourceType, getAuthUserId, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthPerms, setAuthResourceId, setAuthResourceIdQueryParam, setAuthResourceType, setAuthUserId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.camunda.bpm.engine.query.Query |
|---|
asc, count, desc, list, listPage, singleResult |
| Field Detail |
|---|
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 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 processDefinitionKey
protected String processDefinitionId
protected String processDefinitionName
protected String processDefinitionNameLike
protected String processInstanceBusinessKey
protected String processInstanceBusinessKeyLike
protected List<TaskQueryVariableValue> variables
protected Date dueDate
protected Date dueBefore
protected Date dueAfter
protected Date followUpDate
protected Date followUpBefore
protected Date followUpAfter
protected boolean excludeSubtasks
protected SuspensionState suspensionState
| Constructor Detail |
|---|
public TaskQueryImpl()
public TaskQueryImpl(CommandContext commandContext)
public TaskQueryImpl(CommandExecutor commandExecutor)
| Method Detail |
|---|
public TaskQueryImpl taskId(String taskId)
TaskQuery
taskId in interface TaskQuerypublic TaskQueryImpl taskName(String name)
TaskQuery
taskName in interface TaskQuerypublic TaskQueryImpl taskNameLike(String nameLike)
TaskQuery
taskNameLike in interface TaskQuerypublic TaskQueryImpl taskDescription(String description)
TaskQuery
taskDescription in interface TaskQuerypublic TaskQuery taskDescriptionLike(String descriptionLike)
TaskQuery
taskDescriptionLike in interface TaskQuerypublic TaskQuery taskPriority(Integer priority)
TaskQuery
taskPriority in interface TaskQuerypublic TaskQuery taskMinPriority(Integer minPriority)
TaskQuery
taskMinPriority in interface TaskQuerypublic TaskQuery taskMaxPriority(Integer maxPriority)
TaskQuery
taskMaxPriority in interface TaskQuerypublic TaskQueryImpl taskAssignee(String assignee)
TaskQuery
taskAssignee in interface TaskQuerypublic TaskQuery taskAssigneeLike(String assignee)
TaskQuery
taskAssigneeLike in interface TaskQuerypublic TaskQueryImpl taskOwner(String owner)
TaskQuery
taskOwner in interface TaskQuery@Deprecated public TaskQuery taskUnnassigned()
taskUnnassigned in interface TaskQuery#taskUnassigned}public TaskQuery taskUnassigned()
TaskQuery
taskUnassigned in interface TaskQuerypublic TaskQuery taskDelegationState(DelegationState delegationState)
TaskQueryDelegationState.
taskDelegationState in interface TaskQuerypublic TaskQueryImpl taskCandidateUser(String candidateUser)
TaskQuery
taskCandidateUser in interface TaskQuerypublic TaskQueryImpl taskInvolvedUser(String involvedUser)
TaskQueryIdentityLink with the given user
taskInvolvedUser in interface TaskQuerypublic TaskQueryImpl taskCandidateGroup(String candidateGroup)
TaskQuery
taskCandidateGroup in interface TaskQuerypublic TaskQuery taskCandidateGroupIn(List<String> candidateGroups)
TaskQuery
taskCandidateGroupIn in interface TaskQuerypublic TaskQueryImpl processInstanceId(String processInstanceId)
TaskQuery
processInstanceId in interface TaskQuerypublic TaskQueryImpl processInstanceBusinessKey(String processInstanceBusinessKey)
TaskQuery
processInstanceBusinessKey in interface TaskQuerypublic TaskQuery processInstanceBusinessKeyLike(String processInstanceBusinessKey)
TaskQuery
processInstanceBusinessKeyLike in interface TaskQuerypublic TaskQueryImpl executionId(String executionId)
TaskQuery
executionId in interface TaskQuerypublic TaskQuery activityInstanceIdIn(String... activityInstanceIds)
TaskQuery
activityInstanceIdIn in interface TaskQuerypublic TaskQueryImpl taskCreatedOn(Date createTime)
TaskQuery
taskCreatedOn in interface TaskQuerypublic TaskQuery taskCreatedBefore(Date before)
TaskQuery
taskCreatedBefore in interface TaskQuerypublic TaskQuery taskCreatedAfter(Date after)
TaskQuery
taskCreatedAfter in interface TaskQuerypublic TaskQuery taskDefinitionKey(String key)
TaskQuery
taskDefinitionKey in interface TaskQuerypublic TaskQuery taskDefinitionKeyLike(String keyLike)
TaskQuery
taskDefinitionKeyLike in interface TaskQuery
public TaskQuery taskVariableValueEquals(String variableName,
Object variableValue)
TaskQuery
taskVariableValueEquals in interface TaskQuery
public TaskQuery taskVariableValueNotEquals(String variableName,
Object variableValue)
TaskQuerySerializable 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)
TaskQuerySerializable 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 TaskQuerypublic TaskQuery processDefinitionKey(String processDefinitionKey)
TaskQuery
processDefinitionKey in interface TaskQuerypublic TaskQuery processDefinitionId(String processDefinitionId)
TaskQuery
processDefinitionId in interface TaskQuerypublic TaskQuery processDefinitionName(String processDefinitionName)
TaskQuery
processDefinitionName in interface TaskQuerypublic TaskQuery processDefinitionNameLike(String processDefinitionName)
TaskQuery
processDefinitionNameLike in interface TaskQuerypublic TaskQuery dueDate(Date dueDate)
TaskQuery
dueDate in interface TaskQuerypublic TaskQuery dueBefore(Date dueBefore)
TaskQuery
dueBefore in interface TaskQuerypublic TaskQuery dueAfter(Date dueAfter)
TaskQuery
dueAfter in interface TaskQuerypublic TaskQuery followUpDate(Date followUpDate)
TaskQuery
followUpDate in interface TaskQuerypublic TaskQuery followUpBefore(Date followUpBefore)
TaskQuery
followUpBefore in interface TaskQuerypublic TaskQuery followUpAfter(Date followUpAfter)
TaskQuery
followUpAfter in interface TaskQuerypublic TaskQuery excludeSubtasks()
TaskQuery
excludeSubtasks in interface TaskQuerypublic TaskQuery active()
TaskQuery
active in interface TaskQuerypublic TaskQuery suspended()
TaskQuery
suspended in interface TaskQuerypublic List<String> getCandidateGroups()
protected List<String> getGroupsForCandidateUser(String candidateUser)
protected void ensureVariablesInitialized()
protected void addVariable(String name,
Object value,
QueryOperator operator,
boolean processInstanceScope)
public TaskQuery orderByTaskId()
TaskQueryQuery.asc() or Query.desc()).
orderByTaskId in interface TaskQuerypublic TaskQuery orderByTaskName()
TaskQueryQuery.asc() or Query.desc()).
orderByTaskName in interface TaskQuerypublic TaskQuery orderByTaskDescription()
TaskQueryQuery.asc() or Query.desc()).
orderByTaskDescription in interface TaskQuerypublic TaskQuery orderByTaskPriority()
TaskQueryQuery.asc() or Query.desc()).
orderByTaskPriority in interface TaskQuerypublic TaskQuery orderByProcessInstanceId()
TaskQueryQuery.asc() or Query.desc()).
orderByProcessInstanceId in interface TaskQuerypublic TaskQuery orderByExecutionId()
TaskQueryQuery.asc() or Query.desc()).
orderByExecutionId in interface TaskQuerypublic TaskQuery orderByTaskAssignee()
TaskQueryQuery.asc() or Query.desc()).
orderByTaskAssignee in interface TaskQuerypublic TaskQuery orderByTaskCreateTime()
TaskQueryQuery.asc() or Query.desc()).
orderByTaskCreateTime in interface TaskQuerypublic TaskQuery orderByDueDate()
TaskQueryQuery.asc() or Query.desc()).
orderByDueDate in interface TaskQuerypublic TaskQuery orderByFollowUpDate()
TaskQueryQuery.asc() or Query.desc()).
orderByFollowUpDate 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 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[] getActivityInstanceIdIn()
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 List<TaskQueryVariableValue> getVariables()
public String getProcessDefinitionKey()
public String getProcessDefinitionId()
public String getProcessDefinitionName()
public String getProcessDefinitionNameLike()
public String getProcessInstanceBusinessKey()
public String getProcessInstanceBusinessKeyLike()
public boolean getExcludeSubtasks()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||