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
  • Method Details

    • caseDefinitionKey

      CaseInstanceQuery caseDefinitionKey(String caseDefinitionKey)
    • caseDefinitionKeyLike

      CaseInstanceQuery caseDefinitionKeyLike(String caseDefinitionKeyLike)
    • caseDefinitionKeyLikeIgnoreCase

      CaseInstanceQuery caseDefinitionKeyLikeIgnoreCase(String caseDefinitionKeyLikeIgnoreCase)
    • caseDefinitionKeys

      CaseInstanceQuery caseDefinitionKeys(Set<String> caseDefinitionKeys)
    • caseDefinitionId

      CaseInstanceQuery caseDefinitionId(String caseDefinitionId)
    • caseDefinitionIds

      CaseInstanceQuery caseDefinitionIds(Set<String> caseDefinitionIds)
    • caseDefinitionCategory

      CaseInstanceQuery caseDefinitionCategory(String caseDefinitionCategory)
    • caseDefinitionCategoryLike

      CaseInstanceQuery caseDefinitionCategoryLike(String caseDefinitionCategoryLike)
    • caseDefinitionCategoryLikeIgnoreCase

      CaseInstanceQuery caseDefinitionCategoryLikeIgnoreCase(String caseDefinitionCategoryLikeIgnoreCase)
    • caseDefinitionName

      CaseInstanceQuery caseDefinitionName(String caseDefinitionName)
    • caseDefinitionNameLike

      CaseInstanceQuery caseDefinitionNameLike(String caseDefinitionNameLike)
    • caseDefinitionNameLikeIgnoreCase

      CaseInstanceQuery caseDefinitionNameLikeIgnoreCase(String caseDefinitionNameLikeIgnoreCase)
    • caseDefinitionVersion

      CaseInstanceQuery caseDefinitionVersion(Integer caseDefinitionVersion)
    • caseInstanceId

      CaseInstanceQuery caseInstanceId(String caseInstanceId)
    • caseInstanceIds

      CaseInstanceQuery caseInstanceIds(Set<String> caseInstanceIds)
    • caseInstanceName

      CaseInstanceQuery caseInstanceName(String caseInstanceName)
    • caseInstanceNameLike

      CaseInstanceQuery caseInstanceNameLike(String caseInstanceNameLike)
    • caseInstanceNameLikeIgnoreCase

      CaseInstanceQuery caseInstanceNameLikeIgnoreCase(String caseInstanceNameLikeIgnoreCase)
    • caseInstanceRootScopeId

      CaseInstanceQuery caseInstanceRootScopeId(String rootScopeId)
    • caseInstanceParentScopeId

      CaseInstanceQuery caseInstanceParentScopeId(String parentScopeId)
    • caseInstanceBusinessKey

      CaseInstanceQuery caseInstanceBusinessKey(String caseInstanceBusinessKey)
    • caseInstanceBusinessKeyLike

      CaseInstanceQuery caseInstanceBusinessKeyLike(String caseInstanceBusinessKeyLike)
    • caseInstanceBusinessKeyLikeIgnoreCase

      CaseInstanceQuery caseInstanceBusinessKeyLikeIgnoreCase(String caseInstanceBusinessKeyLikeIgnoreCase)
    • caseInstanceBusinessStatus

      CaseInstanceQuery caseInstanceBusinessStatus(String caseInstanceBusinessStatus)
    • caseInstanceBusinessStatusLike

      CaseInstanceQuery caseInstanceBusinessStatusLike(String caseInstanceBusinessStatusLike)
    • caseInstanceBusinessStatusLikeIgnoreCase

      CaseInstanceQuery caseInstanceBusinessStatusLikeIgnoreCase(String caseInstanceBusinessStatusLikeIgnoreCase)
    • caseInstanceParentId

      CaseInstanceQuery caseInstanceParentId(String parentId)
    • caseInstanceStartedBefore

      CaseInstanceQuery caseInstanceStartedBefore(Date beforeTime)
    • caseInstanceStartedAfter

      CaseInstanceQuery caseInstanceStartedAfter(Date afterTime)
    • caseInstanceStartedBy

      CaseInstanceQuery caseInstanceStartedBy(String userId)
    • caseInstanceState

      CaseInstanceQuery caseInstanceState(String state)
    • caseInstanceLastReactivatedBefore

      CaseInstanceQuery caseInstanceLastReactivatedBefore(Date beforeTime)
    • caseInstanceLastReactivatedAfter

      CaseInstanceQuery caseInstanceLastReactivatedAfter(Date afterTime)
    • caseInstanceLastReactivatedBy

      CaseInstanceQuery caseInstanceLastReactivatedBy(String userId)
    • caseInstanceCallbackId

      CaseInstanceQuery caseInstanceCallbackId(String callbackId)
    • caseInstanceCallbackType

      CaseInstanceQuery caseInstanceCallbackType(String callbackType)
    • caseInstanceReferenceId

      CaseInstanceQuery caseInstanceReferenceId(String referenceId)
    • caseInstanceReferenceType

      CaseInstanceQuery caseInstanceReferenceType(String referenceType)
    • caseInstanceIsCompleteable

      CaseInstanceQuery caseInstanceIsCompleteable()
    • caseInstanceTenantId

      CaseInstanceQuery caseInstanceTenantId(String tenantId)
    • caseInstanceTenantIdLike

      CaseInstanceQuery caseInstanceTenantIdLike(String tenantIdLike)
    • caseInstanceTenantIdLikeIgnoreCase

      CaseInstanceQuery caseInstanceTenantIdLikeIgnoreCase(String tenantIdLikeIgnoreCase)
    • caseInstanceWithoutTenantId

      CaseInstanceQuery caseInstanceWithoutTenantId()
    • activePlanItemDefinitionId

      CaseInstanceQuery activePlanItemDefinitionId(String planItemDefinitionId)
      Select the case instances with an active plan item definition id equal to the provided definition id.
    • activePlanItemDefinitionIds

      CaseInstanceQuery activePlanItemDefinitionIds(Set<String> planItemDefinitionIds)
      Select the case instances with an active plan item definition id equal to one of the provided definition ids.
    • involvedUser

      CaseInstanceQuery involvedUser(String userId)
      Select the case instances with which the user with the given id is involved.
    • involvedUser

      CaseInstanceQuery involvedUser(String userId, String identityLinkType)
      Select the case instances with which the user with the given id and identity link type are involved.
    • involvedGroup

      CaseInstanceQuery involvedGroup(String groupId, String identityLinkType)
      Select the case instances with which the group with the given id and identity link type are involved.
    • involvedGroups

      CaseInstanceQuery involvedGroups(Set<String> groupIds)
      Select the case instances with which the groups with the given ids are involved.
    • variableValueEquals

      CaseInstanceQuery variableValueEquals(String name, Object value)
      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 and Serializable objects (which are not primitive type wrappers) are not supported.
      Parameters:
      name - name of the variable, cannot be null.
    • variableValueEquals

      CaseInstanceQuery variableValueEquals(Object value)
      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 and Serializable objects (which are not primitive type wrappers) are not supported.
    • variableValueEqualsIgnoreCase

      CaseInstanceQuery variableValueEqualsIgnoreCase(String name, String value)
      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

      CaseInstanceQuery 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. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Parameters:
      name - name of the variable, cannot be null.
    • variableValueNotEqualsIgnoreCase

      CaseInstanceQuery variableValueNotEqualsIgnoreCase(String name, String value)
      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

      CaseInstanceQuery variableValueGreaterThan(String name, Object value)
      Only select case instances which have a variable value greater than the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Parameters:
      name - variable name, cannot be null.
      value - variable value, cannot be null.
    • variableValueGreaterThanOrEqual

      CaseInstanceQuery variableValueGreaterThanOrEqual(String name, Object value)
      Only select case instances which have a global variable value greater than or equal to the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Parameters:
      name - variable name, cannot be null.
      value - variable value, cannot be null.
    • variableValueLessThan

      CaseInstanceQuery variableValueLessThan(String name, Object value)
      Only select case instances which have a global variable value less than the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Parameters:
      name - variable name, cannot be null.
      value - variable value, cannot be null.
    • variableValueLessThanOrEqual

      CaseInstanceQuery variableValueLessThanOrEqual(String name, Object value)
      Only select case instances which have a global variable value less than or equal to the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Parameters:
      name - variable name, cannot be null.
      value - variable value, cannot be null.
    • variableValueLike

      CaseInstanceQuery variableValueLike(String name, String value)
      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

      CaseInstanceQuery variableValueLikeIgnoreCase(String name, String value)
      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

      CaseInstanceQuery variableExists(String name)
      Only select case instances which have a variable with the given name.
      Parameters:
      name - cannot be null.
    • variableNotExists

      CaseInstanceQuery variableNotExists(String name)
      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

      Begin an OR statement. Make sure you invoke the endOr method at the end of your OR statement.
    • endOr

      End an OR statement.
    • locale

      CaseInstanceQuery locale(String 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()