org.activiti.engine.impl
类 ExecutionQueryImpl

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

public class ExecutionQueryImpl
extends AbstractVariableQueryImpl<ExecutionQuery,Execution>
implements ExecutionQuery

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

字段摘要
protected  String activityId
           
protected  String businessKey
           
protected  List<EventSubscriptionQueryValue> eventSubscriptions
           
protected  boolean excludeSubprocesses
           
protected  String executionId
           
protected  boolean includeChildExecutionsWithBusinessKeyQuery
           
protected  String involvedUser
           
protected  boolean isActive
           
protected  String parentId
           
protected  String processDefinitionId
           
protected  String processDefinitionKey
           
protected  String processDefinitionName
           
protected  String processInstanceId
           
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
 
构造方法摘要
ExecutionQueryImpl()
           
ExecutionQueryImpl(CommandContext commandContext)
           
ExecutionQueryImpl(CommandExecutor commandExecutor)
           
 
方法摘要
 ExecutionQueryImpl activityId(String activityId)
          Only select executions which contain an activity with the given id.
 ExecutionQuery eventSubscription(String eventType, String eventName)
           
 long executeCount(CommandContext commandContext)
           
 List<Execution> executeList(CommandContext commandContext, Page page)
          Executes the actual query to retrieve the list of results.
 ExecutionQueryImpl executionId(String executionId)
          Only select executions with the given id.
 String getActivityId()
           
 String getBusinessKey()
           
 List<EventSubscriptionQueryValue> getEventSubscriptions()
           
 String getExecutionId()
           
 String getInvolvedUser()
           
 boolean getOnlyProcessInstances()
           
 String getParentId()
           
 String getProcessDefinitionId()
           
 String getProcessDefinitionKey()
           
 String getProcessDefinitionName()
           
 String getProcessInstanceId()
           
 String getProcessInstanceIds()
           
 String getSubProcessInstanceId()
           
 String getSuperProcessInstanceId()
           
 SuspensionState getSuspensionState()
           
 boolean isActive()
           
 boolean isExcludeSubprocesses()
           
 boolean isIncludeChildExecutionsWithBusinessKeyQuery()
           
 boolean isProcessInstancesOnly()
           
 ExecutionQuery messageEventSubscriptionName(String messageName)
          Only select executions which have a message event subscription for the given messageName.
 ExecutionQueryImpl orderByProcessDefinitionId()
          Order by process definition id (needs to be followed by Query.asc() or Query.desc()).
 ExecutionQueryImpl orderByProcessDefinitionKey()
          Order by process definition key (needs to be followed by Query.asc() or Query.desc()).
 ExecutionQueryImpl orderByProcessInstanceId()
          Order by id (needs to be followed by Query.asc() or Query.desc()).
 ExecutionQueryImpl parentId(String parentId)
          Only select executions which are a direct child-execution of the execution with the given id.
 ExecutionQueryImpl processDefinitionId(String processDefinitionId)
          Only select executions which have the given process definition id.
 ExecutionQueryImpl processDefinitionKey(String processDefinitionKey)
          Only select executions which have the given process definition key.
 ExecutionQuery processDefinitionName(String processDefinitionName)
          Only select executions which have the given process definition name.
 ExecutionQuery processInstanceBusinessKey(String businessKey)
          Only executions with the given business key.
 ExecutionQuery processInstanceBusinessKey(String processInstanceBusinessKey, boolean includeChildExecutions)
          Only executions with the given business key.
 ExecutionQueryImpl processInstanceId(String processInstanceId)
          Only select executions which have the given process instance id.
 ExecutionQuery processVariableValueEquals(Object variableValue)
          Only select executions which are part of a process that have at least one variable with the given value.
 ExecutionQuery processVariableValueEquals(String variableName, Object variableValue)
          Only select executions which are part of a process that have a variable with the given name set to the given value.
 ExecutionQuery processVariableValueEqualsIgnoreCase(String name, String value)
          Only select executions which are part of a process that have a local string variable with the given value, case insensitive.
 ExecutionQuery processVariableValueNotEquals(String variableName, Object variableValue)
          Only select executions which are part of a process that have a variable with the given name, but with a different value than the passed value.
 ExecutionQuery processVariableValueNotEqualsIgnoreCase(String name, String value)
          Only select executions which are part of a process that have a local string variable which is not the given value, case insensitive.
 void setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions)
           
 void setInvolvedUser(String involvedUser)
           
 void setSuspensionState(SuspensionState suspensionState)
           
 ExecutionQuery signalEventSubscription(String signalName)
           
 ExecutionQuery signalEventSubscriptionName(String signalName)
          Only select executions which have a signal event subscription for the given signal name.
 
从类 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.ExecutionQuery 继承的方法
variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals, variableValueNotEqualsIgnoreCase
 
从接口 org.activiti.engine.query.Query 继承的方法
asc, count, desc, list, listPage, singleResult
 

字段详细信息

processDefinitionId

protected String processDefinitionId

processDefinitionKey

protected String processDefinitionKey

processDefinitionName

protected String processDefinitionName

activityId

protected String activityId

executionId

protected String executionId

parentId

protected String parentId

processInstanceId

protected String processInstanceId

eventSubscriptions

protected List<EventSubscriptionQueryValue> eventSubscriptions

superProcessInstanceId

protected String superProcessInstanceId

subProcessInstanceId

protected String subProcessInstanceId

excludeSubprocesses

protected boolean excludeSubprocesses

suspensionState

protected SuspensionState suspensionState

businessKey

protected String businessKey

includeChildExecutionsWithBusinessKeyQuery

protected boolean includeChildExecutionsWithBusinessKeyQuery

isActive

protected boolean isActive

involvedUser

protected String involvedUser
构造方法详细信息

ExecutionQueryImpl

public ExecutionQueryImpl()

ExecutionQueryImpl

public ExecutionQueryImpl(CommandContext commandContext)

ExecutionQueryImpl

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

isProcessInstancesOnly

public boolean isProcessInstancesOnly()

processDefinitionId

public ExecutionQueryImpl processDefinitionId(String processDefinitionId)
从接口 ExecutionQuery 复制的描述
Only select executions which have the given process definition id.

指定者:
接口 ExecutionQuery 中的 processDefinitionId

processDefinitionKey

public ExecutionQueryImpl processDefinitionKey(String processDefinitionKey)
从接口 ExecutionQuery 复制的描述
Only select executions which have the given process definition key.

指定者:
接口 ExecutionQuery 中的 processDefinitionKey

processDefinitionName

public ExecutionQuery processDefinitionName(String processDefinitionName)
从接口 ExecutionQuery 复制的描述
Only select executions which have the given process definition name.

指定者:
接口 ExecutionQuery 中的 processDefinitionName

processInstanceId

public ExecutionQueryImpl processInstanceId(String processInstanceId)
从接口 ExecutionQuery 复制的描述
Only select executions which have the given process instance id.

指定者:
接口 ExecutionQuery 中的 processInstanceId

processInstanceBusinessKey

public ExecutionQuery processInstanceBusinessKey(String businessKey)
从接口 ExecutionQuery 复制的描述
Only executions with the given business key. Note that only process instances have a business key and as such, child executions will NOT be returned. If you want to return child executions of the process instance with the given business key too, use the ExecutionQuery.processInstanceBusinessKey(String, boolean) method with a boolean value of true instead.

指定者:
接口 ExecutionQuery 中的 processInstanceBusinessKey

processInstanceBusinessKey

public ExecutionQuery processInstanceBusinessKey(String processInstanceBusinessKey,
                                                 boolean includeChildExecutions)
从接口 ExecutionQuery 复制的描述
Only executions with the given business key. Similar to ExecutionQuery.processInstanceBusinessKey(String), but allows to choose whether child executions are returned or not.

指定者:
接口 ExecutionQuery 中的 processInstanceBusinessKey

executionId

public ExecutionQueryImpl executionId(String executionId)
从接口 ExecutionQuery 复制的描述
Only select executions with the given id.

指定者:
接口 ExecutionQuery 中的 executionId

activityId

public ExecutionQueryImpl activityId(String activityId)
从接口 ExecutionQuery 复制的描述
Only select executions which contain an activity with the given id.

指定者:
接口 ExecutionQuery 中的 activityId

parentId

public ExecutionQueryImpl parentId(String parentId)
从接口 ExecutionQuery 复制的描述
Only select executions which are a direct child-execution of the execution with the given id.

指定者:
接口 ExecutionQuery 中的 parentId

signalEventSubscription

public ExecutionQuery signalEventSubscription(String signalName)
指定者:
接口 ExecutionQuery 中的 signalEventSubscription
另请参见:
ExecutionQuery.signalEventSubscriptionName(String)

signalEventSubscriptionName

public ExecutionQuery signalEventSubscriptionName(String signalName)
从接口 ExecutionQuery 复制的描述
Only select executions which have a signal event subscription for the given signal name. (The signalName is specified using the 'name' attribute of the signal element in the BPMN 2.0 XML.)

指定者:
接口 ExecutionQuery 中的 signalEventSubscriptionName
参数:
signalName - the name of the signal the execution has subscribed to

messageEventSubscriptionName

public ExecutionQuery messageEventSubscriptionName(String messageName)
从接口 ExecutionQuery 复制的描述
Only select executions which have a message event subscription for the given messageName. (The messageName is specified using the 'name' attribute of the message element in the BPMN 2.0 XML.)

指定者:
接口 ExecutionQuery 中的 messageEventSubscriptionName
参数:
messageName - the name of the message the execution has subscribed to

eventSubscription

public ExecutionQuery eventSubscription(String eventType,
                                        String eventName)

processVariableValueEquals

public ExecutionQuery processVariableValueEquals(String variableName,
                                                 Object variableValue)
从接口 ExecutionQuery 复制的描述
Only select executions which are part of a process that have a variable with the given name set to the given value. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

指定者:
接口 ExecutionQuery 中的 processVariableValueEquals

processVariableValueEquals

public ExecutionQuery processVariableValueEquals(Object variableValue)
从接口 ExecutionQuery 复制的描述
Only select executions which are part of a process that have at least one variable with the given value. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

指定者:
接口 ExecutionQuery 中的 processVariableValueEquals

processVariableValueNotEquals

public ExecutionQuery processVariableValueNotEquals(String variableName,
                                                    Object variableValue)
从接口 ExecutionQuery 复制的描述
Only select executions which are part of a process that 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.

指定者:
接口 ExecutionQuery 中的 processVariableValueNotEquals

processVariableValueEqualsIgnoreCase

public ExecutionQuery processVariableValueEqualsIgnoreCase(String name,
                                                           String value)
从接口 ExecutionQuery 复制的描述
Only select executions which are part of a process that 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).

指定者:
接口 ExecutionQuery 中的 processVariableValueEqualsIgnoreCase
参数:
name - name of the variable, cannot be null.
value - value of the variable, cannot be null.

processVariableValueNotEqualsIgnoreCase

public ExecutionQuery processVariableValueNotEqualsIgnoreCase(String name,
                                                              String value)
从接口 ExecutionQuery 复制的描述
Only select executions which are part of a process that have 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).

指定者:
接口 ExecutionQuery 中的 processVariableValueNotEqualsIgnoreCase
参数:
name - name of the variable, cannot be null.
value - value of the variable, cannot be null.

orderByProcessInstanceId

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

指定者:
接口 ExecutionQuery 中的 orderByProcessInstanceId

orderByProcessDefinitionId

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

指定者:
接口 ExecutionQuery 中的 orderByProcessDefinitionId

orderByProcessDefinitionKey

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

指定者:
接口 ExecutionQuery 中的 orderByProcessDefinitionKey

executeCount

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

executeList

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

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

getOnlyProcessInstances

public boolean getOnlyProcessInstances()

getProcessDefinitionKey

public String getProcessDefinitionKey()

getProcessDefinitionId

public String getProcessDefinitionId()

getProcessDefinitionName

public String getProcessDefinitionName()

getActivityId

public String getActivityId()

getProcessInstanceId

public String getProcessInstanceId()

getProcessInstanceIds

public String getProcessInstanceIds()

getBusinessKey

public String getBusinessKey()

getExecutionId

public String getExecutionId()

getSuperProcessInstanceId

public String getSuperProcessInstanceId()

getSubProcessInstanceId

public String getSubProcessInstanceId()

isExcludeSubprocesses

public boolean isExcludeSubprocesses()

getSuspensionState

public SuspensionState getSuspensionState()

setSuspensionState

public void setSuspensionState(SuspensionState suspensionState)

getEventSubscriptions

public List<EventSubscriptionQueryValue> getEventSubscriptions()

isIncludeChildExecutionsWithBusinessKeyQuery

public boolean isIncludeChildExecutionsWithBusinessKeyQuery()

setEventSubscriptions

public void setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions)

isActive

public boolean isActive()

getInvolvedUser

public String getInvolvedUser()

setInvolvedUser

public void setInvolvedUser(String involvedUser)

getParentId

public String getParentId()


Copyright © 2013 Alfresco. All rights reserved.