public interface CaseInstanceQuery extends Query<CaseInstanceQuery,CaseInstance>
Modifier and Type | Method and Description |
---|---|
CaseInstanceQuery |
active()
Only select case instances which are active.
|
CaseInstanceQuery |
caseDefinitionId(String caseDefinitionId)
Selects the case instances which are defined by a case definition
with the given id.
|
CaseInstanceQuery |
caseDefinitionKey(String caseDefinitionKey)
Select the case instances which are defined by a case definition with
the given key.
|
CaseInstanceQuery |
caseInstanceBusinessKey(String caseInstanceBusinessKey)
Select case instances with the given business key
|
CaseInstanceQuery |
caseInstanceId(String caseInstanceId)
Select the case instance with the given id
|
CaseInstanceQuery |
completed()
Only select case instances which are completed.
|
CaseInstanceQuery |
deploymentId(String deploymentId)
Selects the case instances which belong to the given deployment id.
|
CaseInstanceQuery |
orderByCaseDefinitionId()
Order by case definition id (needs to be followed by
Query.asc() or Query.desc() ). |
CaseInstanceQuery |
orderByCaseDefinitionKey()
Order by case definition key (needs to be followed by
Query.asc() or Query.desc() ). |
CaseInstanceQuery |
orderByCaseInstanceId()
Order by id (needs to be followed by
Query.asc() or Query.desc() ). |
CaseInstanceQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc() ). |
CaseInstanceQuery |
subCaseInstanceId(String subCaseInstanceId)
Select the case instance that has as sub case instance the given
case instance.
|
CaseInstanceQuery |
subProcessInstanceId(String subProcessInstanceId)
Select the case instance that has as sub process instance the given
process instance.
|
CaseInstanceQuery |
superCaseInstanceId(String superCaseInstanceId)
Select the case instances which are a sub case instance of the given
super case instance.
|
CaseInstanceQuery |
superProcessInstanceId(String superProcessInstanceId)
Select the case instances which are a sub case instance of the given
super process instance.
|
CaseInstanceQuery |
tenantIdIn(String... tenantIds)
Only select case instances with one of the given tenant ids.
|
CaseInstanceQuery |
terminated()
Only select case instances which are terminated.
|
CaseInstanceQuery |
variableValueEquals(String name,
Object value)
Only select cases instances which have a global variable with the given value.
|
CaseInstanceQuery |
variableValueGreaterThan(String name,
Object value)
Only select cases instances which have a global variable value greater than the passed value.
|
CaseInstanceQuery |
variableValueGreaterThanOrEqual(String name,
Object value)
Only select cases instances which have a global variable value greater than or equal to
the passed value.
|
CaseInstanceQuery |
variableValueLessThan(String name,
Object value)
Only select cases instances which have a global variable value less than the passed value.
|
CaseInstanceQuery |
variableValueLessThanOrEqual(String name,
Object value)
Only select cases instances which have a global variable value less than or equal to the passed value.
|
CaseInstanceQuery |
variableValueLike(String name,
String value)
Only select cases instances which have a global variable value like the given value.
|
CaseInstanceQuery |
variableValueNotEquals(String name,
Object value)
Only select cases instances which have a global variable with the given name, but
with a different value than the passed value.
|
CaseInstanceQuery |
withoutTenantId()
Only select case instances which have no tenant id.
|
CaseInstanceQuery caseInstanceId(String caseInstanceId)
caseInstanceId
- the id of the case instanceNotValidException
- when the given case instance id is nullCaseInstanceQuery caseInstanceBusinessKey(String caseInstanceBusinessKey)
caseInstanceBusinessKey
- the business key of the case instanceNotValidException
- when the given case instance business key is nullCaseInstanceQuery caseDefinitionKey(String caseDefinitionKey)
caseDefinitionKey
- the key of the case definitionNotValidException
- when the given case definition key is nullCaseInstanceQuery caseDefinitionId(String caseDefinitionId)
caseDefinitionId
- the id of the case definitionNotValidException
- when the given case definition id is nullCaseInstanceQuery deploymentId(String deploymentId)
CaseInstanceQuery superProcessInstanceId(String superProcessInstanceId)
CaseInstanceQuery subProcessInstanceId(String subProcessInstanceId)
CaseInstanceQuery superCaseInstanceId(String superCaseInstanceId)
CaseInstanceQuery subCaseInstanceId(String subCaseInstanceId)
CaseInstanceQuery active()
CaseInstanceQuery completed()
CaseInstanceQuery terminated()
CaseInstanceQuery variableValueEquals(String name, Object value)
ProcessEngineConfigurationImpl.getVariableSerializers()
.
Byte-arrays and Serializable
objects (which are not primitive type wrappers)
are not supported.name
- the name of the variable, cannot be nullvalue
- the value of the variableNotValidException
- when the given name is nullCaseInstanceQuery variableValueNotEquals(String name, Object value)
Serializable
objects (which are not primitive type wrappers)
are not supported.name
- name of the variable, cannot be nullvalue
- the value of the variableNotValidException
- when the given name is nullCaseInstanceQuery variableValueGreaterThan(String name, Object value)
Serializable
objects (which are not primitive type wrappers)
are not supported.name
- variable name, cannot be nullvalue
- variable value, cannot be nullNotValidException
- when the given name is null or a null-value or a boolean-value is usedCaseInstanceQuery variableValueGreaterThanOrEqual(String name, Object value)
Serializable
objects (which
are not primitive type wrappers) are not supported.name
- variable name, cannot be nullvalue
- variable value, cannot be nullNotValidException
- when the given name is null or a null-value or a boolean-value is usedCaseInstanceQuery variableValueLessThan(String name, Object value)
Serializable
objects (which are not primitive type wrappers)
are not supported.name
- variable name, cannot be nullvalue
- variable value, cannot be nullNotValidException
- when the given name is null or a null-value or a boolean-value is usedCaseInstanceQuery variableValueLessThanOrEqual(String name, Object value)
Serializable
objects (which are not primitive type wrappers)
are not supported.name
- variable name, cannot be nullvalue
- variable value, cannot be nullNotValidException
- when the given name is null or a null-value or a boolean-value is usedCaseInstanceQuery variableValueLike(String name, String value)
name
- variable name, cannot be nullvalue
- 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%).NotValidException
- when the given name is null or a null-value or a boolean-value is usedCaseInstanceQuery tenantIdIn(String... tenantIds)
CaseInstanceQuery withoutTenantId()
CaseInstanceQuery orderByCaseInstanceId()
Query.asc()
or Query.desc()
).CaseInstanceQuery orderByCaseDefinitionKey()
Query.asc()
or Query.desc()
).CaseInstanceQuery orderByCaseDefinitionId()
Query.asc()
or Query.desc()
).CaseInstanceQuery orderByTenantId()
Query.asc()
or Query.desc()
).
Note that the ordering of case instances without tenant id is database-specific.Copyright © 2018. All rights reserved.