Package org.flowable.cmmn.api.runtime
Interface CaseInstanceQuery
- All Superinterfaces:
org.flowable.common.engine.api.query.Query<CaseInstanceQuery,
CaseInstance>
public interface CaseInstanceQuery
extends org.flowable.common.engine.api.query.Query<CaseInstanceQuery,CaseInstance>
- Author:
- Joram Barrez, Tijs Rademakers
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
org.flowable.common.engine.api.query.Query.NullHandlingOnOrder
-
Method Summary
Modifier and TypeMethodDescriptionactivePlanItemDefinitionId
(String planItemDefinitionId) Select the case instances with an active plan item definition id equal to the provided definition id.activePlanItemDefinitionIds
(Set<String> planItemDefinitionIds) Select the case instances with an active plan item definition id equal to one of the provided definition ids.caseDefinitionCategory
(String caseDefinitionCategory) caseDefinitionCategoryLike
(String caseDefinitionCategoryLike) caseDefinitionCategoryLikeIgnoreCase
(String caseDefinitionCategoryLikeIgnoreCase) caseDefinitionId
(String caseDefinitionId) caseDefinitionIds
(Set<String> caseDefinitionIds) caseDefinitionKey
(String caseDefinitionKey) caseDefinitionKeyLike
(String caseDefinitionKeyLike) caseDefinitionKeyLikeIgnoreCase
(String caseDefinitionKeyLikeIgnoreCase) caseDefinitionKeys
(Set<String> caseDefinitionKeys) caseDefinitionName
(String caseDefinitionName) caseDefinitionNameLike
(String caseDefinitionNameLike) caseDefinitionNameLikeIgnoreCase
(String caseDefinitionNameLikeIgnoreCase) caseDefinitionVersion
(Integer caseDefinitionVersion) caseInstanceBusinessKey
(String caseInstanceBusinessKey) caseInstanceBusinessKeyLike
(String caseInstanceBusinessKeyLike) caseInstanceBusinessKeyLikeIgnoreCase
(String caseInstanceBusinessKeyLikeIgnoreCase) caseInstanceBusinessStatus
(String caseInstanceBusinessStatus) caseInstanceBusinessStatusLike
(String caseInstanceBusinessStatusLike) caseInstanceBusinessStatusLikeIgnoreCase
(String caseInstanceBusinessStatusLikeIgnoreCase) caseInstanceCallbackId
(String callbackId) caseInstanceCallbackType
(String callbackType) caseInstanceId
(String caseInstanceId) caseInstanceIds
(Set<String> caseInstanceIds) caseInstanceLastReactivatedAfter
(Date afterTime) caseInstanceLastReactivatedBefore
(Date beforeTime) caseInstanceLastReactivatedBy
(String userId) caseInstanceName
(String caseInstanceName) caseInstanceNameLike
(String caseInstanceNameLike) caseInstanceNameLikeIgnoreCase
(String caseInstanceNameLikeIgnoreCase) caseInstanceParentId
(String parentId) caseInstanceParentScopeId
(String parentScopeId) caseInstanceReferenceId
(String referenceId) caseInstanceReferenceType
(String referenceType) caseInstanceRootScopeId
(String rootScopeId) caseInstanceStartedAfter
(Date afterTime) caseInstanceStartedBefore
(Date beforeTime) caseInstanceStartedBy
(String userId) caseInstanceState
(String state) caseInstanceTenantId
(String tenantId) caseInstanceTenantIdLike
(String tenantIdLike) caseInstanceTenantIdLikeIgnoreCase
(String tenantIdLikeIgnoreCase) endOr()
End an OR statement.Includes case variables into the query result.involvedGroup
(String groupId, String identityLinkType) Select the case instances with which the group with the given id and identity link type are involved.involvedGroups
(Set<String> groupIds) Select the case instances with which the groups with the given ids are involved.involvedUser
(String userId) Select the case instances with which the user with the given id is involved.involvedUser
(String userId, String identityLinkType) Select the case instances with which the user with the given id and identity link type are involved.Localize case name to specified locale.or()
Begin an OR statement.variableExists
(String name) Only select case instances which have a variable with the given name.variableNotExists
(String name) Only select case instances which don't have a variable with the given name.variableValueEquals
(Object value) Only select case instances which have at least one global variable with the given value.variableValueEquals
(String name, Object value) Only select case instances which have a global variable with the given value.variableValueEqualsIgnoreCase
(String name, String value) Only select case instances which have a local string variable with the given value, case insensitive.variableValueGreaterThan
(String name, Object value) Only select case instances which have a variable value greater than the passed value.variableValueGreaterThanOrEqual
(String name, Object value) Only select case instances which have a global variable value greater than or equal to the passed value.variableValueLessThan
(String name, Object value) Only select case instances which have a global variable value less than the passed value.variableValueLessThanOrEqual
(String name, Object value) Only select case instances which have a global variable value less than or equal to the passed value.variableValueLike
(String name, String value) Only select case instances which have a global variable value like the given value.variableValueLikeIgnoreCase
(String name, String value) Only select case instances which have a global variable value like the given value (case insensitive).variableValueNotEquals
(String name, Object value) Only select case instances which have a global variable with the given name, but with a different value than the passed value.variableValueNotEqualsIgnoreCase
(String name, String value) Only select case instances which have a local string variable which is not the given value, case insensitive.Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.Methods inherited from interface org.flowable.common.engine.api.query.Query
asc, count, desc, list, listPage, orderBy, orderBy, singleResult
-
Method Details
-
caseDefinitionKey
-
caseDefinitionKeyLike
-
caseDefinitionKeyLikeIgnoreCase
-
caseDefinitionKeys
-
caseDefinitionId
-
caseDefinitionIds
-
caseDefinitionCategory
-
caseDefinitionCategoryLike
-
caseDefinitionCategoryLikeIgnoreCase
-
caseDefinitionName
-
caseDefinitionNameLike
-
caseDefinitionNameLikeIgnoreCase
-
caseDefinitionVersion
-
caseInstanceId
-
caseInstanceIds
-
caseInstanceName
-
caseInstanceNameLike
-
caseInstanceNameLikeIgnoreCase
-
caseInstanceRootScopeId
-
caseInstanceParentScopeId
-
caseInstanceBusinessKey
-
caseInstanceBusinessKeyLike
-
caseInstanceBusinessKeyLikeIgnoreCase
CaseInstanceQuery caseInstanceBusinessKeyLikeIgnoreCase(String caseInstanceBusinessKeyLikeIgnoreCase) -
caseInstanceBusinessStatus
-
caseInstanceBusinessStatusLike
-
caseInstanceBusinessStatusLikeIgnoreCase
CaseInstanceQuery caseInstanceBusinessStatusLikeIgnoreCase(String caseInstanceBusinessStatusLikeIgnoreCase) -
caseInstanceParentId
-
caseInstanceStartedBefore
-
caseInstanceStartedAfter
-
caseInstanceStartedBy
-
caseInstanceState
-
caseInstanceLastReactivatedBefore
-
caseInstanceLastReactivatedAfter
-
caseInstanceLastReactivatedBy
-
caseInstanceCallbackId
-
caseInstanceCallbackType
-
caseInstanceReferenceId
-
caseInstanceReferenceType
-
caseInstanceIsCompleteable
CaseInstanceQuery caseInstanceIsCompleteable() -
caseInstanceTenantId
-
caseInstanceTenantIdLike
-
caseInstanceTenantIdLikeIgnoreCase
-
caseInstanceWithoutTenantId
CaseInstanceQuery caseInstanceWithoutTenantId() -
activePlanItemDefinitionId
Select the case instances with an active plan item definition id equal to the provided definition id. -
activePlanItemDefinitionIds
Select the case instances with an active plan item definition id equal to one of the provided definition ids. -
involvedUser
Select the case instances with which the user with the given id is involved. -
involvedUser
Select the case instances with which the user with the given id and identity link type are involved. -
involvedGroup
Select the case instances with which the group with the given id and identity link type are involved. -
involvedGroups
Select the case instances with which the groups with the given ids are involved. -
variableValueEquals
Only select case instances which have a global variable with the given value. The type of variable is determined based on the value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- name of the variable, cannot be null.
-
variableValueEquals
Only select case instances which have at least one global variable with the given value. The type of variable is determined based on the value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported. -
variableValueEqualsIgnoreCase
Only select case instances 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.
-
variableValueNotEquals
Only select case instances which have a global variable with the given name, but with a different value than the passed value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- name of the variable, cannot be null.
-
variableValueNotEqualsIgnoreCase
Only select case instances 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
Only select case instances which have a variable value greater than the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null.
-
variableValueGreaterThanOrEqual
Only select case instances which have a global variable value greater than or equal to the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null.
-
variableValueLessThan
Only select case instances which have a global variable value less than the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null.
-
variableValueLessThanOrEqual
Only select case instances which have a global variable value less than or equal to the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null.
-
variableValueLike
Only select case instances which have a global 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
Only select case instances which have a global 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%).
-
variableExists
Only select case instances which have a variable with the given name.- Parameters:
name
- cannot be null.
-
variableNotExists
Only select case instances which don't have a variable with the given name.- Parameters:
name
- cannot be null.
-
includeCaseVariables
CaseInstanceQuery includeCaseVariables()Includes case variables into the query result.- Returns:
- caseInstanceQuery with the flag to retrieve case variables into the response.
-
or
CaseInstanceQuery or()Begin an OR statement. Make sure you invoke the endOr method at the end of your OR statement. -
endOr
CaseInstanceQuery endOr()End an OR statement. -
locale
Localize case name to specified locale. -
withLocalizationFallback
CaseInstanceQuery withLocalizationFallback()Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found. -
orderByCaseInstanceId
CaseInstanceQuery orderByCaseInstanceId() -
orderByCaseDefinitionKey
CaseInstanceQuery orderByCaseDefinitionKey() -
orderByCaseDefinitionId
CaseInstanceQuery orderByCaseDefinitionId() -
orderByStartTime
CaseInstanceQuery orderByStartTime() -
orderByTenantId
CaseInstanceQuery orderByTenantId()
-