Class HistoricCaseInstanceQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<T,U>
org.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance>
org.flowable.cmmn.engine.impl.history.HistoricCaseInstanceQueryImpl
- All Implemented Interfaces:
Serializable,HistoricCaseInstanceQuery,BatchDeleteQuery<HistoricCaseInstanceQuery>,CacheAwareQuery<HistoricCaseInstanceEntity>,DeleteQuery<HistoricCaseInstanceQuery,,HistoricCaseInstance> Query<HistoricCaseInstanceQuery,,HistoricCaseInstance> Command<Object>
public class HistoricCaseInstanceQueryImpl
extends AbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance>
implements HistoricCaseInstanceQuery, CacheAwareQuery<HistoricCaseInstanceEntity>
- Author:
- Joram Barrez, Tijs Rademakers
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Integerprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected CmmnEngineConfigurationprotected HistoricCaseInstanceQueryImplprotected Stringprotected booleanprotected Dateprotected Dateprotected booleanprotected booleanprotected IdentityLinkQueryObjectprotected Stringprotected IdentityLinkQueryObjectprotected Dateprotected Dateprotected Stringprotected Stringprotected List<HistoricCaseInstanceQueryImpl>protected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected Dateprotected Dateprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanFields inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
queryVariableValues, variableValueProviderFields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutorFields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, ignoreOrderBy, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC -
Constructor Summary
ConstructorsConstructorDescriptionHistoricCaseInstanceQueryImpl(CommandContext commandContext, CmmnEngineConfiguration cmmnEngineConfiguration) HistoricCaseInstanceQueryImpl(CommandExecutor commandExecutor, CmmnEngineConfiguration cmmnEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionactivePlanItemDefinitionId(String planItemDefinitionId) Select the historic case instances with an active plan item definition id equal to the provided definition id.activePlanItemDefinitionIds(Set<String> planItemDefinitionIds) Select the historic case instances with an active plan item definition id equal to one of the provided definition ids.protected voidaddCachedVariableForQueryById(CommandContext commandContext, List<HistoricCaseInstance> results) caseDefinitionCategory(String caseDefinitionCategory) Only select historic case instances with the given case definition category.caseDefinitionCategoryLike(String caseDefinitionCategoryLike) Only select historic case instances with a case definition category like the given value.caseDefinitionCategoryLikeIgnoreCase(String caseDefinitionCategoryLikeIgnoreCase) Only select historic case instances with a case definition category like the given value, ignoring upper/lower case.caseDefinitionId(String caseDefinitionId) Only select historic case instances with the given case definition identifier.caseDefinitionIds(Set<String> caseDefinitionIds) Only select historic case instances with the given case definition ids.caseDefinitionKey(String caseDefinitionKey) Only select historic case instances with the given key.caseDefinitionKeyLike(String caseDefinitionKeyLike) Only select historic case instances with a definition key like the given value.caseDefinitionKeyLikeIgnoreCase(String caseDefinitionKeyLikeIgnoreCase) Only select historic case instances with a definition key like the given value, ignoring upper/lower case.caseDefinitionKeys(Set<String> caseDefinitionKeys) Only select historic case instances with the given keys.caseDefinitionName(String caseDefinitionName) Only select historic case instances with the given case definition name.caseDefinitionNameLike(String caseDefinitionNameLike) Only select historic case instances with a case definition name like the given value.caseDefinitionNameLikeIgnoreCase(String caseDefinitionNameLikeIgnoreCase) Only select historic case instances with a case definition name like the given value, ignoring upper/lower case.caseDefinitionVersion(Integer caseDefinitionVersion) Only select historic case instances with the given case definition version.caseInstanceBusinessKey(String businessKey) Only select historic case instances with the given business key.caseInstanceBusinessKeyLike(String businessKeyLike) Only select historic case instances with a business key like the given value.caseInstanceBusinessKeyLikeIgnoreCase(String businessKeyLikeIgnoreCase) Only select historic case instances with a business key like the given value, ignoring upper/lower case.caseInstanceBusinessStatus(String businessStatus) Only select historic case instances with the given business status.caseInstanceBusinessStatusLike(String businessStatusLike) Only select historic case instances with a business status like the given value.caseInstanceBusinessStatusLikeIgnoreCase(String businessStatusLikeIgnoreCase) Only select historic case instances with a business status like the given value, ignoring upper/lower case.caseInstanceCallbackId(String callbackId) Only select historic case instances that have the provided callback identifier.caseInstanceCallbackType(String callbackType) Only select historic case instances that have the provided callback type.caseInstanceId(String caseInstanceId) Only select historic case instances with the given identifier.caseInstanceIds(Set<String> caseInstanceIds) Only select historic case instances with one the given identifiers.caseInstanceName(String name) Only select historic case instances with the given name.caseInstanceNameLike(String nameLike) Only select historic case instances like the given name.caseInstanceNameLikeIgnoreCase(String nameLikeIgnoreCase) Only select case instances that have a name like (case insensitive) the given name.caseInstanceParentId(String parentId) Only select historic case instances with the parent identifier.caseInstanceParentScopeId(String parentScopeId) Only select historic case instances with the given case instance parent scope id.caseInstanceReferenceId(String referenceId) Only select historic case instance that have the provided reference identifier.caseInstanceReferenceType(String referenceType) Only select historic case instance that have the provided reference type.caseInstanceRootScopeId(String rootScopeId) Only select historic case instances with the given case instance root scope id.caseInstanceTenantId(String tenantId) Only select historic case instances that have the tenant identifier.caseInstanceTenantIdLike(String tenantIdLike) Only select historic case instances with a tenant identifier like the given value.caseInstanceTenantIdLikeIgnoreCase(String tenantIdLikeIgnoreCase) Only select historic case instances with a tenant identifier like the given value, ignoring upper/lower case.Only select historic case instances that have no tenant identifier.voiddelete()Delete all instances that match the query.deleteInParallelUsingBatch(int batchSize, String batchName) Perform the deletion in parallel using the given batch size.deleteSequentiallyUsingBatch(int batchSize, String batchName) Perform the deletion sequentially using the given batch size.voidDeprecated.deploymentId(String deploymentId) Only select historic case instances that are defined by a case definition with the given deployment identifier.deploymentIds(List<String> deploymentIds) Only select historic case instances that are defined by a case definition with one of the given deployment identifiers.endOr()End an OR statement.voidenhanceCachedValue(HistoricCaseInstanceEntity caseInstance) protected voidlongexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext) Executes the actual query to retrieve the list of results.finished()Only select historic case instances that are finished.finishedAfter(Date afterTime) Only select historic case instances that are finished after the provided date time.finishedBefore(Date beforeTime) Only select historic case instances that are finished before the provided date time.getId()getState()Include historic case variables in the historic case query resultinvolvedGroup(String groupId, String identityLinkType) Select the historic case instances with which the group with the given id and identity link type are involved.involvedGroups(Set<String> groupIds) Select the historic case instances with which the groups with the given ids are involved.involvedUser(String userId) Select the historic case instances with which the user with the given id is involved.involvedUser(String userId, String identityLinkType) Select the historic case instances with which the user with the given id and identity link type are involved.booleanbooleanbooleanbooleanbooleanbooleanbooleanlastReactivatedAfter(Date afterTime) Only select historic case instance that are reactivated after the provided date time.lastReactivatedBefore(Date beforeTime) Only select historic case instance that are reactivated before the provided date time.lastReactivatedBy(String userId) Only select historic case instances that are reactivated by the provided user identifier.Localize case name to specified locale.or()Begin an OR statement.Return only the id value of the case instances, to reduce any additional instance data to be returned.voidsetSafeInvolvedGroups(List<List<String>> safeInvolvedGroups) startedAfter(Date afterTime) Only select historic case instances that are started after the provided date time.startedBefore(Date beforeTime) Only select historic case instances that are started before the provided date time.Only select historic case instances that are started by the provided user identifier.Only select historic case instances that have a state that is equal to the provided value.Only select historic case instances that are not finished.variableExists(String name) Only select case instances which have a variable with the given name.variableNotExists(String name) Only select case instances which does not have a variable with the given name.variableValueEquals(Object variableValue) Only select case instances which had at least one global variable with the given value when they ended.variableValueEquals(String variableName, Object variableValue) Only select case instances which had a global variable with the given value when they ended.variableValueEqualsIgnoreCase(String name, String value) Only select historic case instances which have a string variable with the given value, case insensitive.variableValueGreaterThan(String name, Object value) Only select case instances which had a global variable value greater than the passed value when they ended.variableValueGreaterThanOrEqual(String name, Object value) Only select case instances which had a global variable value greater than or equal to the passed value when they ended.variableValueLessThan(String name, Object value) Only select case instances which had a global variable value less than the passed value when the ended.variableValueLessThanOrEqual(String name, Object value) Only select case instances which has a global variable value less than or equal to the passed value when they ended.variableValueLike(String name, String value) Only select case instances which had global variable value like the given value when they ended.variableValueLikeIgnoreCase(String name, String value) Only select case instances which had global variable value like (case insensitive) the given value when they ended.variableValueNotEquals(String variableName, Object variableValue) Only select case instances which had a global variable with the given name, but with a different value than the passed value when they ended.variableValueNotEqualsIgnoreCase(String name, String value) Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.Only select historic case instances that do not have a callback identifier.Only select historic case instances without a parent identifier.Perform the query without applying sorting parameters.Methods inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
addVariable, addVariable, getQueryVariableValues, hasLocalQueryVariableValue, hasNonLocalQueryVariableValue, hasValueComparisonQueryVariables, isBoolean, scopedVariableExists, scopedVariableNotExists, scopedVariableValueEquals, scopedVariableValueEquals, scopedVariableValueEqualsIgnoreCase, scopedVariableValueGreaterThan, scopedVariableValueGreaterThanOrEqual, scopedVariableValueLessThan, scopedVariableValueLessThanOrEqual, scopedVariableValueLike, scopedVariableValueLikeIgnoreCase, scopedVariableValueNotEquals, scopedVariableValueNotEqualsIgnoreCase, variableExists, variableNotExists, variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEqualsIgnoreCaseMethods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getSafeList, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultMethods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setIgnoreOrderBy, setMaxResults, setNullHandlingColumn, setParameter
-
Field Details
-
cmmnEngineConfiguration
-
caseDefinitionId
-
caseDefinitionKey
-
caseDefinitionKeyLike
-
caseDefinitionKeyLikeIgnoreCase
-
caseDefinitionKeys
-
caseDefinitionIds
-
caseDefinitionName
-
caseDefinitionNameLike
-
caseDefinitionNameLikeIgnoreCase
-
caseDefinitionCategory
-
caseDefinitionCategoryLike
-
caseDefinitionCategoryLikeIgnoreCase
-
caseDefinitionVersion
-
caseInstanceId
-
caseInstanceIds
-
caseInstanceName
-
caseInstanceNameLike
-
caseInstanceNameLikeIgnoreCase
-
rootScopeId
-
parentScopeId
-
businessKey
-
businessKeyLike
-
businessKeyLikeIgnoreCase
-
businessStatus
-
businessStatusLike
-
businessStatusLikeIgnoreCase
-
caseInstanceParentId
-
withoutCaseInstanceParentId
protected boolean withoutCaseInstanceParentId -
deploymentId
-
deploymentIds
-
finished
protected boolean finished -
unfinished
protected boolean unfinished -
startedBefore
-
startedAfter
-
finishedBefore
-
finishedAfter
-
startedBy
-
state
-
lastReactivatedBefore
-
lastReactivatedAfter
-
lastReactivatedBy
-
callbackId
-
callbackType
-
withoutCallbackId
protected boolean withoutCallbackId -
referenceId
-
referenceType
-
tenantId
-
tenantIdLike
-
tenantIdLikeIgnoreCase
-
withoutTenantId
protected boolean withoutTenantId -
includeCaseVariables
protected boolean includeCaseVariables -
activePlanItemDefinitionId
-
activePlanItemDefinitionIds
-
involvedUser
-
involvedUserIdentityLink
-
involvedGroups
-
involvedGroupIdentityLink
-
orQueryObjects
-
currentOrQueryObject
-
inOrStatement
protected boolean inOrStatement -
locale
-
withLocalizationFallback
protected boolean withLocalizationFallback -
withoutSorting
protected boolean withoutSorting -
returnIdsOnly
protected boolean returnIdsOnly
-
-
Constructor Details
-
HistoricCaseInstanceQueryImpl
public HistoricCaseInstanceQueryImpl() -
HistoricCaseInstanceQueryImpl
public HistoricCaseInstanceQueryImpl(CommandContext commandContext, CmmnEngineConfiguration cmmnEngineConfiguration) -
HistoricCaseInstanceQueryImpl
public HistoricCaseInstanceQueryImpl(CommandExecutor commandExecutor, CmmnEngineConfiguration cmmnEngineConfiguration)
-
-
Method Details
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()- Overrides:
ensureVariablesInitializedin classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance>
-
caseDefinitionId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given case definition identifier.- Specified by:
caseDefinitionIdin interfaceHistoricCaseInstanceQuery
-
caseDefinitionIds
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given case definition ids.- Specified by:
caseDefinitionIdsin interfaceHistoricCaseInstanceQuery
-
caseDefinitionKey
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given key.- Specified by:
caseDefinitionKeyin interfaceHistoricCaseInstanceQuery
-
caseDefinitionKeyLike
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with a definition key like the given value.- Specified by:
caseDefinitionKeyLikein interfaceHistoricCaseInstanceQuery
-
caseDefinitionKeyLikeIgnoreCase
public HistoricCaseInstanceQueryImpl caseDefinitionKeyLikeIgnoreCase(String caseDefinitionKeyLikeIgnoreCase) Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with a definition key like the given value, ignoring upper/lower case.- Specified by:
caseDefinitionKeyLikeIgnoreCasein interfaceHistoricCaseInstanceQuery
-
caseDefinitionCategory
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given case definition category.- Specified by:
caseDefinitionCategoryin interfaceHistoricCaseInstanceQuery
-
caseDefinitionCategoryLike
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with a case definition category like the given value.- Specified by:
caseDefinitionCategoryLikein interfaceHistoricCaseInstanceQuery
-
caseDefinitionCategoryLikeIgnoreCase
public HistoricCaseInstanceQueryImpl caseDefinitionCategoryLikeIgnoreCase(String caseDefinitionCategoryLikeIgnoreCase) Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with a case definition category like the given value, ignoring upper/lower case.- Specified by:
caseDefinitionCategoryLikeIgnoreCasein interfaceHistoricCaseInstanceQuery
-
caseDefinitionName
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given case definition name.- Specified by:
caseDefinitionNamein interfaceHistoricCaseInstanceQuery
-
caseDefinitionNameLike
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with a case definition name like the given value.- Specified by:
caseDefinitionNameLikein interfaceHistoricCaseInstanceQuery
-
caseDefinitionNameLikeIgnoreCase
public HistoricCaseInstanceQueryImpl caseDefinitionNameLikeIgnoreCase(String caseDefinitionNameLikeIgnoreCase) Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with a case definition name like the given value, ignoring upper/lower case.- Specified by:
caseDefinitionNameLikeIgnoreCasein interfaceHistoricCaseInstanceQuery
-
caseDefinitionVersion
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given case definition version.- Specified by:
caseDefinitionVersionin interfaceHistoricCaseInstanceQuery
-
caseInstanceId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given identifier.- Specified by:
caseInstanceIdin interfaceHistoricCaseInstanceQuery
-
caseInstanceIds
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with one the given identifiers.- Specified by:
caseInstanceIdsin interfaceHistoricCaseInstanceQuery
-
caseInstanceName
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given name.- Specified by:
caseInstanceNamein interfaceHistoricCaseInstanceQuery
-
caseInstanceNameLike
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances like the given name.- Specified by:
caseInstanceNameLikein interfaceHistoricCaseInstanceQuery
-
caseInstanceNameLikeIgnoreCase
Description copied from interface:HistoricCaseInstanceQueryOnly select case instances that have a name like (case insensitive) the given name.- Specified by:
caseInstanceNameLikeIgnoreCasein interfaceHistoricCaseInstanceQuery- Parameters:
nameLikeIgnoreCase- cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
caseInstanceBusinessKey
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given business key.- Specified by:
caseInstanceBusinessKeyin interfaceHistoricCaseInstanceQuery
-
caseInstanceBusinessKeyLike
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with a business key like the given value.- Specified by:
caseInstanceBusinessKeyLikein interfaceHistoricCaseInstanceQuery
-
caseInstanceBusinessKeyLikeIgnoreCase
public HistoricCaseInstanceQueryImpl caseInstanceBusinessKeyLikeIgnoreCase(String businessKeyLikeIgnoreCase) Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with a business key like the given value, ignoring upper/lower case.- Specified by:
caseInstanceBusinessKeyLikeIgnoreCasein interfaceHistoricCaseInstanceQuery
-
caseInstanceRootScopeId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given case instance root scope id.- Specified by:
caseInstanceRootScopeIdin interfaceHistoricCaseInstanceQuery
-
caseInstanceParentScopeId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given case instance parent scope id.- Specified by:
caseInstanceParentScopeIdin interfaceHistoricCaseInstanceQuery
-
caseInstanceBusinessStatus
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given business status.- Specified by:
caseInstanceBusinessStatusin interfaceHistoricCaseInstanceQuery
-
caseInstanceBusinessStatusLike
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with a business status like the given value.- Specified by:
caseInstanceBusinessStatusLikein interfaceHistoricCaseInstanceQuery
-
caseInstanceBusinessStatusLikeIgnoreCase
public HistoricCaseInstanceQueryImpl caseInstanceBusinessStatusLikeIgnoreCase(String businessStatusLikeIgnoreCase) Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with a business status like the given value, ignoring upper/lower case.- Specified by:
caseInstanceBusinessStatusLikeIgnoreCasein interfaceHistoricCaseInstanceQuery
-
caseDefinitionKeys
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given keys.- Specified by:
caseDefinitionKeysin interfaceHistoricCaseInstanceQuery
-
caseInstanceParentId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the parent identifier.- Specified by:
caseInstanceParentIdin interfaceHistoricCaseInstanceQuery
-
withoutCaseInstanceParent
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances without a parent identifier.- Specified by:
withoutCaseInstanceParentin interfaceHistoricCaseInstanceQuery
-
deploymentId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that are defined by a case definition with the given deployment identifier.- Specified by:
deploymentIdin interfaceHistoricCaseInstanceQuery
-
deploymentIds
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that are defined by a case definition with one of the given deployment identifiers.- Specified by:
deploymentIdsin interfaceHistoricCaseInstanceQuery
-
finished
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that are finished.- Specified by:
finishedin interfaceHistoricCaseInstanceQuery
-
unfinished
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that are not finished.- Specified by:
unfinishedin interfaceHistoricCaseInstanceQuery
-
finishedBefore
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that are finished before the provided date time.- Specified by:
finishedBeforein interfaceHistoricCaseInstanceQuery
-
finishedAfter
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that are finished after the provided date time.- Specified by:
finishedAfterin interfaceHistoricCaseInstanceQuery
-
startedBefore
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that are started before the provided date time.- Specified by:
startedBeforein interfaceHistoricCaseInstanceQuery
-
startedAfter
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that are started after the provided date time.- Specified by:
startedAfterin interfaceHistoricCaseInstanceQuery
-
startedBy
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that are started by the provided user identifier.- Specified by:
startedByin interfaceHistoricCaseInstanceQuery
-
state
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that have a state that is equal to the provided value.- Specified by:
statein interfaceHistoricCaseInstanceQuery
-
lastReactivatedBefore
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instance that are reactivated before the provided date time.- Specified by:
lastReactivatedBeforein interfaceHistoricCaseInstanceQuery
-
lastReactivatedAfter
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instance that are reactivated after the provided date time.- Specified by:
lastReactivatedAfterin interfaceHistoricCaseInstanceQuery
-
lastReactivatedBy
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that are reactivated by the provided user identifier.- Specified by:
lastReactivatedByin interfaceHistoricCaseInstanceQuery
-
caseInstanceCallbackId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that have the provided callback identifier.- Specified by:
caseInstanceCallbackIdin interfaceHistoricCaseInstanceQuery
-
caseInstanceCallbackType
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that have the provided callback type.- Specified by:
caseInstanceCallbackTypein interfaceHistoricCaseInstanceQuery
-
withoutCaseInstanceCallbackId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that do not have a callback identifier.- Specified by:
withoutCaseInstanceCallbackIdin interfaceHistoricCaseInstanceQuery
-
caseInstanceReferenceId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instance that have the provided reference identifier.- Specified by:
caseInstanceReferenceIdin interfaceHistoricCaseInstanceQuery
-
caseInstanceReferenceType
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instance that have the provided reference type.- Specified by:
caseInstanceReferenceTypein interfaceHistoricCaseInstanceQuery
-
caseInstanceTenantId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that have the tenant identifier.- Specified by:
caseInstanceTenantIdin interfaceHistoricCaseInstanceQuery
-
caseInstanceTenantIdLike
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with a tenant identifier like the given value.- Specified by:
caseInstanceTenantIdLikein interfaceHistoricCaseInstanceQuery
-
caseInstanceTenantIdLikeIgnoreCase
public HistoricCaseInstanceQueryImpl caseInstanceTenantIdLikeIgnoreCase(String tenantIdLikeIgnoreCase) Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with a tenant identifier like the given value, ignoring upper/lower case.- Specified by:
caseInstanceTenantIdLikeIgnoreCasein interfaceHistoricCaseInstanceQuery
-
caseInstanceWithoutTenantId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that have no tenant identifier.- Specified by:
caseInstanceWithoutTenantIdin interfaceHistoricCaseInstanceQuery
-
orderByCaseInstanceId
- Specified by:
orderByCaseInstanceIdin interfaceHistoricCaseInstanceQuery
-
orderByCaseInstanceName
- Specified by:
orderByCaseInstanceNamein interfaceHistoricCaseInstanceQuery
-
orderByCaseDefinitionId
- Specified by:
orderByCaseDefinitionIdin interfaceHistoricCaseInstanceQuery
-
orderByCaseDefinitionKey
- Specified by:
orderByCaseDefinitionKeyin interfaceHistoricCaseInstanceQuery
-
orderByStartTime
- Specified by:
orderByStartTimein interfaceHistoricCaseInstanceQuery
-
orderByEndTime
- Specified by:
orderByEndTimein interfaceHistoricCaseInstanceQuery
-
orderByTenantId
- Specified by:
orderByTenantIdin interfaceHistoricCaseInstanceQuery
-
executeCount
- Specified by:
executeCountin classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance>
-
addCachedVariableForQueryById
protected void addCachedVariableForQueryById(CommandContext commandContext, List<HistoricCaseInstance> results) -
enhanceCachedValue
- Specified by:
enhanceCachedValuein interfaceCacheAwareQuery<HistoricCaseInstanceEntity>
-
delete
public void delete()Description copied from interface:DeleteQueryDelete all instances that match the query.- Specified by:
deletein interfaceDeleteQuery<HistoricCaseInstanceQuery,HistoricCaseInstance>
-
deleteWithRelatedData
Deprecated.Description copied from interface:DeleteQueryDelete all instances and their related data that match the query in bulk. Note that only the historical data directly related to the instance will be deleted. This means that for example for historic case/process instances, it will not delete any associated historic case/process instance (these should be deleted through the respective deletion for the particular model) which is owned by another engine (e.g. a process for the cmmn engine). Use the specific deletion methods on the respective history services otherwise: they delete with cascading to all other engines, but are not as performant as the bulk delete here.- Specified by:
deleteWithRelatedDatain interfaceDeleteQuery<HistoricCaseInstanceQuery,HistoricCaseInstance>
-
deleteInParallelUsingBatch
Description copied from interface:BatchDeleteQueryPerform the deletion in parallel using the given batch size. Doing the deletion in parallel means that multiple batches can be deleted in the same time- Specified by:
deleteInParallelUsingBatchin interfaceBatchDeleteQuery<HistoricCaseInstanceQuery>- Parameters:
batchSize- the size of each batch deletionbatchName- the name of the batch- Returns:
- the id the batch that is doing the deletion
-
deleteSequentiallyUsingBatch
Description copied from interface:BatchDeleteQueryPerform the deletion sequentially using the given batch size. Doing the deletion sequentially means that the deletion will be done one batch at a time.- Specified by:
deleteSequentiallyUsingBatchin interfaceBatchDeleteQuery<HistoricCaseInstanceQuery>- Parameters:
batchSize- the size of each batch deletionbatchName- the name of the batch- Returns:
- the id the batch that is doing the deletion
-
includeCaseVariables
Description copied from interface:HistoricCaseInstanceQueryInclude historic case variables in the historic case query result- Specified by:
includeCaseVariablesin interfaceHistoricCaseInstanceQuery
-
activePlanItemDefinitionId
Description copied from interface:HistoricCaseInstanceQuerySelect the historic case instances with an active plan item definition id equal to the provided definition id.- Specified by:
activePlanItemDefinitionIdin interfaceHistoricCaseInstanceQuery
-
activePlanItemDefinitionIds
Description copied from interface:HistoricCaseInstanceQuerySelect the historic case instances with an active plan item definition id equal to one of the provided definition ids.- Specified by:
activePlanItemDefinitionIdsin interfaceHistoricCaseInstanceQuery
-
involvedUser
Description copied from interface:HistoricCaseInstanceQuerySelect the historic case instances with which the user with the given id is involved.- Specified by:
involvedUserin interfaceHistoricCaseInstanceQuery
-
involvedUser
Description copied from interface:HistoricCaseInstanceQuerySelect the historic case instances with which the user with the given id and identity link type are involved.- Specified by:
involvedUserin interfaceHistoricCaseInstanceQuery
-
involvedGroup
Description copied from interface:HistoricCaseInstanceQuerySelect the historic case instances with which the group with the given id and identity link type are involved.- Specified by:
involvedGroupin interfaceHistoricCaseInstanceQuery
-
involvedGroups
Description copied from interface:HistoricCaseInstanceQuerySelect the historic case instances with which the groups with the given ids are involved.- Specified by:
involvedGroupsin interfaceHistoricCaseInstanceQuery
-
or
Description copied from interface:HistoricCaseInstanceQueryBegin an OR statement. Make sure you invoke the endOr method at the end of your OR statement. Only one OR statement is allowed, for the second call to this method an exception will be thrown.- Specified by:
orin interfaceHistoricCaseInstanceQuery
-
endOr
Description copied from interface:HistoricCaseInstanceQueryEnd an OR statement. Only one OR statement is allowed, for the second call to this method an exception will be thrown.- Specified by:
endOrin interfaceHistoricCaseInstanceQuery
-
variableValueEquals
Description copied from interface:HistoricCaseInstanceQueryOnly select case instances which had a global variable with the given value when they ended. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueEqualsin interfaceHistoricCaseInstanceQuery- Overrides:
variableValueEqualsin classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance> - Parameters:
variableName- of the variable, cannot be null.
-
variableValueNotEquals
Description copied from interface:HistoricCaseInstanceQueryOnly select case instances which had a global variable with the given name, but with a different value than the passed value when they ended. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueNotEqualsin interfaceHistoricCaseInstanceQuery- Overrides:
variableValueNotEqualsin classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance> - Parameters:
variableName- of the variable, cannot be null.
-
variableValueEquals
Description copied from interface:HistoricCaseInstanceQueryOnly select case instances which had at least one global variable with the given value when they ended. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueEqualsin interfaceHistoricCaseInstanceQuery- Overrides:
variableValueEqualsin classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance>
-
variableValueEqualsIgnoreCase
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances which have a string variable with the given value, case insensitive.- Specified by:
variableValueEqualsIgnoreCasein interfaceHistoricCaseInstanceQuery- Overrides:
variableValueEqualsIgnoreCasein classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance> - Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
variableValueNotEqualsIgnoreCase
-
variableValueLikeIgnoreCase
Description copied from interface:HistoricCaseInstanceQueryOnly select case instances which had global variable value like (case insensitive) the given value when they ended. This can be used on string variables only.- Specified by:
variableValueLikeIgnoreCasein interfaceHistoricCaseInstanceQuery- Overrides:
variableValueLikeIgnoreCasein classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance> - Parameters:
name- cannot be null.value- cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
variableValueGreaterThan
Description copied from interface:HistoricCaseInstanceQueryOnly select case instances which had a global variable value greater than the passed value when they ended. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueGreaterThanin interfaceHistoricCaseInstanceQuery- Overrides:
variableValueGreaterThanin classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance> - Parameters:
name- cannot be null.value- cannot be null.
-
variableValueGreaterThanOrEqual
Description copied from interface:HistoricCaseInstanceQueryOnly select case instances which had a global variable value greater than or equal to the passed value when they ended. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueGreaterThanOrEqualin interfaceHistoricCaseInstanceQuery- Overrides:
variableValueGreaterThanOrEqualin classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance> - Parameters:
name- cannot be null.value- cannot be null.
-
variableValueLessThan
Description copied from interface:HistoricCaseInstanceQueryOnly select case instances which had a global variable value less than the passed value when the ended. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueLessThanin interfaceHistoricCaseInstanceQuery- Overrides:
variableValueLessThanin classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance> - Parameters:
name- cannot be null.value- cannot be null.
-
variableValueLessThanOrEqual
Description copied from interface:HistoricCaseInstanceQueryOnly select case instances which has a global variable value less than or equal to the passed value when they ended. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueLessThanOrEqualin interfaceHistoricCaseInstanceQuery- Overrides:
variableValueLessThanOrEqualin classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance> - Parameters:
name- cannot be null.value- cannot be null.
-
variableValueLike
Description copied from interface:HistoricCaseInstanceQueryOnly select case instances which had global variable value like the given value when they ended. This can be used on string variables only.- Specified by:
variableValueLikein interfaceHistoricCaseInstanceQuery- Overrides:
variableValueLikein classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance> - Parameters:
name- cannot be null.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
Description copied from interface:HistoricCaseInstanceQueryOnly select case instances which have a variable with the given name.- Specified by:
variableExistsin interfaceHistoricCaseInstanceQuery- Overrides:
variableExistsin classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance> - Parameters:
name- cannot be null.
-
variableNotExists
Description copied from interface:HistoricCaseInstanceQueryOnly select case instances which does not have a variable with the given name.- Specified by:
variableNotExistsin interfaceHistoricCaseInstanceQuery- Overrides:
variableNotExistsin classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance> - Parameters:
name- cannot be null.
-
locale
Description copied from interface:HistoricCaseInstanceQueryLocalize case name to specified locale.- Specified by:
localein interfaceHistoricCaseInstanceQuery
-
withLocalizationFallback
Description copied from interface:HistoricCaseInstanceQueryInstruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.- Specified by:
withLocalizationFallbackin interfaceHistoricCaseInstanceQuery
-
withoutSorting
Description copied from interface:HistoricCaseInstanceQueryPerform the query without applying sorting parameters. By default sorting will be applied.- Specified by:
withoutSortingin interfaceHistoricCaseInstanceQuery
-
returnIdsOnly
Description copied from interface:HistoricCaseInstanceQueryReturn only the id value of the case instances, to reduce any additional instance data to be returned.- Specified by:
returnIdsOnlyin interfaceHistoricCaseInstanceQuery
-
getCaseDefinitionId
-
getCaseDefinitionKey
-
getCaseDefinitionKeyLike
-
getCaseDefinitionKeyLikeIgnoreCase
-
getCaseDefinitionKeys
-
getCaseDefinitionIds
-
getCaseDefinitionName
-
getCaseDefinitionNameLike
-
getCaseDefinitionNameLikeIgnoreCase
-
getCaseDefinitionCategory
-
getCaseDefinitionCategoryLike
-
getCaseDefinitionCategoryLikeIgnoreCase
-
getCaseDefinitionVersion
-
getCaseInstanceId
-
getId
- Specified by:
getIdin interfaceCacheAwareQuery<HistoricCaseInstanceEntity>
-
getCaseInstanceName
-
getCaseInstanceNameLike
-
getCaseInstanceNameLikeIgnoreCase
-
getBusinessKey
-
getBusinessKeyLike
-
getBusinessKeyLikeIgnoreCase
-
getBusinessStatus
-
getBusinessStatusLike
-
getBusinessStatusLikeIgnoreCase
-
getCaseInstanceParentId
-
isWithoutCaseInstanceParentId
public boolean isWithoutCaseInstanceParentId() -
isFinished
public boolean isFinished() -
isUnfinished
public boolean isUnfinished() -
getStartedBefore
-
getStartedAfter
-
getFinishedBefore
-
getFinishedAfter
-
getStartedBy
-
getState
-
getLastReactivatedBefore
-
getLastReactivatedAfter
-
getLastReactivatedBy
-
getCallbackId
-
getCallbackType
-
isWithoutCallbackId
public boolean isWithoutCallbackId() -
getReferenceId
-
getReferenceType
-
getTenantId
-
getTenantIdLike
-
getTenantIdLikeIgnoreCase
-
isWithoutTenantId
public boolean isWithoutTenantId() -
getActivePlanItemDefinitionId
-
getActivePlanItemDefinitionIds
-
getInvolvedUser
-
getInvolvedUserIdentityLink
-
getInvolvedGroups
-
getInvolvedGroupIdentityLink
-
isIncludeCaseVariables
public boolean isIncludeCaseVariables() -
getOrQueryObjects
-
getDeploymentId
-
getDeploymentIds
-
getCaseInstanceIds
-
isNeedsCaseDefinitionOuterJoin
public boolean isNeedsCaseDefinitionOuterJoin() -
getSafeInvolvedGroups
-
setSafeInvolvedGroups
-
getRootScopeId
-
getParentScopeId
-