Interface ExecutionQuery
-
- All Superinterfaces:
Query<ExecutionQuery,Execution>
- All Known Implementing Classes:
ExecutionQueryImpl
@Internal public interface ExecutionQuery extends Query<ExecutionQuery,Execution>
Allows programmatic querying ofExecutions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecutionQueryactivityId(java.lang.String activityId)Only select executions which contain an activity with the given id.ExecutionQueryexecutionId(java.lang.String executionId)Only select executions with the given id.ExecutionQueryexecutionTenantId(java.lang.String tenantId)Only select process instances that have the given tenant id.ExecutionQueryexecutionTenantIdLike(java.lang.String tenantIdLike)Only select process instances with a tenant id like the given one.ExecutionQueryexecutionWithoutTenantId()Only select process instances that do not have a tenant id.ExecutionQuerylocale(java.lang.String locale)Localize execution name and description to specified locale.ExecutionQuerymessageEventSubscriptionName(java.lang.String messageName)Only select executions which have a message event subscription for the given messageName.ExecutionQueryonlyChildExecutions()Only selects executions that have a parent id set, ie non-processinstance executions.ExecutionQueryonlyProcessInstanceExecutions()Only selects executions that have no parent id set, ie process instance executionsExecutionQueryonlySubProcessExecutions()Only selects executions that are a subprocess.ExecutionQueryorderByProcessDefinitionId()Order by process definition id (needs to be followed byQuery.asc()orQuery.desc()).ExecutionQueryorderByProcessDefinitionKey()Order by process definition key (needs to be followed byQuery.asc()orQuery.desc()).ExecutionQueryorderByProcessInstanceId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).ExecutionQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).ExecutionQueryparentId(java.lang.String parentId)Only select executions which are a direct child-execution of the execution with the given id.ExecutionQueryprocessDefinitionCategory(java.lang.String processDefinitionCategory)Only select executions which have the given process definition category.ExecutionQueryprocessDefinitionId(java.lang.String processDefinitionId)Only select executions which have the given process definition id.ExecutionQueryprocessDefinitionKey(java.lang.String processDefinitionKey)Only select executions which have the given process definition key.ExecutionQueryprocessDefinitionKeys(java.util.Set<java.lang.String> processDefinitionKeys)Only select executions which have process definitions with the given keys.ExecutionQueryprocessDefinitionName(java.lang.String processDefinitionName)Only select executions which have the given process definition name.ExecutionQueryprocessDefinitionVersion(java.lang.Integer processDefinitionVersion)Only select executions which have the given process definition version.ExecutionQueryprocessInstanceBusinessKey(java.lang.String processInstanceBusinessKey)Only executions with the given business key.ExecutionQueryprocessInstanceBusinessKey(java.lang.String processInstanceBusinessKey, boolean includeChildExecutions)Only executions with the given business key.ExecutionQueryprocessInstanceId(java.lang.String processInstanceId)Only select executions which have the given process instance id.ExecutionQueryprocessVariableValueEquals(java.lang.Object variableValue)Only select executions which are part of a process that have at least one variable with the given value.ExecutionQueryprocessVariableValueEquals(java.lang.String variableName, java.lang.Object variableValue)Only select executions which are part of a process that have a variable with the given name set to the given value.ExecutionQueryprocessVariableValueEqualsIgnoreCase(java.lang.String name, java.lang.String value)Only select executions which are part of a process that have a local string variable with the given value, case insensitive.ExecutionQueryprocessVariableValueLike(java.lang.String name, java.lang.String value)Only select executions which are part of a process that have at least one variable like the given value.ExecutionQueryprocessVariableValueLikeIgnoreCase(java.lang.String name, java.lang.String value)Only select executions which are part of a process that have at least one variable like the given value (case insensitive).ExecutionQueryprocessVariableValueNotEquals(java.lang.String variableName, java.lang.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.ExecutionQueryprocessVariableValueNotEqualsIgnoreCase(java.lang.String name, java.lang.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.ExecutionQueryrootProcessInstanceId(java.lang.String rootProcessInstanceId)Only select executions which have the given root process instance id.ExecutionQuerysignalEventSubscriptionName(java.lang.String signalName)Only select executions which have a signal event subscription for the given signal name.ExecutionQuerystartedAfter(java.util.Date afterTime)Only select executions that were started after the given start time.ExecutionQuerystartedBefore(java.util.Date beforeTime)Only select executions that were started before the given start time.ExecutionQuerystartedBy(java.lang.String userId)Only select executions that were started after by the given user id.ExecutionQueryvariableValueEquals(java.lang.Object value)Only select executions which have at least one local variable with the given value.ExecutionQueryvariableValueEquals(java.lang.String name, java.lang.Object value)Only select executions which have a local variable with the given value.ExecutionQueryvariableValueEqualsIgnoreCase(java.lang.String name, java.lang.String value)Only select executions which have a local string variable with the given value, case insensitive.ExecutionQueryvariableValueGreaterThan(java.lang.String name, java.lang.Object value)Only select executions which have a local variable value greater than the passed value.ExecutionQueryvariableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)Only select executions which have a local variable value greater than or equal to the passed value.ExecutionQueryvariableValueLessThan(java.lang.String name, java.lang.Object value)Only select executions which have a local variable value less than the passed value.ExecutionQueryvariableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)Only select executions which have a local variable value less than or equal to the passed value.ExecutionQueryvariableValueLike(java.lang.String name, java.lang.String value)Only select executions which have a local variable value like the given value.ExecutionQueryvariableValueLikeIgnoreCase(java.lang.String name, java.lang.String value)Only select executions which have a local variable value like the given value (case insensitive).ExecutionQueryvariableValueNotEquals(java.lang.String name, java.lang.Object value)Only select executions which have a local variable with the given name, but with a different value than the passed value.ExecutionQueryvariableValueNotEqualsIgnoreCase(java.lang.String name, java.lang.String value)Only select executions which have a local string variable which is not the given value, case insensitive.ExecutionQuerywithLocalizationFallback()Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.
-
-
-
Method Detail
-
processDefinitionKey
ExecutionQuery processDefinitionKey(java.lang.String processDefinitionKey)
Only select executions which have the given process definition key.
-
processDefinitionKeys
ExecutionQuery processDefinitionKeys(java.util.Set<java.lang.String> processDefinitionKeys)
Only select executions which have process definitions with the given keys.
-
processDefinitionId
ExecutionQuery processDefinitionId(java.lang.String processDefinitionId)
Only select executions which have the given process definition id.
-
processDefinitionCategory
ExecutionQuery processDefinitionCategory(java.lang.String processDefinitionCategory)
Only select executions which have the given process definition category.
-
processDefinitionName
ExecutionQuery processDefinitionName(java.lang.String processDefinitionName)
Only select executions which have the given process definition name.
-
processDefinitionVersion
ExecutionQuery processDefinitionVersion(java.lang.Integer processDefinitionVersion)
Only select executions which have the given process definition version. Particulary useful when used in combination withprocessDefinitionKey(String)
-
processInstanceId
ExecutionQuery processInstanceId(java.lang.String processInstanceId)
Only select executions which have the given process instance id.
-
rootProcessInstanceId
ExecutionQuery rootProcessInstanceId(java.lang.String rootProcessInstanceId)
Only select executions which have the given root process instance id.
-
processInstanceBusinessKey
ExecutionQuery processInstanceBusinessKey(java.lang.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 theprocessInstanceBusinessKey(String, boolean)method with a boolean value of true instead.
-
processInstanceBusinessKey
ExecutionQuery processInstanceBusinessKey(java.lang.String processInstanceBusinessKey, boolean includeChildExecutions)
Only executions with the given business key. Similar toprocessInstanceBusinessKey(String), but allows to choose whether child executions are returned or not.
-
executionId
ExecutionQuery executionId(java.lang.String executionId)
Only select executions with the given id.
-
activityId
ExecutionQuery activityId(java.lang.String activityId)
Only select executions which contain an activity with the given id.
-
parentId
ExecutionQuery parentId(java.lang.String parentId)
Only select executions which are a direct child-execution of the execution with the given id.
-
onlyChildExecutions
ExecutionQuery onlyChildExecutions()
Only selects executions that have a parent id set, ie non-processinstance executions.
-
onlySubProcessExecutions
ExecutionQuery onlySubProcessExecutions()
Only selects executions that are a subprocess.
-
onlyProcessInstanceExecutions
ExecutionQuery onlyProcessInstanceExecutions()
Only selects executions that have no parent id set, ie process instance executions
-
executionTenantId
ExecutionQuery executionTenantId(java.lang.String tenantId)
Only select process instances that have the given tenant id.
-
executionTenantIdLike
ExecutionQuery executionTenantIdLike(java.lang.String tenantIdLike)
Only select process instances with a tenant id like the given one.
-
executionWithoutTenantId
ExecutionQuery executionWithoutTenantId()
Only select process instances that do not have a tenant id.
-
variableValueEquals
ExecutionQuery variableValueEquals(java.lang.String name, java.lang.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 inProcessEngineConfiguration#getVariableTypes(). Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Parameters:
name- name of the variable, cannot be null.
-
variableValueEqualsIgnoreCase
ExecutionQuery variableValueEqualsIgnoreCase(java.lang.String name, java.lang.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).
- Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
variableValueEquals
ExecutionQuery variableValueEquals(java.lang.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 inProcessEngineConfiguration#getVariableTypes(). Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.
-
variableValueNotEquals
ExecutionQuery variableValueNotEquals(java.lang.String name, java.lang.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 andSerializableobjects (which are not primitive type wrappers) are not supported.- Parameters:
name- name of the variable, cannot be null.
-
variableValueNotEqualsIgnoreCase
ExecutionQuery variableValueNotEqualsIgnoreCase(java.lang.String name, java.lang.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).
- Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
variableValueGreaterThan
ExecutionQuery variableValueGreaterThan(java.lang.String name, java.lang.Object value)
Only 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.
-
variableValueGreaterThanOrEqual
ExecutionQuery variableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)
Only 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.
-
variableValueLessThan
ExecutionQuery variableValueLessThan(java.lang.String name, java.lang.Object value)
Only 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.
-
variableValueLessThanOrEqual
ExecutionQuery variableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)
Only 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.
-
variableValueLike
ExecutionQuery variableValueLike(java.lang.String name, java.lang.String value)
Only 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%).
-
variableValueLikeIgnoreCase
ExecutionQuery variableValueLikeIgnoreCase(java.lang.String name, java.lang.String value)
Only select executions which have a local variable value like the given value (case insensitive). 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%).
-
processVariableValueEquals
ExecutionQuery processVariableValueEquals(java.lang.String variableName, java.lang.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 andSerializableobjects (which are not primitive type wrappers) are not supported.
-
processVariableValueEquals
ExecutionQuery processVariableValueEquals(java.lang.Object variableValue)
Only select executions which are part of a process that have at least one variable with the given value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.
-
processVariableValueNotEquals
ExecutionQuery processVariableValueNotEquals(java.lang.String variableName, java.lang.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 andSerializableobjects (which are not primitive type wrappers) are not supported.
-
processVariableValueEqualsIgnoreCase
ExecutionQuery processVariableValueEqualsIgnoreCase(java.lang.String name, java.lang.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).
- Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
processVariableValueNotEqualsIgnoreCase
ExecutionQuery processVariableValueNotEqualsIgnoreCase(java.lang.String name, java.lang.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).
- Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
processVariableValueLike
ExecutionQuery processVariableValueLike(java.lang.String name, java.lang.String value)
Only select executions which are part of a process that have at least one variable like the given value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.
-
processVariableValueLikeIgnoreCase
ExecutionQuery processVariableValueLikeIgnoreCase(java.lang.String name, java.lang.String value)
Only select executions which are part of a process that have at least one variable like the given value (case insensitive). Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.
-
signalEventSubscriptionName
ExecutionQuery signalEventSubscriptionName(java.lang.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.)- Parameters:
signalName- the name of the signal the execution has subscribed to
-
messageEventSubscriptionName
ExecutionQuery messageEventSubscriptionName(java.lang.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.)- Parameters:
messageName- the name of the message the execution has subscribed to
-
locale
ExecutionQuery locale(java.lang.String locale)
Localize execution name and description to specified locale.
-
withLocalizationFallback
ExecutionQuery withLocalizationFallback()
Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.
-
startedBefore
ExecutionQuery startedBefore(java.util.Date beforeTime)
Only select executions that were started before the given start time.- Parameters:
beforeTime- executions started before this time will be returned (cannot be null)
-
startedAfter
ExecutionQuery startedAfter(java.util.Date afterTime)
Only select executions that were started after the given start time.- Parameters:
afterTime- executions started after this time will be returned (cannot be null)
-
startedBy
ExecutionQuery startedBy(java.lang.String userId)
Only select executions that were started after by the given user id.- Parameters:
userId- the user id of the authenticated user that started the execution (cannot be null)
-
orderByProcessInstanceId
ExecutionQuery orderByProcessInstanceId()
Order by id (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByProcessDefinitionKey
ExecutionQuery orderByProcessDefinitionKey()
Order by process definition key (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByProcessDefinitionId
ExecutionQuery orderByProcessDefinitionId()
Order by process definition id (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByTenantId
ExecutionQuery orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).
-
-