org.activiti.engine.impl
类 ProcessInstanceQueryImpl

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

public class ProcessInstanceQueryImpl
extends AbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
implements ProcessInstanceQuery, Serializable

作者:
Tom Baeyens, Joram Barrez, Frederik Heremans, Falko Menge, Daniel Meyer
另请参见:
序列化表格

字段摘要
protected  String activityId
           
protected  String businessKey
           
protected  List<EventSubscriptionQueryValue> eventSubscriptions
           
protected  boolean excludeSubprocesses
           
protected  String executionId
           
protected  boolean includeChildExecutionsWithBusinessKeyQuery
           
protected  boolean includeProcessVariables
           
protected  String involvedUser
           
protected  String processDefinitionId
           
protected  String processDefinitionKey
           
protected  String processDefinitionName
           
protected  Set<String> processInstanceIds
           
protected  String subProcessInstanceId
           
protected  String superProcessInstanceId
           
protected  SuspensionState suspensionState
           
 
从类 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
 
构造方法摘要
ProcessInstanceQueryImpl()
           
ProcessInstanceQueryImpl(CommandContext commandContext)
           
ProcessInstanceQueryImpl(CommandExecutor commandExecutor)
           
 
方法摘要
 ProcessInstanceQuery active()
          Only select process instances which are active, which means that neither the process instance nor the corresponding process definition are suspended.
 ProcessInstanceQuery excludeSubprocesses(boolean excludeSubprocesses)
          Exclude sub processes from the query result;
 long executeCount(CommandContext commandContext)
           
 List<ProcessInstance> executeList(CommandContext commandContext, Page page)
          Executes the actual query to retrieve the list of results.
 String getActivityId()
           
 String getBusinessKey()
           
 List<EventSubscriptionQueryValue> getEventSubscriptions()
           
 String getInvolvedUser()
           
 String getMssqlOrDB2OrderBy()
           
 boolean getOnlyProcessInstances()
           
 String getParentId()
          Method needed for ibatis because of re-use of query-xml for executions.
 String getProcessDefinitionId()
           
 String getProcessDefinitionKey()
           
 String getProcessDefinitionName()
           
 String getProcessInstanceId()
           
 Set<String> getProcessInstanceIds()
           
 String getSubProcessInstanceId()
           
 String getSuperProcessInstanceId()
           
 SuspensionState getSuspensionState()
           
 ProcessInstanceQuery includeProcessVariables()
          Include process variables in the process query result
 ProcessInstanceQuery involvedUser(String involvedUser)
          Select the process instances with which the user with the given id is involved.
 boolean isExcludeSubprocesses()
           
 boolean isIncludeChildExecutionsWithBusinessKeyQuery()
           
 ProcessInstanceQuery orderByProcessDefinitionId()
          Order by process definition id (needs to be followed by Query.asc() or Query.desc()).
 ProcessInstanceQuery orderByProcessDefinitionKey()
          Order by process definition key (needs to be followed by Query.asc() or Query.desc()).
 ProcessInstanceQuery orderByProcessInstanceId()
          Order by id (needs to be followed by Query.asc() or Query.desc()).
 ProcessInstanceQueryImpl processDefinitionId(String processDefinitionId)
          Select the process instances which are defined by a process definition with the given id.
 ProcessInstanceQueryImpl processDefinitionKey(String processDefinitionKey)
          Select the process instances which are defined by a process definition with the given key.
 ProcessInstanceQuery processDefinitionName(String processDefinitionName)
          Select process instances whose process definition name is processDefinitionName
 ProcessInstanceQuery processInstanceBusinessKey(String businessKey)
          Select process instances with the given business key
 ProcessInstanceQuery processInstanceBusinessKey(String businessKey, String processDefinitionKey)
          Select process instance with the given business key, unique for the given process definition
 ProcessInstanceQueryImpl processInstanceId(String processInstanceId)
          Select the process instance with the given id
 ProcessInstanceQuery processInstanceIds(Set<String> processInstanceIds)
          Select process instances whose id is in the given set of ids
 void setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions)
           
 void setSuspensionState(SuspensionState suspensionState)
           
 ProcessInstanceQuery subProcessInstanceId(String subProcessInstanceId)
          Select the process instance that have as sub process instance the given process instance.
 ProcessInstanceQuery superProcessInstanceId(String superProcessInstanceId)
          Select the process instances which are a sub process instance of the given super process instance.
 ProcessInstanceQuery suspended()
          Only select process instances which are suspended, either because the process instance itself is suspended or because the corresponding process definition is suspended
 
从类 org.activiti.engine.impl.AbstractVariableQueryImpl 继承的方法
ensureVariablesInitialized, 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.runtime.ProcessInstanceQuery 继承的方法
variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals, variableValueNotEqualsIgnoreCase
 
从接口 org.activiti.engine.query.Query 继承的方法
asc, count, desc, list, listPage, singleResult
 

字段详细信息

executionId

protected String executionId

businessKey

protected String businessKey

includeChildExecutionsWithBusinessKeyQuery

protected boolean includeChildExecutionsWithBusinessKeyQuery

processDefinitionId

protected String processDefinitionId

processDefinitionName

protected String processDefinitionName

processInstanceIds

protected Set<String> processInstanceIds

processDefinitionKey

protected String processDefinitionKey

superProcessInstanceId

protected String superProcessInstanceId

subProcessInstanceId

protected String subProcessInstanceId

excludeSubprocesses

protected boolean excludeSubprocesses

involvedUser

protected String involvedUser

suspensionState

protected SuspensionState suspensionState

includeProcessVariables

protected boolean includeProcessVariables

activityId

protected String activityId

eventSubscriptions

protected List<EventSubscriptionQueryValue> eventSubscriptions
构造方法详细信息

ProcessInstanceQueryImpl

public ProcessInstanceQueryImpl()

ProcessInstanceQueryImpl

public ProcessInstanceQueryImpl(CommandContext commandContext)

ProcessInstanceQueryImpl

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

processInstanceId

public ProcessInstanceQueryImpl processInstanceId(String processInstanceId)
从接口 ProcessInstanceQuery 复制的描述
Select the process instance with the given id

指定者:
接口 ProcessInstanceQuery 中的 processInstanceId

processInstanceIds

public ProcessInstanceQuery processInstanceIds(Set<String> processInstanceIds)
从接口 ProcessInstanceQuery 复制的描述
Select process instances whose id is in the given set of ids

指定者:
接口 ProcessInstanceQuery 中的 processInstanceIds

processInstanceBusinessKey

public ProcessInstanceQuery processInstanceBusinessKey(String businessKey)
从接口 ProcessInstanceQuery 复制的描述
Select process instances with the given business key

指定者:
接口 ProcessInstanceQuery 中的 processInstanceBusinessKey

processInstanceBusinessKey

public ProcessInstanceQuery processInstanceBusinessKey(String businessKey,
                                                       String processDefinitionKey)
从接口 ProcessInstanceQuery 复制的描述
Select process instance with the given business key, unique for the given process definition

指定者:
接口 ProcessInstanceQuery 中的 processInstanceBusinessKey

processDefinitionName

public ProcessInstanceQuery processDefinitionName(String processDefinitionName)
从接口 ProcessInstanceQuery 复制的描述
Select process instances whose process definition name is processDefinitionName

指定者:
接口 ProcessInstanceQuery 中的 processDefinitionName

processDefinitionId

public ProcessInstanceQueryImpl processDefinitionId(String processDefinitionId)
从接口 ProcessInstanceQuery 复制的描述
Select the process instances which are defined by a process definition with the given id.

指定者:
接口 ProcessInstanceQuery 中的 processDefinitionId

processDefinitionKey

public ProcessInstanceQueryImpl processDefinitionKey(String processDefinitionKey)
从接口 ProcessInstanceQuery 复制的描述
Select the process instances which are defined by a process definition with the given key.

指定者:
接口 ProcessInstanceQuery 中的 processDefinitionKey

superProcessInstanceId

public ProcessInstanceQuery superProcessInstanceId(String superProcessInstanceId)
从接口 ProcessInstanceQuery 复制的描述
Select the process instances which are a sub process instance of the given super process instance.

指定者:
接口 ProcessInstanceQuery 中的 superProcessInstanceId

subProcessInstanceId

public ProcessInstanceQuery subProcessInstanceId(String subProcessInstanceId)
从接口 ProcessInstanceQuery 复制的描述
Select the process instance that have as sub process instance the given process instance. Note that there will always be maximum only one such process instance that can be the result of this query.

指定者:
接口 ProcessInstanceQuery 中的 subProcessInstanceId

excludeSubprocesses

public ProcessInstanceQuery excludeSubprocesses(boolean excludeSubprocesses)
从接口 ProcessInstanceQuery 复制的描述
Exclude sub processes from the query result;

指定者:
接口 ProcessInstanceQuery 中的 excludeSubprocesses

involvedUser

public ProcessInstanceQuery involvedUser(String involvedUser)
从接口 ProcessInstanceQuery 复制的描述
Select the process instances with which the user with the given id is involved.

指定者:
接口 ProcessInstanceQuery 中的 involvedUser

orderByProcessInstanceId

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

指定者:
接口 ProcessInstanceQuery 中的 orderByProcessInstanceId

orderByProcessDefinitionId

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

指定者:
接口 ProcessInstanceQuery 中的 orderByProcessDefinitionId

orderByProcessDefinitionKey

public ProcessInstanceQuery orderByProcessDefinitionKey()
从接口 ProcessInstanceQuery 复制的描述
Order by process definition key (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 ProcessInstanceQuery 中的 orderByProcessDefinitionKey

active

public ProcessInstanceQuery active()
从接口 ProcessInstanceQuery 复制的描述
Only select process instances which are active, which means that neither the process instance nor the corresponding process definition are suspended.

指定者:
接口 ProcessInstanceQuery 中的 active

suspended

public ProcessInstanceQuery suspended()
从接口 ProcessInstanceQuery 复制的描述
Only select process instances which are suspended, either because the process instance itself is suspended or because the corresponding process definition is suspended

指定者:
接口 ProcessInstanceQuery 中的 suspended

includeProcessVariables

public ProcessInstanceQuery includeProcessVariables()
从接口 ProcessInstanceQuery 复制的描述
Include process variables in the process query result

指定者:
接口 ProcessInstanceQuery 中的 includeProcessVariables

getMssqlOrDB2OrderBy

public String getMssqlOrDB2OrderBy()

executeCount

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

executeList

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

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

getOnlyProcessInstances

public boolean getOnlyProcessInstances()

getProcessInstanceId

public String getProcessInstanceId()

getProcessInstanceIds

public Set<String> getProcessInstanceIds()

getBusinessKey

public String getBusinessKey()

isIncludeChildExecutionsWithBusinessKeyQuery

public boolean isIncludeChildExecutionsWithBusinessKeyQuery()

getProcessDefinitionId

public String getProcessDefinitionId()

getProcessDefinitionName

public String getProcessDefinitionName()

getProcessDefinitionKey

public String getProcessDefinitionKey()

getActivityId

public String getActivityId()

getSuperProcessInstanceId

public String getSuperProcessInstanceId()

getSubProcessInstanceId

public String getSubProcessInstanceId()

isExcludeSubprocesses

public boolean isExcludeSubprocesses()

getInvolvedUser

public String getInvolvedUser()

getSuspensionState

public SuspensionState getSuspensionState()

setSuspensionState

public void setSuspensionState(SuspensionState suspensionState)

getEventSubscriptions

public List<EventSubscriptionQueryValue> getEventSubscriptions()

setEventSubscriptions

public void setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions)

getParentId

public String getParentId()
Method needed for ibatis because of re-use of query-xml for executions. ExecutionQuery contains a parentId property.



Copyright © 2013 Alfresco. All rights reserved.