Package org.camunda.bpm.engine.runtime
Interface CaseExecutionQuery
-
- All Superinterfaces:
Query<CaseExecutionQuery,CaseExecution>
- All Known Implementing Classes:
CaseExecutionQueryImpl
public interface CaseExecutionQuery extends Query<CaseExecutionQuery,CaseExecution>
- Author:
- Roman Smirnov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CaseExecutionQueryactive()Only select case executions which are active.CaseExecutionQueryactivityId(java.lang.String activityId)Only select case executions which contain an activity with the given id.CaseExecutionQueryavailable()Only select case executions which are available.CaseExecutionQuerycaseDefinitionId(java.lang.String caseDefinitionId)Only select case executions which have the given case definition id.CaseExecutionQuerycaseDefinitionKey(java.lang.String caseDefinitionKey)Only select case executions which have the given case definition key.CaseExecutionQuerycaseExecutionId(java.lang.String executionId)Only select case executions with the given id.CaseExecutionQuerycaseInstanceBusinessKey(java.lang.String caseInstanceBusinessKey)Only select case executions that belong to a case instance with the given business keyCaseExecutionQuerycaseInstanceId(java.lang.String caseInstanceId)Only select case executions which have the given case instance id.CaseExecutionQuerycaseInstanceVariableValueEquals(java.lang.String name, java.lang.Object value)Only select case executions which are part of a case instance that have a variable with the given name set to the given value.CaseExecutionQuerycaseInstanceVariableValueGreaterThan(java.lang.String name, java.lang.Object value)Only select case executions which are part of a case instance that have a variable with the given name and a variable value greater than the passed value.CaseExecutionQuerycaseInstanceVariableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)Only select case executions which are part of a case instance that have a variable value greater than or equal to the passed value.CaseExecutionQuerycaseInstanceVariableValueLessThan(java.lang.String name, java.lang.Object value)Only select case executions which are part of a case instance that have a variable value less than the passed value.CaseExecutionQuerycaseInstanceVariableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)Only select case executions which are part of a case instance that have a variable value less than or equal to the passed value.CaseExecutionQuerycaseInstanceVariableValueLike(java.lang.String name, java.lang.String value)Only select case executions which are part of a case instance that have a variable value like the given value.CaseExecutionQuerycaseInstanceVariableValueNotEquals(java.lang.String name, java.lang.Object value)Only select case executions which are part of a case instance that have a variable with the given name, but with a different value than the passed value.CaseExecutionQuerydisabled()Only select case executions which are disabled.CaseExecutionQueryenabled()Only select case executions which are enabled.CaseExecutionQuerymatchVariableNamesIgnoreCase()The query will match the names of variables in a case-insensitive way.CaseExecutionQuerymatchVariableValuesIgnoreCase()The query will match the values of variables in a case-insensitive way.CaseExecutionQueryorderByCaseDefinitionId()Order by case definition id (needs to be followed byQuery.asc()orQuery.desc()).CaseExecutionQueryorderByCaseDefinitionKey()Order by case definition key (needs to be followed byQuery.asc()orQuery.desc()).CaseExecutionQueryorderByCaseExecutionId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).CaseExecutionQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).CaseExecutionQueryrequired()Only select case executions which are required.CaseExecutionQuerytenantIdIn(java.lang.String... tenantIds)Only select case execution with one of the given tenant ids.CaseExecutionQueryvariableValueEquals(java.lang.String name, java.lang.Object value)Only select case executions which have a local variable with the given value.CaseExecutionQueryvariableValueGreaterThan(java.lang.String name, java.lang.Object value)Only select case executions which have a variable value greater than the passed value.CaseExecutionQueryvariableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)Only select case executions which have a local variable value greater than or equal to the passed value.CaseExecutionQueryvariableValueLessThan(java.lang.String name, java.lang.Object value)Only select case executions which have a local variable value less than the passed value.CaseExecutionQueryvariableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)Only select case executions which have a local variable value less than or equal to the passed value.CaseExecutionQueryvariableValueLike(java.lang.String name, java.lang.String value)Only select case executions which have a local variable value like the given value.CaseExecutionQueryvariableValueNotEquals(java.lang.String name, java.lang.Object value)Only select case executions which have a local variable with the given name, but with a different value than the passed value.CaseExecutionQuerywithoutTenantId()Only select case executions which have no tenant id.-
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
-
-
-
Method Detail
-
caseInstanceId
CaseExecutionQuery caseInstanceId(java.lang.String caseInstanceId)
Only select case executions which have the given case instance id.- Parameters:
caseInstanceId- the id of the case instance- Throws:
NotValidException- when the given case instance id is null
-
caseDefinitionId
CaseExecutionQuery caseDefinitionId(java.lang.String caseDefinitionId)
Only select case executions which have the given case definition id.- Parameters:
caseDefinitionId- the id of the case definition- Throws:
NotValidException- when the given case definition id is null
-
caseDefinitionKey
CaseExecutionQuery caseDefinitionKey(java.lang.String caseDefinitionKey)
Only select case executions which have the given case definition key.- Parameters:
caseDefinitionKey- the key of the case definition- Throws:
NotValidException- when the given case definition key is null
-
caseInstanceBusinessKey
CaseExecutionQuery caseInstanceBusinessKey(java.lang.String caseInstanceBusinessKey)
Only select case executions that belong to a case instance with the given business key- Parameters:
caseInstanceBusinessKey- the business key of the case instance- Throws:
NotValidException- when the given case instance business key is null
-
caseExecutionId
CaseExecutionQuery caseExecutionId(java.lang.String executionId)
Only select case executions with the given id.- Parameters:
executionId- the id of the case execution- Throws:
NotValidException- when the given case execution id is null
-
activityId
CaseExecutionQuery activityId(java.lang.String activityId)
Only select case executions which contain an activity with the given id.- Parameters:
activityId- the id of the activity- Throws:
NotValidException- when the given activity id is null
-
required
CaseExecutionQuery required()
Only select case executions which are required.
-
available
CaseExecutionQuery available()
Only select case executions which are available.
-
enabled
CaseExecutionQuery enabled()
Only select case executions which are enabled.
-
active
CaseExecutionQuery active()
Only select case executions which are active.
-
disabled
CaseExecutionQuery disabled()
Only select case executions which are disabled.
-
matchVariableNamesIgnoreCase
CaseExecutionQuery matchVariableNamesIgnoreCase()
The query will match the names of variables in a case-insensitive way.
-
matchVariableValuesIgnoreCase
CaseExecutionQuery matchVariableValuesIgnoreCase()
The query will match the values of variables in a case-insensitive way.
-
variableValueEquals
CaseExecutionQuery variableValueEquals(java.lang.String name, java.lang.Object value)
Only select case 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- the name of the variable, cannot be nullvalue- the value of the variable- Throws:
NotValidException- when the given name is null
-
variableValueNotEquals
CaseExecutionQuery variableValueNotEquals(java.lang.String name, java.lang.Object value)
Only select case 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- the name of the variable, cannot be nullvalue- the value of the variable- Throws:
NotValidException- when the given name is null
-
variableValueGreaterThan
CaseExecutionQuery variableValueGreaterThan(java.lang.String name, java.lang.Object value)
Only select case executions which have a variable value greater than the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Parameters:
name- the name of the variable, cannot be nullvalue- the value of the variable, cannot be null- Throws:
NotValidException- when the given name is null or a null-value or a boolean-value is used
-
variableValueGreaterThanOrEqual
CaseExecutionQuery variableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)
Only select case 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- the name of the variable, cannot be nullvalue- the value of the variable, cannot be null- Throws:
NotValidException- when the given name is null or a null-value or a boolean-value is used
-
variableValueLessThan
CaseExecutionQuery variableValueLessThan(java.lang.String name, java.lang.Object value)
Only select case 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- the name of the variable, cannot be nullvalue- the value of the variable, cannot be null- Throws:
NotValidException- when the given name is null or a null-value or a boolean-value is used
-
variableValueLessThanOrEqual
CaseExecutionQuery variableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)
Only select case 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- the name of the variable, cannot be nullvalue- the value of the variable, cannot be null- Throws:
NotValidException- when the given name is null or a null-value or a boolean-value is used
-
variableValueLike
CaseExecutionQuery variableValueLike(java.lang.String name, java.lang.String value)
Only select case executions which have a local variable value like the given value. This can be used on string variables only.- Parameters:
name- the name of the variable, cannot be nullvalue- the value of the variable, cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).- Throws:
NotValidException- when the given name is null or a null-value or a boolean-value is used
-
caseInstanceVariableValueEquals
CaseExecutionQuery caseInstanceVariableValueEquals(java.lang.String name, java.lang.Object value)
Only select case executions which are part of a case instance that have a variable with the given name set to the given value. The type of variable is determined based on the value, using types configured inProcessEngineConfiguration#getVariableSerializers(). Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Parameters:
name- the name of the variable, cannot be nullvalue- the value of the variable- Throws:
NotValidException- when the given name is null
-
caseInstanceVariableValueNotEquals
CaseExecutionQuery caseInstanceVariableValueNotEquals(java.lang.String name, java.lang.Object value)
Only select case executions which are part of a case instance 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.- Parameters:
name- the name of the variable, cannot be nullvalue- the value of the variable- Throws:
NotValidException- when the given name is null
-
caseInstanceVariableValueGreaterThan
CaseExecutionQuery caseInstanceVariableValueGreaterThan(java.lang.String name, java.lang.Object value)
Only select case executions which are part of a case instance that have a variable with the given name and a variable value greater than the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Parameters:
name- the name of the variable, cannot be nullvalue- the value of the variable, cannot be null- Throws:
NotValidException- when the given name is null or a null-value or a boolean-value is used
-
caseInstanceVariableValueGreaterThanOrEqual
CaseExecutionQuery caseInstanceVariableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)
Only select case executions which are part of a case instance that have a 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- the name of the variable, cannot be nullvalue- the value of the variable, cannot be null- Throws:
NotValidException- when the given name is null or a null-value or a boolean-value is used
-
caseInstanceVariableValueLessThan
CaseExecutionQuery caseInstanceVariableValueLessThan(java.lang.String name, java.lang.Object value)
Only select case executions which are part of a case instance that have a variable value less than the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Parameters:
name- the name of the variable, cannot be nullvalue- the value of the variable, cannot be null- Throws:
NotValidException- when the given name is null or a null-value or a boolean-value is used
-
caseInstanceVariableValueLessThanOrEqual
CaseExecutionQuery caseInstanceVariableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)
Only select case executions which are part of a case instance that have a 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- the name of the variable, cannot be nullvalue- the value of the variable, cannot be null- Throws:
NotValidException- when the given name is null or a null-value or a boolean-value is used
-
caseInstanceVariableValueLike
CaseExecutionQuery caseInstanceVariableValueLike(java.lang.String name, java.lang.String value)
Only select case executions which are part of a case instance that have a variable value like the given value. This can be used on string variables only.- Parameters:
name- the name of the variable, cannot be nullvalue- the value of the variable, cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).- Throws:
NotValidException- when the given name is null or a null-value or a boolean-value is used
-
tenantIdIn
CaseExecutionQuery tenantIdIn(java.lang.String... tenantIds)
Only select case execution with one of the given tenant ids.
-
withoutTenantId
CaseExecutionQuery withoutTenantId()
Only select case executions which have no tenant id.
-
orderByCaseExecutionId
CaseExecutionQuery orderByCaseExecutionId()
Order by id (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByCaseDefinitionKey
CaseExecutionQuery orderByCaseDefinitionKey()
Order by case definition key (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByCaseDefinitionId
CaseExecutionQuery orderByCaseDefinitionId()
Order by case definition id (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByTenantId
CaseExecutionQuery orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()). Note that the ordering of case executions without tenant id is database-specific.
-
-