Package org.flowable.engine.impl
Class HistoricProcessInstanceQueryImpl
- 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<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
- org.flowable.engine.impl.HistoricProcessInstanceQueryImpl
-
- All Implemented Interfaces:
Serializable
,org.flowable.common.engine.api.query.BatchDeleteQuery<HistoricProcessInstanceQuery>
,org.flowable.common.engine.api.query.CacheAwareQuery<org.flowable.engine.impl.persistence.entity.HistoricProcessInstanceEntity>
,org.flowable.common.engine.api.query.DeleteQuery<HistoricProcessInstanceQuery,HistoricProcessInstance>
,org.flowable.common.engine.api.query.Query<HistoricProcessInstanceQuery,HistoricProcessInstance>
,org.flowable.common.engine.impl.interceptor.Command<Object>
,HistoricProcessInstanceQuery
public class HistoricProcessInstanceQueryImpl extends org.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance> implements HistoricProcessInstanceQuery, org.flowable.common.engine.api.query.CacheAwareQuery<org.flowable.engine.impl.persistence.entity.HistoricProcessInstanceEntity>
- Author:
- Tom Baeyens, Tijs Rademakers, Falko Menge, Bernd Ruecker, Joram Barrez
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
queryVariableValues, variableValueProvider
-
-
Constructor Summary
Constructors Constructor Description HistoricProcessInstanceQueryImpl()
HistoricProcessInstanceQueryImpl(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
HistoricProcessInstanceQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor, org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HistoricProcessInstanceQuery
activeActivityId(String activityId)
Select the historic process instances which have an active activity instance like the provided id.HistoricProcessInstanceQuery
activeActivityIds(Set<String> activityIds)
Select the historic process instances which have an active activity instance like the provided ids.protected void
addCachedVariableForQueryById(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, List<HistoricProcessInstance> results)
void
delete()
HistoricProcessInstanceQuery
deleted()
Only select historic process instances that are deleted.String
deleteInParallelUsingBatch(int batchSize, String batchName)
String
deleteSequentiallyUsingBatch(int batchSize, String batchName)
void
deleteWithRelatedData()
HistoricProcessInstanceQuery
deploymentId(String deploymentId)
Only select historic process instances that are defined by a process definition with the given deployment identifier.HistoricProcessInstanceQuery
deploymentIdIn(List<String> deploymentIds)
Only select historic process instances that are defined by a process definition with one of the given deployment identifiers.HistoricProcessInstanceQuery
endOr()
End an OR statement.void
enhanceCachedValue(org.flowable.engine.impl.persistence.entity.HistoricProcessInstanceEntity processInstance)
protected void
ensureVariablesInitialized()
HistoricProcessInstanceQuery
excludeSubprocesses(boolean excludeSubprocesses)
Exclude sub processes from the query result;long
executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
List<HistoricProcessInstance>
executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
HistoricProcessInstanceQuery
finished()
Only select historic process instances that are completely finished.HistoricProcessInstanceQuery
finishedAfter(Date finishedAfter)
Only select historic process instances that were finished after the given date.HistoricProcessInstanceQuery
finishedBefore(Date finishedBefore)
Only select historic process instances that were finished before the given date.String
getActiveActivityId()
Set<String>
getActiveActivityIds()
String
getBusinessKey()
String
getBusinessKeyLike()
String
getBusinessStatus()
String
getBusinessStatusLike()
String
getCallbackId()
String
getCallbackType()
String
getDeploymentId()
List<String>
getDeploymentIds()
Date
getFinishedAfter()
Date
getFinishedBefore()
String
getId()
IdentityLinkQueryObject
getInvolvedGroupIdentityLink()
Set<String>
getInvolvedGroups()
String
getInvolvedUser()
IdentityLinkQueryObject
getInvolvedUserIdentityLink()
String
getLocale()
String
getName()
String
getNameLike()
String
getNameLikeIgnoreCase()
List<HistoricProcessInstanceQueryImpl>
getOrQueryObjects()
String
getProcessDefinitionCategory()
String
getProcessDefinitionId()
String
getProcessDefinitionIdLike()
String
getProcessDefinitionKey()
List<String>
getProcessDefinitionKeyIn()
String
getProcessDefinitionName()
Integer
getProcessDefinitionVersion()
String
getProcessInstanceId()
Set<String>
getProcessInstanceIds()
List<String>
getProcessKeyNotIn()
String
getReferenceId()
String
getReferenceType()
List<List<String>>
getSafeInvolvedGroups()
static long
getSerialversionuid()
Date
getStartedAfter()
Date
getStartedBefore()
String
getStartedBy()
String
getSuperProcessInstanceId()
String
getTenantId()
String
getTenantIdLike()
HistoricProcessInstanceQuery
includeProcessVariables()
Include process variables in the process query resultHistoricProcessInstanceQuery
involvedGroup(String groupId, String identityLinkType)
Only select the historic process instances with which the group with the given id and link type is involved.HistoricProcessInstanceQuery
involvedGroups(Set<String> involvedGroups)
Only select the historic process instances with which the group with the given ids are involved.HistoricProcessInstanceQuery
involvedUser(String involvedUser)
Only select the historic process instances with which the user with the given id is involved.HistoricProcessInstanceQuery
involvedUser(String userId, String identityLinkType)
Only select the historic process instances with which the user with the given id and link type is involved.boolean
isDeleted()
boolean
isExcludeSubprocesses()
boolean
isFinished()
boolean
isIncludeProcessVariables()
boolean
isNeedsProcessDefinitionOuterJoin()
boolean
isNotDeleted()
boolean
isOpen()
boolean
isUnfinished()
boolean
isWithException()
boolean
isWithJobException()
boolean
isWithLocalizationFallback()
boolean
isWithoutCallbackId()
boolean
isWithoutTenantId()
HistoricProcessInstanceQuery
limitProcessInstanceVariables(Integer processInstanceVariablesLimit)
Limit process instance variablesHistoricProcessInstanceQuery
locale(String locale)
Localize historic process name and description to specified locale.HistoricProcessInstanceQuery
localVariableExists(String name)
Only select process instances which have a local variable with the given name.HistoricProcessInstanceQuery
localVariableNotExists(String name)
Only select process instances which does not have a local variable with the given name.HistoricProcessInstanceQuery
localVariableValueEquals(Object variableValue)
Only select process instances which had at least one local variable with the given value when they ended.HistoricProcessInstanceQuery
localVariableValueEquals(String variableName, Object variableValue)
Only select process instances which had a local variable with the given value when they ended.HistoricProcessInstanceQuery
localVariableValueEqualsIgnoreCase(String name, String value)
Only select historic process instances which have a local string variable with the given value, case insensitive.HistoricProcessInstanceQuery
localVariableValueGreaterThan(String name, Object value)
Only select process instances which had a local variable value greater than the passed value when they ended.HistoricProcessInstanceQuery
localVariableValueGreaterThanOrEqual(String name, Object value)
Only select process instances which had a local variable value greater than or equal to the passed value when they ended.HistoricProcessInstanceQuery
localVariableValueLessThan(String name, Object value)
Only select process instances which had a local variable value less than the passed value when the ended.HistoricProcessInstanceQuery
localVariableValueLessThanOrEqual(String name, Object value)
Only select process instances which has a local variable value less than or equal to the passed value when they ended.HistoricProcessInstanceQuery
localVariableValueLike(String name, String value)
Only select process instances which had a local variable value like the given value when they ended.HistoricProcessInstanceQuery
localVariableValueLikeIgnoreCase(String name, String value)
Only select process instances which had a local variable value like (case insensitive) the given value when they ended.HistoricProcessInstanceQuery
localVariableValueNotEquals(String variableName, Object variableValue)
Only select process instances which had a local variable with the given name, but with a different value than the passed value when they ended.HistoricProcessInstanceQuery
localVariableValueNotEqualsIgnoreCase(String name, String value)
Only select historic process instances which have a local string variable not matching the given value, case insensitive.HistoricProcessInstanceQuery
notDeleted()
Only select historic process instance that are not deleted.HistoricProcessInstanceQuery
or()
Begin an OR statement.HistoricProcessInstanceQuery
orderByProcessDefinitionId()
Order by the process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
orderByProcessInstanceBusinessKey()
Order by the business key (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
orderByProcessInstanceDuration()
Order by the duration of the process instance (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
orderByProcessInstanceEndTime()
Order by the end time (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
orderByProcessInstanceId()
Order by the process instance id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
orderByProcessInstanceStartTime()
Order by the start time (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
processDefinitionCategory(String processDefinitionCategory)
Only select historic process instances whose process definition category is processDefinitionCategory.HistoricProcessInstanceQueryImpl
processDefinitionId(String processDefinitionId)
Only select historic process instances for the given process definitionHistoricProcessInstanceQuery
processDefinitionKey(String processDefinitionKey)
Only select historic process instances that are defined by a process definition with the given key.HistoricProcessInstanceQuery
processDefinitionKeyIn(List<String> processDefinitionKeys)
Only select historic process instances that are defined by a process definition with one of the given process definition keys.HistoricProcessInstanceQuery
processDefinitionKeyNotIn(List<String> processDefinitionKeys)
Only select historic process instances that don't have a process-definition of which the key is present in the given listHistoricProcessInstanceQuery
processDefinitionName(String processDefinitionName)
Select process historic instances whose process definition name is processDefinitionNameHistoricProcessInstanceQuery
processDefinitionVersion(Integer processDefinitionVersion)
Only select historic process instances with a certain process definition version.HistoricProcessInstanceQuery
processInstanceBusinessKey(String businessKey)
Only select historic process instances with the given business keyHistoricProcessInstanceQuery
processInstanceBusinessKeyLike(String businessKeyLike)
Only select historic process instances with a business key like the given value.HistoricProcessInstanceQuery
processInstanceBusinessStatus(String businessStatus)
Only select historic process instances with the given business statusHistoricProcessInstanceQuery
processInstanceBusinessStatusLike(String businessStatusLike)
Only select historic process instances with a business status like the given value.HistoricProcessInstanceQuery
processInstanceCallbackId(String callbackId)
Only select process instances with the given callback identifier.HistoricProcessInstanceQuery
processInstanceCallbackType(String callbackType)
Only select process instances with the given callback type.HistoricProcessInstanceQueryImpl
processInstanceId(String processInstanceId)
Only select historic process instances with the given process instance.HistoricProcessInstanceQuery
processInstanceIds(Set<String> processInstanceIds)
Only select historic process instances whose id is in the given set of ids.HistoricProcessInstanceQuery
processInstanceName(String name)
Only select process instances with the given name.HistoricProcessInstanceQuery
processInstanceNameLike(String nameLike)
Only select process instances with a name like the given value.HistoricProcessInstanceQuery
processInstanceNameLikeIgnoreCase(String nameLikeIgnoreCase)
Only select process instances with a name like the given value, ignoring upper/lower case.HistoricProcessInstanceQuery
processInstanceReferenceId(String referenceId)
Only select process instances with the given reference identifier.HistoricProcessInstanceQuery
processInstanceReferenceType(String referenceType)
Only select process instances with the given reference type.HistoricProcessInstanceQuery
processInstanceTenantId(String tenantId)
Only select process instances that have the given tenant id.HistoricProcessInstanceQuery
processInstanceTenantIdLike(String tenantIdLike)
Only select process instances with a tenant id like the given one.HistoricProcessInstanceQuery
processInstanceWithoutTenantId()
Only select process instances that do not have a tenant id.void
setSafeInvolvedGroups(List<List<String>> safeInvolvedGroups)
HistoricProcessInstanceQuery
startedAfter(Date startedAfter)
Only select historic process instances that were started after the given date.HistoricProcessInstanceQuery
startedBefore(Date startedBefore)
Only select historic process instances that were started before the given date.HistoricProcessInstanceQuery
startedBy(String startedBy)
Only select historic process instance that are started by the given user.HistoricProcessInstanceQuery
superProcessInstanceId(String superProcessInstanceId)
Only select historic process instances started by the given process instance.HistoricProcessInstanceQuery
unfinished()
Only select historic process instance that are not yet finished.HistoricProcessInstanceQuery
variableExists(String name)
Only select process instances which have a global variable with the given name.HistoricProcessInstanceQuery
variableNotExists(String name)
Only select process instances which does not have a global variable with the given name.HistoricProcessInstanceQuery
variableValueEquals(Object variableValue)
Only select process instances which had at least one global variable with the given value when they ended.HistoricProcessInstanceQuery
variableValueEquals(String variableName, Object variableValue)
Only select process instances which had a global variable with the given value when they ended.HistoricProcessInstanceQuery
variableValueEqualsIgnoreCase(String name, String value)
Only select historic process instances which have a global string variable with the given value, case insensitive.HistoricProcessInstanceQuery
variableValueGreaterThan(String name, Object value)
Only select process instances which had a global variable value greater than the passed value when they ended.HistoricProcessInstanceQuery
variableValueGreaterThanOrEqual(String name, Object value)
Only select process instances which had a global variable value greater than or equal to the passed value when they ended.HistoricProcessInstanceQuery
variableValueLessThan(String name, Object value)
Only select process instances which had a global variable value less than the passed value when the ended.HistoricProcessInstanceQuery
variableValueLessThanOrEqual(String name, Object value)
Only select process instances which has a global variable value less than or equal to the passed value when they ended.HistoricProcessInstanceQuery
variableValueLike(String name, String value)
Only select process instances which had a global variable value like the given value when they ended.HistoricProcessInstanceQuery
variableValueLikeIgnoreCase(String name, String value)
Only select process instances which had a global variable value like (case insensitive) the given value when they ended.HistoricProcessInstanceQuery
variableValueNotEquals(String variableName, Object variableValue)
Only select process instances which had a global variable with the given name, but with a different value than the passed value when they ended.HistoricProcessInstanceQuery
variableValueNotEqualsIgnoreCase(String name, String value)
Only select historic process instances which have a global string variable not matching the given value, case insensitive.HistoricProcessInstanceQuery
withJobException()
Only select process instances that failed due to an exception happening during a job execution.HistoricProcessInstanceQuery
withLocalizationFallback()
Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.HistoricProcessInstanceQuery
withoutProcessInstanceCallbackId()
Only select process instances that do not have a callback 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 Detail
-
processEngineConfiguration
protected org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration
-
processInstanceId
protected String processInstanceId
-
processDefinitionId
protected String processDefinitionId
-
businessKey
protected String businessKey
-
businessKeyLike
protected String businessKeyLike
-
businessStatus
protected String businessStatus
-
businessStatusLike
protected String businessStatusLike
-
deploymentId
protected String deploymentId
-
finished
protected boolean finished
-
unfinished
protected boolean unfinished
-
deleted
protected boolean deleted
-
notDeleted
protected boolean notDeleted
-
startedBy
protected String startedBy
-
superProcessInstanceId
protected String superProcessInstanceId
-
excludeSubprocesses
protected boolean excludeSubprocesses
-
startedBefore
protected Date startedBefore
-
startedAfter
protected Date startedAfter
-
finishedBefore
protected Date finishedBefore
-
finishedAfter
protected Date finishedAfter
-
processDefinitionKey
protected String processDefinitionKey
-
processDefinitionCategory
protected String processDefinitionCategory
-
processDefinitionName
protected String processDefinitionName
-
processDefinitionVersion
protected Integer processDefinitionVersion
-
activeActivityId
protected String activeActivityId
-
involvedUser
protected String involvedUser
-
involvedUserIdentityLink
protected IdentityLinkQueryObject involvedUserIdentityLink
-
involvedGroupIdentityLink
protected IdentityLinkQueryObject involvedGroupIdentityLink
-
includeProcessVariables
protected boolean includeProcessVariables
-
withJobException
protected boolean withJobException
-
tenantId
protected String tenantId
-
tenantIdLike
protected String tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
name
protected String name
-
nameLike
protected String nameLike
-
nameLikeIgnoreCase
protected String nameLikeIgnoreCase
-
callbackId
protected String callbackId
-
callbackType
protected String callbackType
-
withoutCallbackId
protected boolean withoutCallbackId
-
referenceId
protected String referenceId
-
referenceType
protected String referenceType
-
locale
protected String locale
-
withLocalizationFallback
protected boolean withLocalizationFallback
-
orQueryObjects
protected List<HistoricProcessInstanceQueryImpl> orQueryObjects
-
currentOrQueryObject
protected HistoricProcessInstanceQueryImpl currentOrQueryObject
-
inOrStatement
protected boolean inOrStatement
-
-
Constructor Detail
-
HistoricProcessInstanceQueryImpl
public HistoricProcessInstanceQueryImpl()
-
HistoricProcessInstanceQueryImpl
public HistoricProcessInstanceQueryImpl(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
-
HistoricProcessInstanceQueryImpl
public HistoricProcessInstanceQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor, org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
-
-
Method Detail
-
processInstanceId
public HistoricProcessInstanceQueryImpl processInstanceId(String processInstanceId)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances with the given process instance.ProcessInstance
ids andHistoricProcessInstance
ids match.- Specified by:
processInstanceId
in interfaceHistoricProcessInstanceQuery
-
processInstanceIds
public HistoricProcessInstanceQuery processInstanceIds(Set<String> processInstanceIds)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances whose id is in the given set of ids.ProcessInstance
ids andHistoricProcessInstance
ids match.- Specified by:
processInstanceIds
in interfaceHistoricProcessInstanceQuery
-
processDefinitionId
public HistoricProcessInstanceQueryImpl processDefinitionId(String processDefinitionId)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances for the given process definition- Specified by:
processDefinitionId
in interfaceHistoricProcessInstanceQuery
-
processDefinitionKey
public HistoricProcessInstanceQuery processDefinitionKey(String processDefinitionKey)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances that are defined by a process definition with the given key.- Specified by:
processDefinitionKey
in interfaceHistoricProcessInstanceQuery
-
processDefinitionKeyIn
public HistoricProcessInstanceQuery processDefinitionKeyIn(List<String> processDefinitionKeys)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances that are defined by a process definition with one of the given process definition keys.- Specified by:
processDefinitionKeyIn
in interfaceHistoricProcessInstanceQuery
-
processDefinitionCategory
public HistoricProcessInstanceQuery processDefinitionCategory(String processDefinitionCategory)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances whose process definition category is processDefinitionCategory.- Specified by:
processDefinitionCategory
in interfaceHistoricProcessInstanceQuery
-
processDefinitionName
public HistoricProcessInstanceQuery processDefinitionName(String processDefinitionName)
Description copied from interface:HistoricProcessInstanceQuery
Select process historic instances whose process definition name is processDefinitionName- Specified by:
processDefinitionName
in interfaceHistoricProcessInstanceQuery
-
processDefinitionVersion
public HistoricProcessInstanceQuery processDefinitionVersion(Integer processDefinitionVersion)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances with a certain process definition version. Particularly useful when used in combination withHistoricProcessInstanceQuery.processDefinitionKey(String)
- Specified by:
processDefinitionVersion
in interfaceHistoricProcessInstanceQuery
-
processInstanceBusinessKey
public HistoricProcessInstanceQuery processInstanceBusinessKey(String businessKey)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances with the given business key- Specified by:
processInstanceBusinessKey
in interfaceHistoricProcessInstanceQuery
-
processInstanceBusinessKeyLike
public HistoricProcessInstanceQuery processInstanceBusinessKeyLike(String businessKeyLike)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances with a business key like the given value.- Specified by:
processInstanceBusinessKeyLike
in interfaceHistoricProcessInstanceQuery
-
processInstanceBusinessStatus
public HistoricProcessInstanceQuery processInstanceBusinessStatus(String businessStatus)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances with the given business status- Specified by:
processInstanceBusinessStatus
in interfaceHistoricProcessInstanceQuery
-
processInstanceBusinessStatusLike
public HistoricProcessInstanceQuery processInstanceBusinessStatusLike(String businessStatusLike)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances with a business status like the given value.- Specified by:
processInstanceBusinessStatusLike
in interfaceHistoricProcessInstanceQuery
-
deploymentId
public HistoricProcessInstanceQuery deploymentId(String deploymentId)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances that are defined by a process definition with the given deployment identifier.- Specified by:
deploymentId
in interfaceHistoricProcessInstanceQuery
-
deploymentIdIn
public HistoricProcessInstanceQuery deploymentIdIn(List<String> deploymentIds)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances that are defined by a process definition with one of the given deployment identifiers.- Specified by:
deploymentIdIn
in interfaceHistoricProcessInstanceQuery
-
finished
public HistoricProcessInstanceQuery finished()
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances that are completely finished.- Specified by:
finished
in interfaceHistoricProcessInstanceQuery
-
unfinished
public HistoricProcessInstanceQuery unfinished()
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instance that are not yet finished.- Specified by:
unfinished
in interfaceHistoricProcessInstanceQuery
-
deleted
public HistoricProcessInstanceQuery deleted()
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances that are deleted.- Specified by:
deleted
in interfaceHistoricProcessInstanceQuery
-
notDeleted
public HistoricProcessInstanceQuery notDeleted()
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instance that are not deleted.- Specified by:
notDeleted
in interfaceHistoricProcessInstanceQuery
-
startedBy
public HistoricProcessInstanceQuery startedBy(String startedBy)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instance that are started by the given user.- Specified by:
startedBy
in interfaceHistoricProcessInstanceQuery
-
processDefinitionKeyNotIn
public HistoricProcessInstanceQuery processDefinitionKeyNotIn(List<String> processDefinitionKeys)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances that don't have a process-definition of which the key is present in the given list- Specified by:
processDefinitionKeyNotIn
in interfaceHistoricProcessInstanceQuery
-
startedAfter
public HistoricProcessInstanceQuery startedAfter(Date startedAfter)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances that were started after the given date.- Specified by:
startedAfter
in interfaceHistoricProcessInstanceQuery
-
startedBefore
public HistoricProcessInstanceQuery startedBefore(Date startedBefore)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances that were started before the given date.- Specified by:
startedBefore
in interfaceHistoricProcessInstanceQuery
-
finishedAfter
public HistoricProcessInstanceQuery finishedAfter(Date finishedAfter)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances that were finished after the given date.- Specified by:
finishedAfter
in interfaceHistoricProcessInstanceQuery
-
finishedBefore
public HistoricProcessInstanceQuery finishedBefore(Date finishedBefore)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances that were finished before the given date.- Specified by:
finishedBefore
in interfaceHistoricProcessInstanceQuery
-
superProcessInstanceId
public HistoricProcessInstanceQuery superProcessInstanceId(String superProcessInstanceId)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances started by the given process instance.ProcessInstance
ids andHistoricProcessInstance
ids match.- Specified by:
superProcessInstanceId
in interfaceHistoricProcessInstanceQuery
-
excludeSubprocesses
public HistoricProcessInstanceQuery excludeSubprocesses(boolean excludeSubprocesses)
Description copied from interface:HistoricProcessInstanceQuery
Exclude sub processes from the query result;- Specified by:
excludeSubprocesses
in interfaceHistoricProcessInstanceQuery
-
activeActivityId
public HistoricProcessInstanceQuery activeActivityId(String activityId)
Description copied from interface:HistoricProcessInstanceQuery
Select the historic process instances which have an active activity instance like the provided id.- Specified by:
activeActivityId
in interfaceHistoricProcessInstanceQuery
-
activeActivityIds
public HistoricProcessInstanceQuery activeActivityIds(Set<String> activityIds)
Description copied from interface:HistoricProcessInstanceQuery
Select the historic process instances which have an active activity instance like the provided ids.- Specified by:
activeActivityIds
in interfaceHistoricProcessInstanceQuery
-
involvedUser
public HistoricProcessInstanceQuery involvedUser(String involvedUser)
Description copied from interface:HistoricProcessInstanceQuery
Only select the historic process instances with which the user with the given id is involved.- Specified by:
involvedUser
in interfaceHistoricProcessInstanceQuery
-
involvedUser
public HistoricProcessInstanceQuery involvedUser(String userId, String identityLinkType)
Description copied from interface:HistoricProcessInstanceQuery
Only select the historic process instances with which the user with the given id and link type is involved.- Specified by:
involvedUser
in interfaceHistoricProcessInstanceQuery
-
involvedGroup
public HistoricProcessInstanceQuery involvedGroup(String groupId, String identityLinkType)
Description copied from interface:HistoricProcessInstanceQuery
Only select the historic process instances with which the group with the given id and link type is involved.- Specified by:
involvedGroup
in interfaceHistoricProcessInstanceQuery
-
involvedGroups
public HistoricProcessInstanceQuery involvedGroups(Set<String> involvedGroups)
Description copied from interface:HistoricProcessInstanceQuery
Only select the historic process instances with which the group with the given ids are involved.- Specified by:
involvedGroups
in interfaceHistoricProcessInstanceQuery
-
includeProcessVariables
public HistoricProcessInstanceQuery includeProcessVariables()
Description copied from interface:HistoricProcessInstanceQuery
Include process variables in the process query result- Specified by:
includeProcessVariables
in interfaceHistoricProcessInstanceQuery
-
limitProcessInstanceVariables
public HistoricProcessInstanceQuery limitProcessInstanceVariables(Integer processInstanceVariablesLimit)
Description copied from interface:HistoricProcessInstanceQuery
Limit process instance variables- Specified by:
limitProcessInstanceVariables
in interfaceHistoricProcessInstanceQuery
-
withJobException
public HistoricProcessInstanceQuery withJobException()
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances that failed due to an exception happening during a job execution.- Specified by:
withJobException
in interfaceHistoricProcessInstanceQuery
-
processInstanceTenantId
public HistoricProcessInstanceQuery processInstanceTenantId(String tenantId)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances that have the given tenant id.- Specified by:
processInstanceTenantId
in interfaceHistoricProcessInstanceQuery
-
processInstanceTenantIdLike
public HistoricProcessInstanceQuery processInstanceTenantIdLike(String tenantIdLike)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances with a tenant id like the given one.- Specified by:
processInstanceTenantIdLike
in interfaceHistoricProcessInstanceQuery
-
processInstanceWithoutTenantId
public HistoricProcessInstanceQuery processInstanceWithoutTenantId()
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances that do not have a tenant id.- Specified by:
processInstanceWithoutTenantId
in interfaceHistoricProcessInstanceQuery
-
processInstanceName
public HistoricProcessInstanceQuery processInstanceName(String name)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances with the given name.- Specified by:
processInstanceName
in interfaceHistoricProcessInstanceQuery
-
processInstanceNameLike
public HistoricProcessInstanceQuery processInstanceNameLike(String nameLike)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances with a name like the given value.- Specified by:
processInstanceNameLike
in interfaceHistoricProcessInstanceQuery
-
processInstanceNameLikeIgnoreCase
public HistoricProcessInstanceQuery processInstanceNameLikeIgnoreCase(String nameLikeIgnoreCase)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances with a name like the given value, ignoring upper/lower case.- Specified by:
processInstanceNameLikeIgnoreCase
in interfaceHistoricProcessInstanceQuery
-
processInstanceCallbackId
public HistoricProcessInstanceQuery processInstanceCallbackId(String callbackId)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances with the given callback identifier.- Specified by:
processInstanceCallbackId
in interfaceHistoricProcessInstanceQuery
-
processInstanceCallbackType
public HistoricProcessInstanceQuery processInstanceCallbackType(String callbackType)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances with the given callback type.- Specified by:
processInstanceCallbackType
in interfaceHistoricProcessInstanceQuery
-
withoutProcessInstanceCallbackId
public HistoricProcessInstanceQuery withoutProcessInstanceCallbackId()
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances that do not have a callback identifier.- Specified by:
withoutProcessInstanceCallbackId
in interfaceHistoricProcessInstanceQuery
-
processInstanceReferenceId
public HistoricProcessInstanceQuery processInstanceReferenceId(String referenceId)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances with the given reference identifier.- Specified by:
processInstanceReferenceId
in interfaceHistoricProcessInstanceQuery
-
processInstanceReferenceType
public HistoricProcessInstanceQuery processInstanceReferenceType(String referenceType)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances with the given reference type.- Specified by:
processInstanceReferenceType
in interfaceHistoricProcessInstanceQuery
-
variableValueEquals
public HistoricProcessInstanceQuery variableValueEquals(String variableName, Object variableValue)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which had a global variable with the given value when they ended. The type only applies to already ended process instances, otherwise use aProcessInstanceQuery
instead! A variable type is determined based on the value, using types configured inProcessEngineConfigurationImpl.getVariableTypes()
. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueEquals
in interfaceHistoricProcessInstanceQuery
- Overrides:
variableValueEquals
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
- Parameters:
variableName
- of the variable, cannot be null.
-
localVariableValueEquals
public HistoricProcessInstanceQuery localVariableValueEquals(String variableName, Object variableValue)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which had a local variable with the given value when they ended. The type only applies to already ended process instances, otherwise use aProcessInstanceQuery
instead! A variable type is determined based on the value, using types configured inProcessEngineConfigurationImpl.getVariableTypes()
. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
localVariableValueEquals
in interfaceHistoricProcessInstanceQuery
- Parameters:
variableName
- of the variable, cannot be null.
-
variableValueNotEquals
public HistoricProcessInstanceQuery variableValueNotEquals(String variableName, Object variableValue)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which had a global variable with the given name, but with a different value than the passed value when they ended. Only select process instances which have a variable value greater than the passed value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueNotEquals
in interfaceHistoricProcessInstanceQuery
- Overrides:
variableValueNotEquals
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
- Parameters:
variableName
- of the variable, cannot be null.
-
localVariableValueNotEquals
public HistoricProcessInstanceQuery localVariableValueNotEquals(String variableName, Object variableValue)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which had a local variable with the given name, but with a different value than the passed value when they ended. Only select process instances which have a variable value greater than the passed value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
localVariableValueNotEquals
in interfaceHistoricProcessInstanceQuery
- Parameters:
variableName
- of the variable, cannot be null.
-
variableValueEquals
public HistoricProcessInstanceQuery variableValueEquals(Object variableValue)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which had at least one global variable with the given value when they ended. The type only applies to already ended process instances, otherwise use aProcessInstanceQuery
instead! A variable type is determined based on the value, using types configured inProcessEngineConfigurationImpl.getVariableTypes()
. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueEquals
in interfaceHistoricProcessInstanceQuery
- Overrides:
variableValueEquals
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
localVariableValueEquals
public HistoricProcessInstanceQuery localVariableValueEquals(Object variableValue)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which had at least one local variable with the given value when they ended. The type only applies to already ended process instances, otherwise use aProcessInstanceQuery
instead! A variable type is determined based on the value, using types configured inProcessEngineConfigurationImpl.getVariableTypes()
. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
localVariableValueEquals
in interfaceHistoricProcessInstanceQuery
-
variableValueEqualsIgnoreCase
public HistoricProcessInstanceQuery variableValueEqualsIgnoreCase(String name, String value)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances which have a global string variable with the given value, case insensitive.- Specified by:
variableValueEqualsIgnoreCase
in interfaceHistoricProcessInstanceQuery
- Overrides:
variableValueEqualsIgnoreCase
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
- Parameters:
name
- name of the variable, cannot be null.value
- value of the variable, cannot be null.
-
localVariableValueEqualsIgnoreCase
public HistoricProcessInstanceQuery localVariableValueEqualsIgnoreCase(String name, String value)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances which have a local string variable with the given value, case insensitive.- Specified by:
localVariableValueEqualsIgnoreCase
in interfaceHistoricProcessInstanceQuery
- Parameters:
name
- name of the variable, cannot be null.value
- value of the variable, cannot be null.
-
variableValueNotEqualsIgnoreCase
public HistoricProcessInstanceQuery variableValueNotEqualsIgnoreCase(String name, String value)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances which have a global string variable not matching the given value, case insensitive.- Specified by:
variableValueNotEqualsIgnoreCase
in interfaceHistoricProcessInstanceQuery
- Overrides:
variableValueNotEqualsIgnoreCase
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
- Parameters:
name
- name of the variable, cannot be null.value
- value of the variable, cannot be null.
-
localVariableValueNotEqualsIgnoreCase
public HistoricProcessInstanceQuery localVariableValueNotEqualsIgnoreCase(String name, String value)
Description copied from interface:HistoricProcessInstanceQuery
Only select historic process instances which have a local string variable not matching the given value, case insensitive.- Specified by:
localVariableValueNotEqualsIgnoreCase
in interfaceHistoricProcessInstanceQuery
- Parameters:
name
- name of the variable, cannot be null.value
- value of the variable, cannot be null.
-
variableValueLikeIgnoreCase
public HistoricProcessInstanceQuery variableValueLikeIgnoreCase(String name, String value)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which had a global variable value like (case insensitive) the given value when they ended. Only applies to already ended process instances, otherwise use aProcessInstanceQuery
instead! This can be used on string variables only.- Specified by:
variableValueLikeIgnoreCase
in interfaceHistoricProcessInstanceQuery
- Overrides:
variableValueLikeIgnoreCase
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
- 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%).
-
localVariableValueLikeIgnoreCase
public HistoricProcessInstanceQuery localVariableValueLikeIgnoreCase(String name, String value)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which had a local variable value like (case insensitive) the given value when they ended. Only applies to already ended process instances, otherwise use aProcessInstanceQuery
instead! This can be used on string variables only.- Specified by:
localVariableValueLikeIgnoreCase
in interfaceHistoricProcessInstanceQuery
- 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
public HistoricProcessInstanceQuery variableValueGreaterThan(String name, Object value)
Description copied from interface:HistoricProcessInstanceQuery
Only select process 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. Only select process instances which have a variable value greater than the passed value.- Specified by:
variableValueGreaterThan
in interfaceHistoricProcessInstanceQuery
- Overrides:
variableValueGreaterThan
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
- Parameters:
name
- cannot be null.value
- cannot be null.
-
localVariableValueGreaterThan
public HistoricProcessInstanceQuery localVariableValueGreaterThan(String name, Object value)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which had a local variable value greater than the passed value when they ended. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported. Only select process instances which have a variable value greater than the passed value.- Specified by:
localVariableValueGreaterThan
in interfaceHistoricProcessInstanceQuery
- Parameters:
name
- cannot be null.value
- cannot be null.
-
variableValueGreaterThanOrEqual
public HistoricProcessInstanceQuery variableValueGreaterThanOrEqual(String name, Object value)
Description copied from interface:HistoricProcessInstanceQuery
Only select process 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. Only applies to already ended process instances, otherwise use aProcessInstanceQuery
instead!- Specified by:
variableValueGreaterThanOrEqual
in interfaceHistoricProcessInstanceQuery
- Overrides:
variableValueGreaterThanOrEqual
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
- Parameters:
name
- cannot be null.value
- cannot be null.
-
localVariableValueGreaterThanOrEqual
public HistoricProcessInstanceQuery localVariableValueGreaterThanOrEqual(String name, Object value)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which had a local 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. Only applies to already ended process instances, otherwise use aProcessInstanceQuery
instead!- Specified by:
localVariableValueGreaterThanOrEqual
in interfaceHistoricProcessInstanceQuery
- Parameters:
name
- cannot be null.value
- cannot be null.
-
variableValueLessThan
public HistoricProcessInstanceQuery variableValueLessThan(String name, Object value)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which had a global variable value less than the passed value when the ended. Only applies to already ended process instances, otherwise use aProcessInstanceQuery
instead! Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueLessThan
in interfaceHistoricProcessInstanceQuery
- Overrides:
variableValueLessThan
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
- Parameters:
name
- cannot be null.value
- cannot be null.
-
localVariableValueLessThan
public HistoricProcessInstanceQuery localVariableValueLessThan(String name, Object value)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which had a local variable value less than the passed value when the ended. Only applies to already ended process instances, otherwise use aProcessInstanceQuery
instead! Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
localVariableValueLessThan
in interfaceHistoricProcessInstanceQuery
- Parameters:
name
- cannot be null.value
- cannot be null.
-
variableValueLessThanOrEqual
public HistoricProcessInstanceQuery variableValueLessThanOrEqual(String name, Object value)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which has a global variable value less than or equal to the passed value when they ended. Only applies to already ended process instances, otherwise use aProcessInstanceQuery
instead! Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueLessThanOrEqual
in interfaceHistoricProcessInstanceQuery
- Overrides:
variableValueLessThanOrEqual
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
- Parameters:
name
- cannot be null.value
- cannot be null.
-
localVariableValueLessThanOrEqual
public HistoricProcessInstanceQuery localVariableValueLessThanOrEqual(String name, Object value)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which has a local variable value less than or equal to the passed value when they ended. Only applies to already ended process instances, otherwise use aProcessInstanceQuery
instead! Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
localVariableValueLessThanOrEqual
in interfaceHistoricProcessInstanceQuery
- Parameters:
name
- cannot be null.value
- cannot be null.
-
variableValueLike
public HistoricProcessInstanceQuery variableValueLike(String name, String value)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which had a global variable value like the given value when they ended. Only applies to already ended process instances, otherwise use aProcessInstanceQuery
instead! This can be used on string variables only.- Specified by:
variableValueLike
in interfaceHistoricProcessInstanceQuery
- Overrides:
variableValueLike
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
- 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%).
-
localVariableValueLike
public HistoricProcessInstanceQuery localVariableValueLike(String name, String value)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which had a local variable value like the given value when they ended. Only applies to already ended process instances, otherwise use aProcessInstanceQuery
instead! This can be used on string variables only.- Specified by:
localVariableValueLike
in interfaceHistoricProcessInstanceQuery
- 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
public HistoricProcessInstanceQuery variableExists(String name)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which have a global variable with the given name.- Specified by:
variableExists
in interfaceHistoricProcessInstanceQuery
- Overrides:
variableExists
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
- Parameters:
name
- cannot be null.
-
localVariableExists
public HistoricProcessInstanceQuery localVariableExists(String name)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which have a local variable with the given name.- Specified by:
localVariableExists
in interfaceHistoricProcessInstanceQuery
- Parameters:
name
- cannot be null.
-
variableNotExists
public HistoricProcessInstanceQuery variableNotExists(String name)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which does not have a global variable with the given name.- Specified by:
variableNotExists
in interfaceHistoricProcessInstanceQuery
- Overrides:
variableNotExists
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
- Parameters:
name
- cannot be null.
-
localVariableNotExists
public HistoricProcessInstanceQuery localVariableNotExists(String name)
Description copied from interface:HistoricProcessInstanceQuery
Only select process instances which does not have a local variable with the given name.- Specified by:
localVariableNotExists
in interfaceHistoricProcessInstanceQuery
- Parameters:
name
- cannot be null.
-
locale
public HistoricProcessInstanceQuery locale(String locale)
Description copied from interface:HistoricProcessInstanceQuery
Localize historic process name and description to specified locale.- Specified by:
locale
in interfaceHistoricProcessInstanceQuery
-
withLocalizationFallback
public HistoricProcessInstanceQuery withLocalizationFallback()
Description copied from interface:HistoricProcessInstanceQuery
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 interfaceHistoricProcessInstanceQuery
-
or
public HistoricProcessInstanceQuery or()
Description copied from interface:HistoricProcessInstanceQuery
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 interfaceHistoricProcessInstanceQuery
-
endOr
public HistoricProcessInstanceQuery endOr()
Description copied from interface:HistoricProcessInstanceQuery
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 interfaceHistoricProcessInstanceQuery
-
orderByProcessInstanceBusinessKey
public HistoricProcessInstanceQuery orderByProcessInstanceBusinessKey()
Description copied from interface:HistoricProcessInstanceQuery
Order by the business key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceBusinessKey
in interfaceHistoricProcessInstanceQuery
-
orderByProcessInstanceDuration
public HistoricProcessInstanceQuery orderByProcessInstanceDuration()
Description copied from interface:HistoricProcessInstanceQuery
Order by the duration of the process instance (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceDuration
in interfaceHistoricProcessInstanceQuery
-
orderByProcessInstanceStartTime
public HistoricProcessInstanceQuery orderByProcessInstanceStartTime()
Description copied from interface:HistoricProcessInstanceQuery
Order by the start time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceStartTime
in interfaceHistoricProcessInstanceQuery
-
orderByProcessInstanceEndTime
public HistoricProcessInstanceQuery orderByProcessInstanceEndTime()
Description copied from interface:HistoricProcessInstanceQuery
Order by the end time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceEndTime
in interfaceHistoricProcessInstanceQuery
-
orderByProcessDefinitionId
public HistoricProcessInstanceQuery orderByProcessDefinitionId()
Description copied from interface:HistoricProcessInstanceQuery
Order by the process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionId
in interfaceHistoricProcessInstanceQuery
-
orderByProcessInstanceId
public HistoricProcessInstanceQuery orderByProcessInstanceId()
Description copied from interface:HistoricProcessInstanceQuery
Order by the process instance id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceId
in interfaceHistoricProcessInstanceQuery
-
orderByTenantId
public HistoricProcessInstanceQuery orderByTenantId()
Description copied from interface:HistoricProcessInstanceQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTenantId
in interfaceHistoricProcessInstanceQuery
-
executeCount
public long executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
- Specified by:
executeCount
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
executeList
public List<HistoricProcessInstance> executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
- Specified by:
executeList
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
addCachedVariableForQueryById
protected void addCachedVariableForQueryById(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, List<HistoricProcessInstance> results)
-
enhanceCachedValue
public void enhanceCachedValue(org.flowable.engine.impl.persistence.entity.HistoricProcessInstanceEntity processInstance)
- Specified by:
enhanceCachedValue
in interfaceorg.flowable.common.engine.api.query.CacheAwareQuery<org.flowable.engine.impl.persistence.entity.HistoricProcessInstanceEntity>
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
- Overrides:
ensureVariablesInitialized
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
delete
public void delete()
- Specified by:
delete
in interfaceorg.flowable.common.engine.api.query.DeleteQuery<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
deleteWithRelatedData
public void deleteWithRelatedData()
- Specified by:
deleteWithRelatedData
in interfaceorg.flowable.common.engine.api.query.DeleteQuery<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
deleteInParallelUsingBatch
public String deleteInParallelUsingBatch(int batchSize, String batchName)
- Specified by:
deleteInParallelUsingBatch
in interfaceorg.flowable.common.engine.api.query.BatchDeleteQuery<HistoricProcessInstanceQuery>
-
deleteSequentiallyUsingBatch
public String deleteSequentiallyUsingBatch(int batchSize, String batchName)
- Specified by:
deleteSequentiallyUsingBatch
in interfaceorg.flowable.common.engine.api.query.BatchDeleteQuery<HistoricProcessInstanceQuery>
-
getBusinessKey
public String getBusinessKey()
-
getBusinessKeyLike
public String getBusinessKeyLike()
-
getBusinessStatus
public String getBusinessStatus()
-
getBusinessStatusLike
public String getBusinessStatusLike()
-
isOpen
public boolean isOpen()
-
getProcessDefinitionId
public String getProcessDefinitionId()
-
getProcessDefinitionKey
public String getProcessDefinitionKey()
-
getProcessDefinitionIdLike
public String getProcessDefinitionIdLike()
-
getProcessDefinitionName
public String getProcessDefinitionName()
-
getProcessDefinitionCategory
public String getProcessDefinitionCategory()
-
getProcessDefinitionVersion
public Integer getProcessDefinitionVersion()
-
getProcessInstanceId
public String getProcessInstanceId()
-
getId
public String getId()
- Specified by:
getId
in interfaceorg.flowable.common.engine.api.query.CacheAwareQuery<org.flowable.engine.impl.persistence.entity.HistoricProcessInstanceEntity>
-
getStartedBy
public String getStartedBy()
-
getSuperProcessInstanceId
public String getSuperProcessInstanceId()
-
isExcludeSubprocesses
public boolean isExcludeSubprocesses()
-
getStartedAfter
public Date getStartedAfter()
-
getStartedBefore
public Date getStartedBefore()
-
getFinishedAfter
public Date getFinishedAfter()
-
getFinishedBefore
public Date getFinishedBefore()
-
getActiveActivityId
public String getActiveActivityId()
-
getInvolvedUser
public String getInvolvedUser()
-
getName
public String getName()
-
getNameLike
public String getNameLike()
-
getSerialversionuid
public static long getSerialversionuid()
-
getDeploymentId
public String getDeploymentId()
-
isFinished
public boolean isFinished()
-
isUnfinished
public boolean isUnfinished()
-
isDeleted
public boolean isDeleted()
-
isNotDeleted
public boolean isNotDeleted()
-
isIncludeProcessVariables
public boolean isIncludeProcessVariables()
-
isWithException
public boolean isWithException()
-
getTenantId
public String getTenantId()
-
getTenantIdLike
public String getTenantIdLike()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
getNameLikeIgnoreCase
public String getNameLikeIgnoreCase()
-
getCallbackId
public String getCallbackId()
-
getCallbackType
public String getCallbackType()
-
isWithoutCallbackId
public boolean isWithoutCallbackId()
-
getReferenceId
public String getReferenceId()
-
getReferenceType
public String getReferenceType()
-
getOrQueryObjects
public List<HistoricProcessInstanceQueryImpl> getOrQueryObjects()
-
getInvolvedUserIdentityLink
public IdentityLinkQueryObject getInvolvedUserIdentityLink()
-
getInvolvedGroupIdentityLink
public IdentityLinkQueryObject getInvolvedGroupIdentityLink()
-
isWithJobException
public boolean isWithJobException()
-
getLocale
public String getLocale()
-
isWithLocalizationFallback
public boolean isWithLocalizationFallback()
-
isNeedsProcessDefinitionOuterJoin
public boolean isNeedsProcessDefinitionOuterJoin()
-
-