Package org.camunda.bpm.engine.runtime
Interface ExecutionQuery
- All Superinterfaces:
- Query<ExecutionQuery,- Execution> 
- All Known Implementing Classes:
- ExecutionQueryImpl
Allows programmatic querying of 
Executions.- Author:
- Joram Barrez, Frederik Heremans
- 
Method SummaryModifier and TypeMethodDescriptionactive()Only selects executions which are active (i.e.activityId(String activityId) Only select executions which contain an activity with the given id.executionId(String executionId) Only select executions with the given id.incidentId(String incidentId) Only selects executions with the given incident id.incidentMessage(String incidentMessage) Only selects executions with the given incident message.incidentMessageLike(String incidentMessageLike) Only selects executions with an incident message like the given.incidentType(String incidentType) Only selects executions with the given incident type.The query will match the names of variables in a case-insensitive way.The query will match the values of variables in a case-insensitive way.Only select executions that have a message event subscription.messageEventSubscriptionName(String messageName) Only select executions which have a message event subscription for the given messageName.Order by process definition id (needs to be followed byQuery.asc()orQuery.desc()).Order by process definition key (needs to be followed byQuery.asc()orQuery.desc()).Order by id (needs to be followed byQuery.asc()orQuery.desc()).Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).processDefinitionId(String processDefinitionId) Only select executions which have the given process definition id.processDefinitionKey(String processDefinitionKey) Only select executions which have the given process definition key.processInstanceBusinessKey(String processInstanceBusinessKey) Only select executions that belong to a process instance with the given business keyprocessInstanceId(String processInstanceId) Only select executions which have the given process instance id.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.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.signalEventSubscription(String signalName) Deprecated.signalEventSubscriptionName(String signalName) Only select executions which have a signal event subscription for the given signal name.Only selects executions which are suspended, because their process instance is suspended.tenantIdIn(String... tenantIds) Only selects executions with one of the given tenant ids.variableValueEquals(String name, Object value) Only select executions which have a local variable with the given value.variableValueGreaterThan(String name, Object value) Only select executions which have a local variable value greater than the passed value.variableValueGreaterThanOrEqual(String name, Object value) Only select executions which have a local variable value greater than or equal to the passed value.variableValueLessThan(String name, Object value) Only select executions which have a local variable value less than the passed value.variableValueLessThanOrEqual(String name, Object value) Only select executions which have a local variable value less than or equal to the passed value.variableValueLike(String name, String value) Only select executions which have a local variable value like the given value.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.Only selects executions which have no tenant id.Methods inherited from interface org.camunda.bpm.engine.query.Queryasc, count, desc, list, listPage, singleResult, unlimitedList
- 
Method Details- 
processDefinitionKeyOnly select executions which have the given process definition key.
- 
processDefinitionIdOnly select executions which have the given process definition id.
- 
processInstanceIdOnly select executions which have the given process instance id.
- 
processInstanceBusinessKeyOnly select executions that belong to a process instance with the given business key
- 
executionIdOnly select executions with the given id.
- 
activityIdOnly select executions which contain an activity with the given id.
- 
matchVariableNamesIgnoreCaseExecutionQuery matchVariableNamesIgnoreCase()The query will match the names of variables in a case-insensitive way.
- 
matchVariableValuesIgnoreCaseExecutionQuery matchVariableValuesIgnoreCase()The query will match the values of variables in a case-insensitive way.
- 
variableValueEqualsOnly select executions which have a local variable with the given value. The type of variable is determined based on the value, using types configured inProcessEngineConfigurationImpl.getVariableSerializers(). Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Parameters:
- name- name of the variable, cannot be null.
 
- 
variableValueNotEqualsOnly select executions which have a local variable with the given name, but with a different value than the passed value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Parameters:
- name- name of the variable, cannot be null.
 
- 
variableValueGreaterThanOnly select executions which have a local variable value greater than the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Parameters:
- name- variable name, cannot be null.
- value- variable value, cannot be null.
 
- 
variableValueGreaterThanOrEqualOnly select executions which have a local variable value greater than or equal to the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Parameters:
- name- variable name, cannot be null.
- value- variable value, cannot be null.
 
- 
variableValueLessThanOnly select executions which have a local variable value less than the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Parameters:
- name- variable name, cannot be null.
- value- variable value, cannot be null.
 
- 
variableValueLessThanOrEqualOnly select executions which have a local variable value less than or equal to the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Parameters:
- name- variable name, cannot be null.
- value- variable value, cannot be null.
 
- 
variableValueLikeOnly select executions which have a local variable value like the given value. This be used on string variables only.- Parameters:
- 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%).
 
- 
processVariableValueEqualsOnly select executions which are part of a process that have a variable with the given name set to the given value.
- 
processVariableValueNotEqualsOnly 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 andSerializableobjects (which are not primitive type wrappers) are not supported.
- 
signalEventSubscriptionDeprecated.- See Also:
 
- 
signalEventSubscriptionNameOnly 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.) - Parameters:
- signalName- the name of the signal the execution has subscribed to
 
- 
messageEventSubscriptionNameOnly 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.) - Parameters:
- messageName- the name of the message the execution has subscribed to
 
- 
messageEventSubscriptionExecutionQuery messageEventSubscription()Only select executions that have a message event subscription. UsemessageEventSubscriptionName(String)to filter for executions with message event subscriptions with a certain name.
- 
suspendedExecutionQuery suspended()Only selects executions which are suspended, because their process instance is suspended.
- 
activeExecutionQuery active()Only selects executions which are active (i.e. not suspended).
- 
incidentTypeOnly selects executions with the given incident type.
- 
incidentIdOnly selects executions with the given incident id.
- 
incidentMessageOnly selects executions with the given incident message.
- 
incidentMessageLikeOnly selects executions with an incident message like the given.
- 
tenantIdInOnly selects executions with one of the given tenant ids.
- 
withoutTenantIdExecutionQuery withoutTenantId()Only selects executions which have no tenant id.
- 
orderByProcessInstanceIdExecutionQuery orderByProcessInstanceId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByProcessDefinitionKeyExecutionQuery orderByProcessDefinitionKey()Order by process definition key (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByProcessDefinitionIdExecutionQuery orderByProcessDefinitionId()Order by process definition id (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByTenantIdExecutionQuery orderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()). Note that the ordering of executions without tenant id is database-specific.
 
-