Package org.camunda.bpm.engine.runtime
Interface CaseExecutionQuery
- All Superinterfaces:
- Query<CaseExecutionQuery,- CaseExecution> 
- All Known Implementing Classes:
- CaseExecutionQueryImpl
- Author:
- Roman Smirnov
- 
Method SummaryModifier and TypeMethodDescriptionactive()Only select case executions which are active.activityId(String activityId) Only select case executions which contain an activity with the given id.Only select case executions which are available.caseDefinitionId(String caseDefinitionId) Only select case executions which have the given case definition id.caseDefinitionKey(String caseDefinitionKey) Only select case executions which have the given case definition key.caseExecutionId(String executionId) Only select case executions with the given id.caseInstanceBusinessKey(String caseInstanceBusinessKey) Only select case executions that belong to a case instance with the given business keycaseInstanceId(String caseInstanceId) Only select case executions which have the given case instance id.caseInstanceVariableValueEquals(String name, 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.caseInstanceVariableValueGreaterThan(String name, 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.caseInstanceVariableValueGreaterThanOrEqual(String name, 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.caseInstanceVariableValueLessThan(String name, Object value) Only select case executions which are part of a case instance that have a variable value less than the passed value.caseInstanceVariableValueLessThanOrEqual(String name, 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.caseInstanceVariableValueLike(String name, String value) Only select case executions which are part of a case instance that have a variable value like the given value.caseInstanceVariableValueNotEquals(String name, 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.disabled()Only select case executions which are disabled.enabled()Only select case executions which are enabled.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.Order by case definition id (needs to be followed byQuery.asc()orQuery.desc()).Order by case 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()).required()Only select case executions which are required.tenantIdIn(String... tenantIds) Only select case execution with one of the given tenant ids.variableValueEquals(String name, Object value) Only select case executions which have a local variable with the given value.variableValueGreaterThan(String name, Object value) Only select case executions which have a variable value greater than the passed value.variableValueGreaterThanOrEqual(String name, Object value) Only select case executions which have a local variable value greater than or equal to the passed value.variableValueLessThan(String name, Object value) Only select case executions which have a local variable value less than the passed value.variableValueLessThanOrEqual(String name, Object value) Only select case executions which have a local variable value less than or equal to the passed value.variableValueLike(String name, String value) Only select case executions which have a local variable value like the given value.variableValueNotEquals(String name, Object value) Only select case executions which have a local variable with the given name, but with a different value than the passed value.Only select case executions which have no tenant id.Methods inherited from interface org.camunda.bpm.engine.query.Queryasc, count, desc, list, listPage, singleResult, unlimitedList
- 
Method Details- 
caseInstanceIdOnly 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
 
- 
caseDefinitionIdOnly 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
 
- 
caseDefinitionKeyOnly 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
 
- 
caseInstanceBusinessKeyOnly 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
 
- 
caseExecutionIdOnly 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
 
- 
activityIdOnly 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
 
- 
requiredCaseExecutionQuery required()Only select case executions which are required.
- 
availableCaseExecutionQuery available()Only select case executions which are available.
- 
enabledCaseExecutionQuery enabled()Only select case executions which are enabled.
- 
activeCaseExecutionQuery active()Only select case executions which are active.
- 
disabledCaseExecutionQuery disabled()Only select case executions which are disabled.
- 
matchVariableNamesIgnoreCaseCaseExecutionQuery matchVariableNamesIgnoreCase()The query will match the names of variables in a case-insensitive way.
- 
matchVariableValuesIgnoreCaseCaseExecutionQuery matchVariableValuesIgnoreCase()The query will match the values of variables in a case-insensitive way.
- 
variableValueEqualsOnly 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 null
- value- the value of the variable
- Throws:
- NotValidException- when the given name is null
 
- 
variableValueNotEqualsOnly 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 null
- value- the value of the variable
- Throws:
- NotValidException- when the given name is null
 
- 
variableValueGreaterThanOnly 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 null
- value- 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
 
- 
variableValueGreaterThanOrEqualOnly 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 null
- value- 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
 
- 
variableValueLessThanOnly 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 null
- value- 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
 
- 
variableValueLessThanOrEqualOnly 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 null
- value- 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
 
- 
variableValueLikeOnly 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 null
- value- 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
 
- 
caseInstanceVariableValueEqualsOnly 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 null
- value- the value of the variable
- Throws:
- NotValidException- when the given name is null
 
- 
caseInstanceVariableValueNotEqualsOnly 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 null
- value- the value of the variable
- Throws:
- NotValidException- when the given name is null
 
- 
caseInstanceVariableValueGreaterThanOnly 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 null
- value- 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
 
- 
caseInstanceVariableValueGreaterThanOrEqualOnly 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 null
- value- 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
 
- 
caseInstanceVariableValueLessThanOnly 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 null
- value- 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
 
- 
caseInstanceVariableValueLessThanOrEqualOnly 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 null
- value- 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
 
- 
caseInstanceVariableValueLikeOnly 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 null
- value- 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
 
- 
tenantIdInOnly select case execution with one of the given tenant ids.
- 
withoutTenantIdCaseExecutionQuery withoutTenantId()Only select case executions which have no tenant id.
- 
orderByCaseExecutionIdCaseExecutionQuery orderByCaseExecutionId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByCaseDefinitionKeyCaseExecutionQuery orderByCaseDefinitionKey()Order by case definition key (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByCaseDefinitionIdCaseExecutionQuery orderByCaseDefinitionId()Order by case definition id (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByTenantIdCaseExecutionQuery 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.
 
-