org.activiti.engine.runtime
接口 ExecutionQuery

所有超级接口:
Query<ExecutionQuery,Execution>
所有已知实现类:
ExecutionQueryImpl

public interface ExecutionQuery
extends Query<ExecutionQuery,Execution>

Allows programmatic querying of Executions.

作者:
Joram Barrez, Frederik Heremans

方法摘要
 ExecutionQuery activityId(String activityId)
          Only select executions which contain an activity with the given id.
 ExecutionQuery executionId(String executionId)
          Only select executions with the given id.
 ExecutionQuery messageEventSubscriptionName(String messageName)
          Only select executions which have a message event subscription for the given messageName.
 ExecutionQuery orderByProcessDefinitionId()
          Order by process definition id (needs to be followed by Query.asc() or Query.desc()).
 ExecutionQuery orderByProcessDefinitionKey()
          Order by process definition key (needs to be followed by Query.asc() or Query.desc()).
 ExecutionQuery orderByProcessInstanceId()
          Order by id (needs to be followed by Query.asc() or Query.desc()).
 ExecutionQuery parentId(String parentId)
          Only select executions which are a direct child-execution of the execution with the given id.
 ExecutionQuery processDefinitionId(String processDefinitionId)
          Only select executions which have the given process definition id.
 ExecutionQuery 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 processInstanceBusinessKey)
          Only executions with the given business key.
 ExecutionQuery processInstanceBusinessKey(String processInstanceBusinessKey, boolean includeChildExecutions)
          Only executions with the given business key.
 ExecutionQuery 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.
 ExecutionQuery signalEventSubscription(String signalName)
          已过时。 
 ExecutionQuery signalEventSubscriptionName(String signalName)
          Only select executions which have a signal event subscription for the given signal name.
 ExecutionQuery variableValueEquals(Object value)
          Only select executions which have at least one local variable with the given value.
 ExecutionQuery variableValueEquals(String name, Object value)
          Only select executions which have a local variable with the given value.
 ExecutionQuery variableValueEqualsIgnoreCase(String name, String value)
          Only select executions which have a local string variable with the given value, case insensitive.
 ExecutionQuery variableValueGreaterThan(String name, Object value)
          Only select executions which have a local variable value greater than the passed value.
 ExecutionQuery variableValueGreaterThanOrEqual(String name, Object value)
          Only select executions which have a local variable value greater than or equal to the passed value.
 ExecutionQuery variableValueLessThan(String name, Object value)
          Only select executions which have a local variable value less than the passed value.
 ExecutionQuery variableValueLessThanOrEqual(String name, Object value)
          Only select executions which have a local variable value less than or equal to the passed value.
 ExecutionQuery variableValueLike(String name, String value)
          Only select executions which have a local variable value like the given value.
 ExecutionQuery variableValueNotEquals(String name, Object value)
          Only select executions which have a local variable with the given name, but with a different value than the passed value.
 ExecutionQuery variableValueNotEqualsIgnoreCase(String name, String value)
          Only select executions which have a local string variable which is not the given value, case insensitive.
 
从接口 org.activiti.engine.query.Query 继承的方法
asc, count, desc, list, listPage, singleResult
 

方法详细信息

processDefinitionKey

ExecutionQuery processDefinitionKey(String processDefinitionKey)
Only select executions which have the given process definition key.


processDefinitionId

ExecutionQuery processDefinitionId(String processDefinitionId)
Only select executions which have the given process definition id.


processDefinitionName

ExecutionQuery processDefinitionName(String processDefinitionName)
Only select executions which have the given process definition name.


processInstanceId

ExecutionQuery processInstanceId(String processInstanceId)
Only select executions which have the given process instance id.


processInstanceBusinessKey

ExecutionQuery processInstanceBusinessKey(String processInstanceBusinessKey)
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 processInstanceBusinessKey(String, boolean) method with a boolean value of true instead.


processInstanceBusinessKey

ExecutionQuery processInstanceBusinessKey(String processInstanceBusinessKey,
                                          boolean includeChildExecutions)
Only executions with the given business key. Similar to processInstanceBusinessKey(String), but allows to choose whether child executions are returned or not.


executionId

ExecutionQuery executionId(String executionId)
Only select executions with the given id.


activityId

ExecutionQuery activityId(String activityId)
Only select executions which contain an activity with the given id.


parentId

ExecutionQuery parentId(String parentId)
Only select executions which are a direct child-execution of the execution with the given id.


variableValueEquals

ExecutionQuery variableValueEquals(String name,
                                   Object value)
Only select executions which have a local variable with the given value. The type of variable is determined based on the value, using types configured in ProcessEngineConfiguration#getVariableTypes(). Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

参数:
name - name of the variable, cannot be null.

variableValueEqualsIgnoreCase

ExecutionQuery variableValueEqualsIgnoreCase(String name,
                                             String value)
Only select executions 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).

参数:
name - name of the variable, cannot be null.
value - value of the variable, cannot be null.

variableValueEquals

ExecutionQuery variableValueEquals(Object value)
Only select executions which have at least one local variable with the given value. The type of variable is determined based on the value, using types configured in ProcessEngineConfiguration#getVariableTypes(). Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.


variableValueNotEquals

ExecutionQuery variableValueNotEquals(String name,
                                      Object value)
Only select executions which have a local 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.

参数:
name - name of the variable, cannot be null.

variableValueNotEqualsIgnoreCase

ExecutionQuery variableValueNotEqualsIgnoreCase(String name,
                                                String value)
Only select executions which 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).

参数:
name - name of the variable, cannot be null.
value - value of the variable, cannot be null.

variableValueGreaterThan

ExecutionQuery variableValueGreaterThan(String name,
                                        Object value)
Only select executions which have a local variable value greater than the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

参数:
name - variable name, cannot be null.
value - variable value, cannot be null.

variableValueGreaterThanOrEqual

ExecutionQuery variableValueGreaterThanOrEqual(String name,
                                               Object value)
Only select executions which have a local variable value greater than or equal to the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

参数:
name - variable name, cannot be null.
value - variable value, cannot be null.

variableValueLessThan

ExecutionQuery variableValueLessThan(String name,
                                     Object value)
Only select executions which have a local variable value less than the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

参数:
name - variable name, cannot be null.
value - variable value, cannot be null.

variableValueLessThanOrEqual

ExecutionQuery variableValueLessThanOrEqual(String name,
                                            Object value)
Only select executions which have a local variable value less than or equal to the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

参数:
name - variable name, cannot be null.
value - variable value, cannot be null.

variableValueLike

ExecutionQuery variableValueLike(String name,
                                 String value)
Only select executions which have a local variable value like the given value. This be used on string variables only.

参数:
name - variable name, cannot be null.
value - variable 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

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. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.


processVariableValueEquals

ExecutionQuery processVariableValueEquals(Object variableValue)
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.


processVariableValueNotEquals

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. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.


processVariableValueEqualsIgnoreCase

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.

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).

参数:
name - name of the variable, cannot be null.
value - value of the variable, cannot be null.

processVariableValueNotEqualsIgnoreCase

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.

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).

参数:
name - name of the variable, cannot be null.
value - value of the variable, cannot be null.

signalEventSubscription

@Deprecated
ExecutionQuery signalEventSubscription(String signalName)
已过时。 

另请参见:
signalEventSubscriptionName(String)

signalEventSubscriptionName

ExecutionQuery signalEventSubscriptionName(String signalName)
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.)

参数:
signalName - the name of the signal the execution has subscribed to

messageEventSubscriptionName

ExecutionQuery messageEventSubscriptionName(String messageName)
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.)

参数:
messageName - the name of the message the execution has subscribed to

orderByProcessInstanceId

ExecutionQuery orderByProcessInstanceId()
Order by id (needs to be followed by Query.asc() or Query.desc()).


orderByProcessDefinitionKey

ExecutionQuery orderByProcessDefinitionKey()
Order by process definition key (needs to be followed by Query.asc() or Query.desc()).


orderByProcessDefinitionId

ExecutionQuery orderByProcessDefinitionId()
Order by process definition id (needs to be followed by Query.asc() or Query.desc()).



Copyright © 2013 Alfresco. All rights reserved.