org.activiti.engine.impl
类 TaskQueryImpl

java.lang.Object
  继承者 org.activiti.engine.impl.db.ListQueryParameterObject
      继承者 org.activiti.engine.impl.AbstractQuery<T,U>
          继承者 org.activiti.engine.impl.AbstractVariableQueryImpl<TaskQuery,Task>
              继承者 org.activiti.engine.impl.TaskQueryImpl
所有已实现的接口:
Serializable, Command<Object>, Query<TaskQuery,Task>, TaskQuery

public class TaskQueryImpl
extends AbstractVariableQueryImpl<TaskQuery,Task>
implements TaskQuery

作者:
Joram Barrez, Tom Baeyens, Falko Menge, Tijs Rademakers
另请参见:
序列化表格

字段摘要
protected  String assignee
           
protected  String assigneeLike
           
protected  String candidateGroup
           
protected  String candidateUser
           
protected  Date createTime
           
protected  Date createTimeAfter
           
protected  Date createTimeBefore
           
protected  DelegationState delegationState
           
protected  String description
           
protected  String descriptionLike
           
protected  Date dueAfter
           
protected  Date dueBefore
           
protected  Date dueDate
           
protected  boolean excludeSubtasks
           
protected  String executionId
           
protected  boolean includeProcessVariables
           
protected  boolean includeTaskLocalVariables
           
protected  String involvedUser
           
protected  String key
           
protected  String keyLike
           
protected  Integer maxPriority
           
protected  Integer minPriority
           
protected  String name
           
protected  String nameLike
           
protected  boolean noDelegationState
           
protected  String owner
           
protected  String ownerLike
           
protected  Integer priority
           
protected  String processDefinitionId
           
protected  String processDefinitionKey
           
protected  String processDefinitionKeyLike
           
protected  String processDefinitionName
           
protected  String processDefinitionNameLike
           
protected  String processInstanceBusinessKey
           
protected  String processInstanceBusinessKeyLike
           
protected  String processInstanceId
           
protected  SuspensionState suspensionState
           
protected  String taskId
           
protected  boolean unassigned
           
protected  boolean withoutDueDate
           
 
从类 org.activiti.engine.impl.AbstractVariableQueryImpl 继承的字段
queryVariableValues
 
从类 org.activiti.engine.impl.AbstractQuery 继承的字段
commandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
 
从类 org.activiti.engine.impl.db.ListQueryParameterObject 继承的字段
databaseType, firstResult, maxResults, parameter
 
构造方法摘要
TaskQueryImpl()
           
TaskQueryImpl(CommandContext commandContext)
           
TaskQueryImpl(CommandExecutor commandExecutor)
           
 
方法摘要
 TaskQuery active()
          Only selects tasks which are active (ie. not suspended)
 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. do not select subtasks).
 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 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 getMssqlOrDB2OrderBy()
           
 String getName()
           
 String getNameLike()
           
 boolean getNoDelegationState()
           
 Integer getPriority()
           
 String getProcessDefinitionId()
           
 String getProcessDefinitionKey()
           
 String getProcessDefinitionName()
           
 String getProcessInstanceBusinessKey()
           
 String getProcessInstanceId()
           
 String getTaskId()
           
 boolean getUnassigned()
           
 TaskQuery includeProcessVariables()
          Include global task variables in the task query result
 TaskQuery includeTaskLocalVariables()
          Include local task variables in the task query result
 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 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 processDefinitionKeyLike(String processDefinitionKeyLike)
          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%").
 TaskQueryImpl processInstanceId(String processInstanceId)
          Only select tasks for the given process instance id.
 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 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.
 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.
 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, 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
 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.
 TaskQueryImpl taskOwnerLike(String ownerLike)
          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 taskUnassigned()
          Only select tasks which don't have an assignee.
 TaskQuery taskUnnassigned()
          已过时。 
 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 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 withoutDueDate()
          Only select tasks with no due date.
 
从类 org.activiti.engine.impl.AbstractVariableQueryImpl 继承的方法
getQueryVariableValues, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThan, variableValueLessThanOrEqual, variableValueLessThanOrEqual, variableValueLike, variableValueLike, variableValueNotEquals, variableValueNotEquals, variableValueNotEqualsIgnoreCase, variableValueNotEqualsIgnoreCase
 
从类 org.activiti.engine.impl.AbstractQuery 继承的方法
addOrder, asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResult
 
从类 org.activiti.engine.impl.db.ListQueryParameterObject 继承的方法
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setParameter
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 org.activiti.engine.query.Query 继承的方法
asc, count, desc, list, listPage, singleResult
 

字段详细信息

taskId

protected String taskId

name

protected String name

nameLike

protected String nameLike

description

protected String description

descriptionLike

protected String descriptionLike

priority

protected Integer priority

minPriority

protected Integer minPriority

maxPriority

protected Integer maxPriority

assignee

protected String assignee

assigneeLike

protected String assigneeLike

involvedUser

protected String involvedUser

owner

protected String owner

ownerLike

protected String ownerLike

unassigned

protected boolean unassigned

noDelegationState

protected boolean noDelegationState

delegationState

protected DelegationState delegationState

candidateUser

protected String candidateUser

candidateGroup

protected String candidateGroup

processInstanceId

protected String processInstanceId

executionId

protected String executionId

createTime

protected Date createTime

createTimeBefore

protected Date createTimeBefore

createTimeAfter

protected Date createTimeAfter

key

protected String key

keyLike

protected String keyLike

processDefinitionKey

protected String processDefinitionKey

processDefinitionKeyLike

protected String processDefinitionKeyLike

processDefinitionId

protected String processDefinitionId

processDefinitionName

protected String processDefinitionName

processDefinitionNameLike

protected String processDefinitionNameLike

processInstanceBusinessKey

protected String processInstanceBusinessKey

processInstanceBusinessKeyLike

protected String processInstanceBusinessKeyLike

dueDate

protected Date dueDate

dueBefore

protected Date dueBefore

dueAfter

protected Date dueAfter

withoutDueDate

protected boolean withoutDueDate

suspensionState

protected SuspensionState suspensionState

excludeSubtasks

protected boolean excludeSubtasks

includeTaskLocalVariables

protected boolean includeTaskLocalVariables

includeProcessVariables

protected boolean includeProcessVariables
构造方法详细信息

TaskQueryImpl

public TaskQueryImpl()

TaskQueryImpl

public TaskQueryImpl(CommandContext commandContext)

TaskQueryImpl

public TaskQueryImpl(CommandExecutor commandExecutor)
方法详细信息

taskId

public TaskQueryImpl taskId(String taskId)
从接口 TaskQuery 复制的描述
Only select tasks with the given task id (in practice, there will be maximum one of this kind)

指定者:
接口 TaskQuery 中的 taskId

taskName

public TaskQueryImpl taskName(String name)
从接口 TaskQuery 复制的描述
Only select tasks with the given name

指定者:
接口 TaskQuery 中的 taskName

taskNameLike

public TaskQueryImpl taskNameLike(String nameLike)
从接口 TaskQuery 复制的描述
Only select tasks with a name matching the parameter. The syntax is that of SQL: for example usage: nameLike(%activiti%)

指定者:
接口 TaskQuery 中的 taskNameLike

taskDescription

public TaskQueryImpl taskDescription(String description)
从接口 TaskQuery 复制的描述
Only select tasks with the given description.

指定者:
接口 TaskQuery 中的 taskDescription

taskDescriptionLike

public TaskQuery taskDescriptionLike(String descriptionLike)
从接口 TaskQuery 复制的描述
Only select tasks with a description matching the parameter . The syntax is that of SQL: for example usage: descriptionLike(%activiti%)

指定者:
接口 TaskQuery 中的 taskDescriptionLike

taskPriority

public TaskQuery taskPriority(Integer priority)
从接口 TaskQuery 复制的描述
Only select tasks with the given priority.

指定者:
接口 TaskQuery 中的 taskPriority

taskMinPriority

public TaskQuery taskMinPriority(Integer minPriority)
从接口 TaskQuery 复制的描述
Only select tasks with the given priority or higher.

指定者:
接口 TaskQuery 中的 taskMinPriority

taskMaxPriority

public TaskQuery taskMaxPriority(Integer maxPriority)
从接口 TaskQuery 复制的描述
Only select tasks with the given priority or lower.

指定者:
接口 TaskQuery 中的 taskMaxPriority

taskAssignee

public TaskQueryImpl taskAssignee(String assignee)
从接口 TaskQuery 复制的描述
Only select tasks which are assigned to the given user.

指定者:
接口 TaskQuery 中的 taskAssignee

taskAssigneeLike

public TaskQueryImpl taskAssigneeLike(String assigneeLike)
从接口 TaskQuery 复制的描述
Only select tasks which were last assigned to an assignee like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.

指定者:
接口 TaskQuery 中的 taskAssigneeLike

taskOwner

public TaskQueryImpl taskOwner(String owner)
从接口 TaskQuery 复制的描述
Only select tasks for which the given user is the owner.

指定者:
接口 TaskQuery 中的 taskOwner

taskOwnerLike

public TaskQueryImpl taskOwnerLike(String ownerLike)
从接口 TaskQuery 复制的描述
Only select tasks which were last assigned to an owner like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.

指定者:
接口 TaskQuery 中的 taskOwnerLike

taskUnnassigned

@Deprecated
public TaskQuery taskUnnassigned()
已过时。 

指定者:
接口 TaskQuery 中的 taskUnnassigned
另请参见:
#taskUnassigned}

taskUnassigned

public TaskQuery taskUnassigned()
从接口 TaskQuery 复制的描述
Only select tasks which don't have an assignee.

指定者:
接口 TaskQuery 中的 taskUnassigned

taskDelegationState

public TaskQuery taskDelegationState(DelegationState delegationState)
从接口 TaskQuery 复制的描述
Only select tasks with the given DelegationState.

指定者:
接口 TaskQuery 中的 taskDelegationState

taskCandidateUser

public TaskQueryImpl taskCandidateUser(String candidateUser)
从接口 TaskQuery 复制的描述
Only select tasks for which the given user is a candidate.

指定者:
接口 TaskQuery 中的 taskCandidateUser

taskInvolvedUser

public TaskQueryImpl taskInvolvedUser(String involvedUser)
从接口 TaskQuery 复制的描述
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 中的 taskInvolvedUser

taskCandidateGroup

public TaskQueryImpl taskCandidateGroup(String candidateGroup)
从接口 TaskQuery 复制的描述
Only select tasks for which users in the given group are candidates.

指定者:
接口 TaskQuery 中的 taskCandidateGroup

taskCandidateGroupIn

public TaskQuery taskCandidateGroupIn(List<String> candidateGroups)
从接口 TaskQuery 复制的描述
Only select tasks for which the 'candidateGroup' is one of the given groups.

指定者:
接口 TaskQuery 中的 taskCandidateGroupIn

processInstanceId

public TaskQueryImpl processInstanceId(String processInstanceId)
从接口 TaskQuery 复制的描述
Only select tasks for the given process instance id.

指定者:
接口 TaskQuery 中的 processInstanceId

processInstanceBusinessKey

public TaskQueryImpl processInstanceBusinessKey(String processInstanceBusinessKey)
从接口 TaskQuery 复制的描述
Only select tasks foe the given business key

指定者:
接口 TaskQuery 中的 processInstanceBusinessKey

processInstanceBusinessKeyLike

public TaskQueryImpl processInstanceBusinessKeyLike(String processInstanceBusinessKeyLike)
从接口 TaskQuery 复制的描述
Only select tasks with a business key like the given value The syntax is that of SQL: for example usage: processInstanceBusinessKeyLike("%activiti%").

指定者:
接口 TaskQuery 中的 processInstanceBusinessKeyLike

executionId

public TaskQueryImpl executionId(String executionId)
从接口 TaskQuery 复制的描述
Only select tasks for the given execution.

指定者:
接口 TaskQuery 中的 executionId

taskCreatedOn

public TaskQueryImpl taskCreatedOn(Date createTime)
从接口 TaskQuery 复制的描述
Only select tasks that are created on the given date.

指定者:
接口 TaskQuery 中的 taskCreatedOn

taskCreatedBefore

public TaskQuery taskCreatedBefore(Date before)
从接口 TaskQuery 复制的描述
Only select tasks that are created before the given date.

指定者:
接口 TaskQuery 中的 taskCreatedBefore

taskCreatedAfter

public TaskQuery taskCreatedAfter(Date after)
从接口 TaskQuery 复制的描述
Only select tasks that are created after the given date.

指定者:
接口 TaskQuery 中的 taskCreatedAfter

taskDefinitionKey

public TaskQuery taskDefinitionKey(String key)
从接口 TaskQuery 复制的描述
Only select tasks with the given taskDefinitionKey. The task definition key is the id of the userTask: <userTask id="xxx" .../>

指定者:
接口 TaskQuery 中的 taskDefinitionKey

taskDefinitionKeyLike

public TaskQuery taskDefinitionKeyLike(String keyLike)
从接口 TaskQuery 复制的描述
Only select tasks with a taskDefinitionKey that match the given parameter. The syntax is that of SQL: for example usage: taskDefinitionKeyLike("%activiti%"). The task definition key is the id of the userTask: <userTask id="xxx" .../>

指定者:
接口 TaskQuery 中的 taskDefinitionKeyLike

taskVariableValueEquals

public TaskQuery taskVariableValueEquals(String variableName,
                                         Object variableValue)
从接口 TaskQuery 复制的描述
Only select tasks which have a local task variable with the given name set to the given value.

指定者:
接口 TaskQuery 中的 taskVariableValueEquals

taskVariableValueEquals

public TaskQuery taskVariableValueEquals(Object variableValue)
从接口 TaskQuery 复制的描述
Only select tasks which have at least one local task variable with the given value.

指定者:
接口 TaskQuery 中的 taskVariableValueEquals

taskVariableValueEqualsIgnoreCase

public TaskQuery taskVariableValueEqualsIgnoreCase(String name,
                                                   String value)
从接口 TaskQuery 复制的描述
Only select tasks which have a local string variable with the given value, case insensitive.

This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).

指定者:
接口 TaskQuery 中的 taskVariableValueEqualsIgnoreCase

taskVariableValueNotEqualsIgnoreCase

public TaskQuery taskVariableValueNotEqualsIgnoreCase(String name,
                                                      String value)
从接口 TaskQuery 复制的描述
Only select tasks which have a local string variable with is not the given value, case insensitive.

This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).

指定者:
接口 TaskQuery 中的 taskVariableValueNotEqualsIgnoreCase

taskVariableValueNotEquals

public TaskQuery taskVariableValueNotEquals(String variableName,
                                            Object variableValue)
从接口 TaskQuery 复制的描述
Only select tasks which have a local task variable with the given name, but with a different value than the passed value. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

指定者:
接口 TaskQuery 中的 taskVariableValueNotEquals

taskVariableValueGreaterThan

public TaskQuery taskVariableValueGreaterThan(String name,
                                              Object value)
从接口 TaskQuery 复制的描述
Only select tasks which have a local variable value greater than the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

指定者:
接口 TaskQuery 中的 taskVariableValueGreaterThan
参数:
name - cannot be null.
value - cannot be null.

taskVariableValueGreaterThanOrEqual

public TaskQuery taskVariableValueGreaterThanOrEqual(String name,
                                                     Object value)
从接口 TaskQuery 复制的描述
Only select tasks which have a local variable value greater than or equal to the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

指定者:
接口 TaskQuery 中的 taskVariableValueGreaterThanOrEqual
参数:
name - cannot be null.
value - cannot be null.

taskVariableValueLessThan

public TaskQuery taskVariableValueLessThan(String name,
                                           Object value)
从接口 TaskQuery 复制的描述
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 中的 taskVariableValueLessThan
参数:
name - cannot be null.
value - cannot be null.

taskVariableValueLessThanOrEqual

public TaskQuery taskVariableValueLessThanOrEqual(String name,
                                                  Object value)
从接口 TaskQuery 复制的描述
Only select tasks which have a local variable value less than or equal to the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

指定者:
接口 TaskQuery 中的 taskVariableValueLessThanOrEqual
参数:
name - cannot be null.
value - cannot be null.

taskVariableValueLike

public TaskQuery taskVariableValueLike(String name,
                                       String value)
从接口 TaskQuery 复制的描述
Only select tasks which have a local variable value like the given value when they ended. This can be used on string variables only.

指定者:
接口 TaskQuery 中的 taskVariableValueLike
参数:
name - cannot be null.
value - cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).

processVariableValueEquals

public TaskQuery processVariableValueEquals(String variableName,
                                            Object variableValue)
从接口 TaskQuery 复制的描述
Only select tasks which are part of a process that has a variable with the given name set to the given value.

指定者:
接口 TaskQuery 中的 processVariableValueEquals

processVariableValueNotEquals

public TaskQuery processVariableValueNotEquals(String variableName,
                                               Object variableValue)
从接口 TaskQuery 复制的描述
Only select tasks which have a variable with the given name, but with a different value than the passed value. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

指定者:
接口 TaskQuery 中的 processVariableValueNotEquals

processVariableValueEquals

public TaskQuery processVariableValueEquals(Object variableValue)
从接口 TaskQuery 复制的描述
Only select tasks which are part of a process that has at least one variable with the given value.

指定者:
接口 TaskQuery 中的 processVariableValueEquals

processVariableValueEqualsIgnoreCase

public TaskQuery processVariableValueEqualsIgnoreCase(String name,
                                                      String value)
从接口 TaskQuery 复制的描述
Only select tasks which are part of a process that has a local string variable which is not the given value, case insensitive.

This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).

指定者:
接口 TaskQuery 中的 processVariableValueEqualsIgnoreCase

processVariableValueNotEqualsIgnoreCase

public TaskQuery processVariableValueNotEqualsIgnoreCase(String name,
                                                         String value)
从接口 TaskQuery 复制的描述
Only select tasks which are part of a process that has a string variable with the given value, case insensitive.

This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).

指定者:
接口 TaskQuery 中的 processVariableValueNotEqualsIgnoreCase

processVariableValueGreaterThan

public TaskQuery processVariableValueGreaterThan(String name,
                                                 Object value)
从接口 TaskQuery 复制的描述
Only select tasks which have a global variable value greater than the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

指定者:
接口 TaskQuery 中的 processVariableValueGreaterThan
参数:
name - cannot be null.
value - cannot be null.

processVariableValueGreaterThanOrEqual

public TaskQuery processVariableValueGreaterThanOrEqual(String name,
                                                        Object value)
从接口 TaskQuery 复制的描述
Only select tasks which have a global variable value greater than or equal to the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

指定者:
接口 TaskQuery 中的 processVariableValueGreaterThanOrEqual
参数:
name - cannot be null.
value - cannot be null.

processVariableValueLessThan

public TaskQuery processVariableValueLessThan(String name,
                                              Object value)
从接口 TaskQuery 复制的描述
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 中的 processVariableValueLessThan
参数:
name - cannot be null.
value - cannot be null.

processVariableValueLessThanOrEqual

public TaskQuery processVariableValueLessThanOrEqual(String name,
                                                     Object value)
从接口 TaskQuery 复制的描述
Only select tasks which have a global variable value less than or equal to the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

指定者:
接口 TaskQuery 中的 processVariableValueLessThanOrEqual
参数:
name - cannot be null.
value - cannot be null.

processVariableValueLike

public TaskQuery processVariableValueLike(String name,
                                          String value)
从接口 TaskQuery 复制的描述
Only select tasks which have a global variable value like the given value when they ended. This can be used on string variables only.

指定者:
接口 TaskQuery 中的 processVariableValueLike
参数:
name - cannot be null.
value - cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).

processDefinitionKey

public TaskQuery processDefinitionKey(String processDefinitionKey)
从接口 TaskQuery 复制的描述
Only select tasks which are part of a process instance which has the given process definition key.

指定者:
接口 TaskQuery 中的 processDefinitionKey

processDefinitionKeyLike

public TaskQuery processDefinitionKeyLike(String processDefinitionKeyLike)
从接口 TaskQuery 复制的描述
Only select tasks which are part of a process instance which has a process definition key like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.

指定者:
接口 TaskQuery 中的 processDefinitionKeyLike

processDefinitionId

public TaskQuery processDefinitionId(String processDefinitionId)
从接口 TaskQuery 复制的描述
Only select tasks which are part of a process instance which has the given process definition id.

指定者:
接口 TaskQuery 中的 processDefinitionId

processDefinitionName

public TaskQuery processDefinitionName(String processDefinitionName)
从接口 TaskQuery 复制的描述
Only select tasks which are part of a process instance which has the given process definition name.

指定者:
接口 TaskQuery 中的 processDefinitionName

processDefinitionNameLike

public TaskQuery processDefinitionNameLike(String processDefinitionNameLike)
从接口 TaskQuery 复制的描述
Only select tasks which are part of a process instance which has a process definition name like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.

指定者:
接口 TaskQuery 中的 processDefinitionNameLike

dueDate

public TaskQuery dueDate(Date dueDate)
从接口 TaskQuery 复制的描述
Only select tasks with the given due date.

指定者:
接口 TaskQuery 中的 dueDate

dueBefore

public TaskQuery dueBefore(Date dueBefore)
从接口 TaskQuery 复制的描述
Only select tasks which have a due date before the given date.

指定者:
接口 TaskQuery 中的 dueBefore

dueAfter

public TaskQuery dueAfter(Date dueAfter)
从接口 TaskQuery 复制的描述
Only select tasks which have a due date after the given date.

指定者:
接口 TaskQuery 中的 dueAfter

withoutDueDate

public TaskQuery withoutDueDate()
从接口 TaskQuery 复制的描述
Only select tasks with no due date.

指定者:
接口 TaskQuery 中的 withoutDueDate

excludeSubtasks

public TaskQuery excludeSubtasks()
从接口 TaskQuery 复制的描述
Only select tasks that have no parent (i.e. do not select subtasks).

指定者:
接口 TaskQuery 中的 excludeSubtasks

suspended

public TaskQuery suspended()
从接口 TaskQuery 复制的描述
Only selects tasks which are suspended, because its process instance was suspended.

指定者:
接口 TaskQuery 中的 suspended

active

public TaskQuery active()
从接口 TaskQuery 复制的描述
Only selects tasks which are active (ie. not suspended)

指定者:
接口 TaskQuery 中的 active

includeTaskLocalVariables

public TaskQuery includeTaskLocalVariables()
从接口 TaskQuery 复制的描述
Include local task variables in the task query result

指定者:
接口 TaskQuery 中的 includeTaskLocalVariables

includeProcessVariables

public TaskQuery includeProcessVariables()
从接口 TaskQuery 复制的描述
Include global task variables in the task query result

指定者:
接口 TaskQuery 中的 includeProcessVariables

getCandidateGroups

public List<String> getCandidateGroups()

getGroupsForCandidateUser

protected List<String> getGroupsForCandidateUser(String candidateUser)

ensureVariablesInitialized

protected void ensureVariablesInitialized()
覆盖:
AbstractVariableQueryImpl<TaskQuery,Task> 中的 ensureVariablesInitialized

orderByTaskId

public TaskQuery orderByTaskId()
从接口 TaskQuery 复制的描述
Order by task id (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 TaskQuery 中的 orderByTaskId

orderByTaskName

public TaskQuery orderByTaskName()
从接口 TaskQuery 复制的描述
Order by task name (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 TaskQuery 中的 orderByTaskName

orderByTaskDescription

public TaskQuery orderByTaskDescription()
从接口 TaskQuery 复制的描述
Order by description (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 TaskQuery 中的 orderByTaskDescription

orderByTaskPriority

public TaskQuery orderByTaskPriority()
从接口 TaskQuery 复制的描述
Order by priority (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 TaskQuery 中的 orderByTaskPriority

orderByProcessInstanceId

public TaskQuery orderByProcessInstanceId()
从接口 TaskQuery 复制的描述
Order by process instance id (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 TaskQuery 中的 orderByProcessInstanceId

orderByExecutionId

public TaskQuery orderByExecutionId()
从接口 TaskQuery 复制的描述
Order by execution id (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 TaskQuery 中的 orderByExecutionId

orderByTaskAssignee

public TaskQuery orderByTaskAssignee()
从接口 TaskQuery 复制的描述
Order by assignee (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 TaskQuery 中的 orderByTaskAssignee

orderByTaskCreateTime

public TaskQuery orderByTaskCreateTime()
从接口 TaskQuery 复制的描述
Order by the time on which the tasks were created (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 TaskQuery 中的 orderByTaskCreateTime

orderByDueDate

public TaskQuery orderByDueDate()
从接口 TaskQuery 复制的描述
Order by due date (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 TaskQuery 中的 orderByDueDate

getMssqlOrDB2OrderBy

public String getMssqlOrDB2OrderBy()

executeList

public List<Task> executeList(CommandContext commandContext,
                              Page page)
从类 AbstractQuery 复制的描述
Executes the actual query to retrieve the list of results.

指定者:
AbstractVariableQueryImpl<TaskQuery,Task> 中的 executeList
page - used if the results must be paged. If null, no paging will be applied.

executeCount

public long executeCount(CommandContext commandContext)
指定者:
AbstractVariableQueryImpl<TaskQuery,Task> 中的 executeCount

getName

public String getName()

getNameLike

public String getNameLike()

getAssignee

public String getAssignee()

getUnassigned

public boolean getUnassigned()

getDelegationState

public DelegationState getDelegationState()

getNoDelegationState

public boolean getNoDelegationState()

getDelegationStateString

public String getDelegationStateString()

getCandidateUser

public String getCandidateUser()

getCandidateGroup

public String getCandidateGroup()

getProcessInstanceId

public String getProcessInstanceId()

getExecutionId

public String getExecutionId()

getTaskId

public String getTaskId()

getDescription

public String getDescription()

getDescriptionLike

public String getDescriptionLike()

getPriority

public Integer getPriority()

getCreateTime

public Date getCreateTime()

getCreateTimeBefore

public Date getCreateTimeBefore()

getCreateTimeAfter

public Date getCreateTimeAfter()

getKey

public String getKey()

getKeyLike

public String getKeyLike()

getProcessDefinitionKey

public String getProcessDefinitionKey()

getProcessDefinitionId

public String getProcessDefinitionId()

getProcessDefinitionName

public String getProcessDefinitionName()

getProcessInstanceBusinessKey

public String getProcessInstanceBusinessKey()

getExcludeSubtasks

public boolean getExcludeSubtasks()


Copyright © 2013 Alfresco. All rights reserved.