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.ResultType
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected Integer
protected String
protected String
protected String
protected String
protected String
protected CmmnEngineConfiguration
protected HistoricCaseInstanceQueryImpl
protected String
protected boolean
protected Date
protected Date
protected boolean
protected boolean
protected IdentityLinkQueryObject
protected String
protected IdentityLinkQueryObject
protected Date
protected Date
protected String
protected String
protected List<HistoricCaseInstanceQueryImpl>
protected String
protected String
protected String
protected String
protected Date
protected Date
protected String
protected String
protected String
protected String
protected String
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
Fields inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
queryVariableValues, variableValueProvider
Fields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutor
Fields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, 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 void
addCachedVariableForQueryById
(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.void
delete()
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.void
Deprecated.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.void
enhanceCachedValue
(HistoricCaseInstanceEntity caseInstance) protected void
long
executeCount
(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.boolean
boolean
boolean
boolean
boolean
boolean
boolean
lastReactivatedAfter
(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.void
setSafeInvolvedGroups
(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.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, variableValueNotEqualsIgnoreCase
Methods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
Methods 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, 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
-
-
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:
ensureVariablesInitialized
in classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,
HistoricCaseInstance>
-
caseDefinitionId
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with the given case definition identifier.- Specified by:
caseDefinitionId
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionIds
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with the given case definition ids.- Specified by:
caseDefinitionIds
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionKey
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with the given key.- Specified by:
caseDefinitionKey
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionKeyLike
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with a definition key like the given value.- Specified by:
caseDefinitionKeyLike
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionKeyLikeIgnoreCase
public HistoricCaseInstanceQueryImpl caseDefinitionKeyLikeIgnoreCase(String caseDefinitionKeyLikeIgnoreCase) Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with a definition key like the given value, ignoring upper/lower case.- Specified by:
caseDefinitionKeyLikeIgnoreCase
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionCategory
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with the given case definition category.- Specified by:
caseDefinitionCategory
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionCategoryLike
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with a case definition category like the given value.- Specified by:
caseDefinitionCategoryLike
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionCategoryLikeIgnoreCase
public HistoricCaseInstanceQueryImpl caseDefinitionCategoryLikeIgnoreCase(String caseDefinitionCategoryLikeIgnoreCase) Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with a case definition category like the given value, ignoring upper/lower case.- Specified by:
caseDefinitionCategoryLikeIgnoreCase
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionName
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with the given case definition name.- Specified by:
caseDefinitionName
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionNameLike
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with a case definition name like the given value.- Specified by:
caseDefinitionNameLike
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionNameLikeIgnoreCase
public HistoricCaseInstanceQueryImpl caseDefinitionNameLikeIgnoreCase(String caseDefinitionNameLikeIgnoreCase) Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with a case definition name like the given value, ignoring upper/lower case.- Specified by:
caseDefinitionNameLikeIgnoreCase
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionVersion
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with the given case definition version.- Specified by:
caseDefinitionVersion
in interfaceHistoricCaseInstanceQuery
-
caseInstanceId
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with the given identifier.- Specified by:
caseInstanceId
in interfaceHistoricCaseInstanceQuery
-
caseInstanceIds
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with one the given identifiers.- Specified by:
caseInstanceIds
in interfaceHistoricCaseInstanceQuery
-
caseInstanceName
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with the given name.- Specified by:
caseInstanceName
in interfaceHistoricCaseInstanceQuery
-
caseInstanceNameLike
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances like the given name.- Specified by:
caseInstanceNameLike
in interfaceHistoricCaseInstanceQuery
-
caseInstanceNameLikeIgnoreCase
Description copied from interface:HistoricCaseInstanceQuery
Only select case instances that have a name like (case insensitive) the given name.- Specified by:
caseInstanceNameLikeIgnoreCase
in 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:HistoricCaseInstanceQuery
Only select historic case instances with the given business key.- Specified by:
caseInstanceBusinessKey
in interfaceHistoricCaseInstanceQuery
-
caseInstanceBusinessKeyLike
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with a business key like the given value.- Specified by:
caseInstanceBusinessKeyLike
in interfaceHistoricCaseInstanceQuery
-
caseInstanceBusinessKeyLikeIgnoreCase
public HistoricCaseInstanceQueryImpl caseInstanceBusinessKeyLikeIgnoreCase(String businessKeyLikeIgnoreCase) Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with a business key like the given value, ignoring upper/lower case.- Specified by:
caseInstanceBusinessKeyLikeIgnoreCase
in interfaceHistoricCaseInstanceQuery
-
caseInstanceRootScopeId
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with the given case instance root scope id.- Specified by:
caseInstanceRootScopeId
in interfaceHistoricCaseInstanceQuery
-
caseInstanceParentScopeId
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with the given case instance parent scope id.- Specified by:
caseInstanceParentScopeId
in interfaceHistoricCaseInstanceQuery
-
caseInstanceBusinessStatus
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with the given business status.- Specified by:
caseInstanceBusinessStatus
in interfaceHistoricCaseInstanceQuery
-
caseInstanceBusinessStatusLike
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with a business status like the given value.- Specified by:
caseInstanceBusinessStatusLike
in interfaceHistoricCaseInstanceQuery
-
caseInstanceBusinessStatusLikeIgnoreCase
public HistoricCaseInstanceQueryImpl caseInstanceBusinessStatusLikeIgnoreCase(String businessStatusLikeIgnoreCase) Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with a business status like the given value, ignoring upper/lower case.- Specified by:
caseInstanceBusinessStatusLikeIgnoreCase
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionKeys
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with the given keys.- Specified by:
caseDefinitionKeys
in interfaceHistoricCaseInstanceQuery
-
caseInstanceParentId
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with the parent identifier.- Specified by:
caseInstanceParentId
in interfaceHistoricCaseInstanceQuery
-
withoutCaseInstanceParent
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances without a parent identifier.- Specified by:
withoutCaseInstanceParent
in interfaceHistoricCaseInstanceQuery
-
deploymentId
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that are defined by a case definition with the given deployment identifier.- Specified by:
deploymentId
in interfaceHistoricCaseInstanceQuery
-
deploymentIds
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that are defined by a case definition with one of the given deployment identifiers.- Specified by:
deploymentIds
in interfaceHistoricCaseInstanceQuery
-
finished
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that are finished.- Specified by:
finished
in interfaceHistoricCaseInstanceQuery
-
unfinished
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that are not finished.- Specified by:
unfinished
in interfaceHistoricCaseInstanceQuery
-
finishedBefore
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that are finished before the provided date time.- Specified by:
finishedBefore
in interfaceHistoricCaseInstanceQuery
-
finishedAfter
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that are finished after the provided date time.- Specified by:
finishedAfter
in interfaceHistoricCaseInstanceQuery
-
startedBefore
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that are started before the provided date time.- Specified by:
startedBefore
in interfaceHistoricCaseInstanceQuery
-
startedAfter
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that are started after the provided date time.- Specified by:
startedAfter
in interfaceHistoricCaseInstanceQuery
-
startedBy
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that are started by the provided user identifier.- Specified by:
startedBy
in interfaceHistoricCaseInstanceQuery
-
state
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that have a state that is equal to the provided value.- Specified by:
state
in interfaceHistoricCaseInstanceQuery
-
lastReactivatedBefore
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instance that are reactivated before the provided date time.- Specified by:
lastReactivatedBefore
in interfaceHistoricCaseInstanceQuery
-
lastReactivatedAfter
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instance that are reactivated after the provided date time.- Specified by:
lastReactivatedAfter
in interfaceHistoricCaseInstanceQuery
-
lastReactivatedBy
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that are reactivated by the provided user identifier.- Specified by:
lastReactivatedBy
in interfaceHistoricCaseInstanceQuery
-
caseInstanceCallbackId
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that have the provided callback identifier.- Specified by:
caseInstanceCallbackId
in interfaceHistoricCaseInstanceQuery
-
caseInstanceCallbackType
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that have the provided callback type.- Specified by:
caseInstanceCallbackType
in interfaceHistoricCaseInstanceQuery
-
withoutCaseInstanceCallbackId
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that do not have a callback identifier.- Specified by:
withoutCaseInstanceCallbackId
in interfaceHistoricCaseInstanceQuery
-
caseInstanceReferenceId
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instance that have the provided reference identifier.- Specified by:
caseInstanceReferenceId
in interfaceHistoricCaseInstanceQuery
-
caseInstanceReferenceType
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instance that have the provided reference type.- Specified by:
caseInstanceReferenceType
in interfaceHistoricCaseInstanceQuery
-
caseInstanceTenantId
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that have the tenant identifier.- Specified by:
caseInstanceTenantId
in interfaceHistoricCaseInstanceQuery
-
caseInstanceTenantIdLike
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with a tenant identifier like the given value.- Specified by:
caseInstanceTenantIdLike
in interfaceHistoricCaseInstanceQuery
-
caseInstanceTenantIdLikeIgnoreCase
public HistoricCaseInstanceQueryImpl caseInstanceTenantIdLikeIgnoreCase(String tenantIdLikeIgnoreCase) Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with a tenant identifier like the given value, ignoring upper/lower case.- Specified by:
caseInstanceTenantIdLikeIgnoreCase
in interfaceHistoricCaseInstanceQuery
-
caseInstanceWithoutTenantId
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that have no tenant identifier.- Specified by:
caseInstanceWithoutTenantId
in interfaceHistoricCaseInstanceQuery
-
orderByCaseInstanceId
- Specified by:
orderByCaseInstanceId
in interfaceHistoricCaseInstanceQuery
-
orderByCaseInstanceName
- Specified by:
orderByCaseInstanceName
in interfaceHistoricCaseInstanceQuery
-
orderByCaseDefinitionId
- Specified by:
orderByCaseDefinitionId
in interfaceHistoricCaseInstanceQuery
-
orderByCaseDefinitionKey
- Specified by:
orderByCaseDefinitionKey
in interfaceHistoricCaseInstanceQuery
-
orderByStartTime
- Specified by:
orderByStartTime
in interfaceHistoricCaseInstanceQuery
-
orderByEndTime
- Specified by:
orderByEndTime
in interfaceHistoricCaseInstanceQuery
-
orderByTenantId
- Specified by:
orderByTenantId
in interfaceHistoricCaseInstanceQuery
-
executeCount
- Specified by:
executeCount
in classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,
HistoricCaseInstance>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,
HistoricCaseInstance>
-
addCachedVariableForQueryById
protected void addCachedVariableForQueryById(CommandContext commandContext, List<HistoricCaseInstance> results) -
enhanceCachedValue
- Specified by:
enhanceCachedValue
in interfaceCacheAwareQuery<HistoricCaseInstanceEntity>
-
delete
public void delete()Description copied from interface:DeleteQuery
Delete all instances that match the query.- Specified by:
delete
in interfaceDeleteQuery<HistoricCaseInstanceQuery,
HistoricCaseInstance>
-
deleteWithRelatedData
Deprecated.Description copied from interface:DeleteQuery
Delete 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:
deleteWithRelatedData
in interfaceDeleteQuery<HistoricCaseInstanceQuery,
HistoricCaseInstance>
-
deleteInParallelUsingBatch
Description copied from interface:BatchDeleteQuery
Perform 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:
deleteInParallelUsingBatch
in 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:BatchDeleteQuery
Perform 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:
deleteSequentiallyUsingBatch
in 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:HistoricCaseInstanceQuery
Include historic case variables in the historic case query result- Specified by:
includeCaseVariables
in interfaceHistoricCaseInstanceQuery
-
activePlanItemDefinitionId
Description copied from interface:HistoricCaseInstanceQuery
Select the historic case instances with an active plan item definition id equal to the provided definition id.- Specified by:
activePlanItemDefinitionId
in interfaceHistoricCaseInstanceQuery
-
activePlanItemDefinitionIds
Description copied from interface:HistoricCaseInstanceQuery
Select the historic case instances with an active plan item definition id equal to one of the provided definition ids.- Specified by:
activePlanItemDefinitionIds
in interfaceHistoricCaseInstanceQuery
-
involvedUser
Description copied from interface:HistoricCaseInstanceQuery
Select the historic case instances with which the user with the given id is involved.- Specified by:
involvedUser
in interfaceHistoricCaseInstanceQuery
-
involvedUser
Description copied from interface:HistoricCaseInstanceQuery
Select the historic case instances with which the user with the given id and identity link type are involved.- Specified by:
involvedUser
in interfaceHistoricCaseInstanceQuery
-
involvedGroup
Description copied from interface:HistoricCaseInstanceQuery
Select the historic case instances with which the group with the given id and identity link type are involved.- Specified by:
involvedGroup
in interfaceHistoricCaseInstanceQuery
-
involvedGroups
Description copied from interface:HistoricCaseInstanceQuery
Select the historic case instances with which the groups with the given ids are involved.- Specified by:
involvedGroups
in interfaceHistoricCaseInstanceQuery
-
or
Description copied from interface:HistoricCaseInstanceQuery
Begin 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:
or
in interfaceHistoricCaseInstanceQuery
-
endOr
Description copied from interface:HistoricCaseInstanceQuery
End an OR statement. Only one OR statement is allowed, for the second call to this method an exception will be thrown.- Specified by:
endOr
in interfaceHistoricCaseInstanceQuery
-
variableValueEquals
Description copied from interface:HistoricCaseInstanceQuery
Only select case instances which had a global variable with the given value when they ended. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueEquals
in interfaceHistoricCaseInstanceQuery
- Overrides:
variableValueEquals
in classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,
HistoricCaseInstance> - Parameters:
variableName
- of the variable, cannot be null.
-
variableValueNotEquals
Description copied from interface:HistoricCaseInstanceQuery
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. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueNotEquals
in interfaceHistoricCaseInstanceQuery
- Overrides:
variableValueNotEquals
in classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,
HistoricCaseInstance> - Parameters:
variableName
- of the variable, cannot be null.
-
variableValueEquals
Description copied from interface:HistoricCaseInstanceQuery
Only select case instances which had at least one global variable with the given value when they ended. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueEquals
in interfaceHistoricCaseInstanceQuery
- Overrides:
variableValueEquals
in classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,
HistoricCaseInstance>
-
variableValueEqualsIgnoreCase
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances which have a string variable with the given value, case insensitive.- Specified by:
variableValueEqualsIgnoreCase
in interfaceHistoricCaseInstanceQuery
- Overrides:
variableValueEqualsIgnoreCase
in 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:HistoricCaseInstanceQuery
Only 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:
variableValueLikeIgnoreCase
in interfaceHistoricCaseInstanceQuery
- Overrides:
variableValueLikeIgnoreCase
in 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:HistoricCaseInstanceQuery
Only select case instances which had a global variable value greater than the passed value when they ended. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueGreaterThan
in interfaceHistoricCaseInstanceQuery
- Overrides:
variableValueGreaterThan
in classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,
HistoricCaseInstance> - Parameters:
name
- cannot be null.value
- cannot be null.
-
variableValueGreaterThanOrEqual
Description copied from interface:HistoricCaseInstanceQuery
Only select case instances which had a global variable value greater than or equal to the passed value when they ended. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueGreaterThanOrEqual
in interfaceHistoricCaseInstanceQuery
- Overrides:
variableValueGreaterThanOrEqual
in classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,
HistoricCaseInstance> - Parameters:
name
- cannot be null.value
- cannot be null.
-
variableValueLessThan
Description copied from interface:HistoricCaseInstanceQuery
Only select case instances which had a global variable value less than the passed value when the ended. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueLessThan
in interfaceHistoricCaseInstanceQuery
- Overrides:
variableValueLessThan
in classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,
HistoricCaseInstance> - Parameters:
name
- cannot be null.value
- cannot be null.
-
variableValueLessThanOrEqual
Description copied from interface:HistoricCaseInstanceQuery
Only select case instances which has a global variable value less than or equal to the passed value when they ended. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueLessThanOrEqual
in interfaceHistoricCaseInstanceQuery
- Overrides:
variableValueLessThanOrEqual
in classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,
HistoricCaseInstance> - Parameters:
name
- cannot be null.value
- cannot be null.
-
variableValueLike
Description copied from interface:HistoricCaseInstanceQuery
Only 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:
variableValueLike
in interfaceHistoricCaseInstanceQuery
- Overrides:
variableValueLike
in 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:HistoricCaseInstanceQuery
Only select case instances which have a variable with the given name.- Specified by:
variableExists
in interfaceHistoricCaseInstanceQuery
- Overrides:
variableExists
in classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,
HistoricCaseInstance> - Parameters:
name
- cannot be null.
-
variableNotExists
Description copied from interface:HistoricCaseInstanceQuery
Only select case instances which does not have a variable with the given name.- Specified by:
variableNotExists
in interfaceHistoricCaseInstanceQuery
- Overrides:
variableNotExists
in classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,
HistoricCaseInstance> - Parameters:
name
- cannot be null.
-
locale
Description copied from interface:HistoricCaseInstanceQuery
Localize case name to specified locale.- Specified by:
locale
in interfaceHistoricCaseInstanceQuery
-
withLocalizationFallback
Description copied from interface:HistoricCaseInstanceQuery
Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.- Specified by:
withLocalizationFallback
in interfaceHistoricCaseInstanceQuery
-
getCaseDefinitionId
-
getCaseDefinitionKey
-
getCaseDefinitionKeyLike
-
getCaseDefinitionKeyLikeIgnoreCase
-
getCaseDefinitionKeys
-
getCaseDefinitionIds
-
getCaseDefinitionName
-
getCaseDefinitionNameLike
-
getCaseDefinitionNameLikeIgnoreCase
-
getCaseDefinitionCategory
-
getCaseDefinitionCategoryLike
-
getCaseDefinitionCategoryLikeIgnoreCase
-
getCaseDefinitionVersion
-
getCaseInstanceId
-
getId
- Specified by:
getId
in 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
-