Package org.activiti.engine.impl
Class HistoricProcessInstanceQueryImpl
- java.lang.Object
-
- org.activiti.engine.impl.db.ListQueryParameterObject
-
- org.activiti.engine.impl.AbstractQuery<T,U>
-
- org.activiti.engine.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
- org.activiti.engine.impl.HistoricProcessInstanceQueryImpl
-
- All Implemented Interfaces:
Serializable,HistoricProcessInstanceQuery,Command<Object>,Query<HistoricProcessInstanceQuery,HistoricProcessInstance>
public class HistoricProcessInstanceQueryImpl extends AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance> implements HistoricProcessInstanceQuery
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.activiti.engine.impl.AbstractQuery
AbstractQuery.NullHandlingOnOrder
-
-
Field Summary
-
Fields inherited from class org.activiti.engine.impl.AbstractVariableQueryImpl
queryVariableValues
-
Fields inherited from class org.activiti.engine.impl.AbstractQuery
commandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
-
Fields inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
firstResult, maxResults, parameter
-
-
Constructor Summary
Constructors Constructor Description HistoricProcessInstanceQueryImpl()HistoricProcessInstanceQueryImpl(CommandContext commandContext)HistoricProcessInstanceQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckQueryOk()HistoricProcessInstanceQuerydeleted()Only select historic process instances that are deleted.HistoricProcessInstanceQuerydeploymentId(String deploymentId)Only select historic process instances that are defined by a process definition with the given deployment identifier.HistoricProcessInstanceQuerydeploymentIdIn(List<String> deploymentIds)Only select historic process instances that are defined by a process definition with one of the given deployment identifiers.HistoricProcessInstanceQueryendOr()End an OR statement.protected voidensureVariablesInitialized()HistoricProcessInstanceQueryexcludeSubprocesses(boolean excludeSubprocesses)Exclude sub processes from the query result;longexecuteCount(CommandContext commandContext)List<HistoricProcessInstance>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.HistoricProcessInstanceQueryfinished()Only select historic process instances that are completely finished.HistoricProcessInstanceQueryfinishedAfter(Date finishedAfter)Only select historic process instances that were started after the given date.HistoricProcessInstanceQueryfinishedBefore(Date finishedBefore)Only select historic process instances that were started before the given date.StringgetBusinessKey()StringgetDeploymentId()List<String>getDeploymentIds()DategetFinishedAfter()DategetFinishedBefore()StringgetInvolvedUser()StringgetMssqlOrDB2OrderBy()StringgetName()StringgetNameLike()StringgetNameLikeIgnoreCase()List<HistoricProcessInstanceQueryImpl>getOrQueryObjects()StringgetProcessDefinitionCategory()StringgetProcessDefinitionId()StringgetProcessDefinitionIdLike()StringgetProcessDefinitionKey()List<String>getProcessDefinitionKeyIn()StringgetProcessDefinitionName()IntegergetProcessDefinitionVersion()StringgetProcessInstanceId()Set<String>getProcessInstanceIds()IntegergetProcessInstanceVariablesLimit()List<String>getProcessKeyNotIn()static longgetSerialversionuid()DategetStartedAfter()DategetStartedBefore()StringgetStartedBy()StringgetSuperProcessInstanceId()StringgetTenantId()StringgetTenantIdLike()HistoricProcessInstanceQueryincludeProcessVariables()Include process variables in the process query resultHistoricProcessInstanceQueryinvolvedUser(String involvedUser)Only select the historic process instances with which the user with the given id is involved.booleanisDeleted()booleanisExcludeSubprocesses()booleanisFinished()booleanisIncludeProcessVariables()booleanisNotDeleted()booleanisOpen()booleanisUnfinished()booleanisWithException()booleanisWithoutTenantId()HistoricProcessInstanceQuerylimitProcessInstanceVariables(Integer processInstanceVariablesLimit)Limit process instance variablesHistoricProcessInstanceQuerylocale(String locale)Localize historic process name and description to specified locale.protected voidlocalize(HistoricProcessInstance processInstance, CommandContext commandContext)HistoricProcessInstanceQuerynotDeleted()Only select historic process instance that are not deleted.HistoricProcessInstanceQueryor()Begin an OR statement.HistoricProcessInstanceQueryorderByProcessDefinitionId()Order by the process definition id (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByProcessInstanceBusinessKey()Order by the business key (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByProcessInstanceDuration()Order by the duration of the process instance (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByProcessInstanceEndTime()Order by the end time (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByProcessInstanceId()Order by the process instance id (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByProcessInstanceStartTime()Order by the start time (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryprocessDefinitionCategory(String processDefinitionCategory)Only select historic process instances whose process definition category is processDefinitionCategory.HistoricProcessInstanceQueryImplprocessDefinitionId(String processDefinitionId)Only select historic process instances for the given process definitionHistoricProcessInstanceQueryprocessDefinitionKey(String processDefinitionKey)Only select historic process instances that are defined by a process definition with the given key.HistoricProcessInstanceQueryprocessDefinitionKeyIn(List<String> processDefinitionKeys)Only select historic process instances that are defined by a process definition with one of the given process definition keys.HistoricProcessInstanceQueryprocessDefinitionKeyNotIn(List<String> processDefinitionKeys)Only select historic process instances that don't have a process-definition of which the key is present in the given listHistoricProcessInstanceQueryprocessDefinitionName(String processDefinitionName)Select process historic instances whose process definition name is processDefinitionNameHistoricProcessInstanceQueryprocessDefinitionVersion(Integer processDefinitionVersion)Only select historic process instances with a certain process definition version.HistoricProcessInstanceQueryprocessInstanceBusinessKey(String businessKey)Only select historic process instances with the given business keyHistoricProcessInstanceQueryImplprocessInstanceId(String processInstanceId)Only select historic process instances with the given process instance.HistoricProcessInstanceQueryprocessInstanceIds(Set<String> processInstanceIds)Only select historic process instances whose id is in the given set of ids.HistoricProcessInstanceQueryprocessInstanceName(String name)Only select process instances with the given name.HistoricProcessInstanceQueryprocessInstanceNameLike(String nameLike)Only select process instances with a name like the given value.HistoricProcessInstanceQueryprocessInstanceNameLikeIgnoreCase(String nameLikeIgnoreCase)Only select process instances with a name like the given value, ignoring upper/lower case.HistoricProcessInstanceQueryprocessInstanceTenantId(String tenantId)Only select process instances that have the given tenant id.HistoricProcessInstanceQueryprocessInstanceTenantIdLike(String tenantIdLike)Only select process instances with a tenant id like the given one.HistoricProcessInstanceQueryprocessInstanceWithoutTenantId()Only select process instances that do not have a tenant id.HistoricProcessInstanceQuerystartedAfter(Date startedAfter)Only select historic process instances that were started after the given date.HistoricProcessInstanceQuerystartedBefore(Date startedBefore)Only select historic process instances that were started before the given date.HistoricProcessInstanceQuerystartedBy(String startedBy)Only select historic process instance that are started by the given user.HistoricProcessInstanceQuerysuperProcessInstanceId(String superProcessInstanceId)Only select historic process instances started by the given process instance.HistoricProcessInstanceQueryunfinished()Only select historic process instance that are not yet finished.HistoricProcessInstanceQueryvariableValueEquals(Object variableValue)Only select process instances which had at least one global variable with the given value when they ended.HistoricProcessInstanceQueryvariableValueEquals(String variableName, Object variableValue)Only select process instances which had a global variable with the given value when they ended.HistoricProcessInstanceQueryvariableValueEqualsIgnoreCase(String name, String value)Only select historic process instances which have a local string variable with the given value, case insensitive.HistoricProcessInstanceQueryvariableValueGreaterThan(String name, Object value)Only select process instances which had a global variable value greater than the passed value when they ended.HistoricProcessInstanceQueryvariableValueGreaterThanOrEqual(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.HistoricProcessInstanceQueryvariableValueLessThan(String name, Object value)Only select process instances which had a global variable value less than the passed value when the ended.HistoricProcessInstanceQueryvariableValueLessThanOrEqual(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.HistoricProcessInstanceQueryvariableValueLike(String name, String value)Only select process instances which had global variable value like the given value when they ended.HistoricProcessInstanceQueryvariableValueLikeIgnoreCase(String name, String value)Only select process instances which had global variable value like (case insensitive) the given value when they ended.HistoricProcessInstanceQueryvariableValueNotEquals(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.HistoricProcessInstanceQueryvariableValueNotEqualsIgnoreCase(String name, String value)HistoricProcessInstanceQuerywithJobException()Only select process instances that failed due to an exception happening during a job execution.HistoricProcessInstanceQuerywithLocalizationFallback()Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.-
Methods inherited from class org.activiti.engine.impl.AbstractVariableQueryImpl
addVariable, getQueryVariableValues, hasLocalQueryVariableValue, hasNonLocalQueryVariableValue, isBoolean, variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEqualsIgnoreCase
-
Methods inherited from class org.activiti.engine.impl.AbstractQuery
addOrder, asc, count, desc, direction, execute, executeSingleResult, getDatabaseType, getOrderBy, getOrderByColumns, list, listPage, orderBy, orderBy, setCommandExecutor, setDatabaseType, singleResult
-
Methods inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameter
-
-
-
-
Field Detail
-
processInstanceId
protected String processInstanceId
-
processDefinitionId
protected String processDefinitionId
-
businessKey
protected String businessKey
-
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
-
involvedUser
protected String involvedUser
-
includeProcessVariables
protected boolean includeProcessVariables
-
processInstanceVariablesLimit
protected Integer processInstanceVariablesLimit
-
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
-
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(CommandContext commandContext)
-
HistoricProcessInstanceQueryImpl
public HistoricProcessInstanceQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
processInstanceId
public HistoricProcessInstanceQueryImpl processInstanceId(String processInstanceId)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances with the given process instance. {@link ProcessInstance) ids and {@link HistoricProcessInstance} ids match.- Specified by:
processInstanceIdin interfaceHistoricProcessInstanceQuery
-
processInstanceIds
public HistoricProcessInstanceQuery processInstanceIds(Set<String> processInstanceIds)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances whose id is in the given set of ids. {@link ProcessInstance) ids and {@link HistoricProcessInstance} ids match.- Specified by:
processInstanceIdsin interfaceHistoricProcessInstanceQuery
-
processDefinitionId
public HistoricProcessInstanceQueryImpl processDefinitionId(String processDefinitionId)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances for the given process definition- Specified by:
processDefinitionIdin interfaceHistoricProcessInstanceQuery
-
processDefinitionKey
public HistoricProcessInstanceQuery processDefinitionKey(String processDefinitionKey)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are defined by a process definition with the given key.- Specified by:
processDefinitionKeyin interfaceHistoricProcessInstanceQuery
-
processDefinitionKeyIn
public HistoricProcessInstanceQuery processDefinitionKeyIn(List<String> processDefinitionKeys)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are defined by a process definition with one of the given process definition keys.- Specified by:
processDefinitionKeyInin interfaceHistoricProcessInstanceQuery
-
processDefinitionCategory
public HistoricProcessInstanceQuery processDefinitionCategory(String processDefinitionCategory)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances whose process definition category is processDefinitionCategory.- Specified by:
processDefinitionCategoryin interfaceHistoricProcessInstanceQuery
-
processDefinitionName
public HistoricProcessInstanceQuery processDefinitionName(String processDefinitionName)
Description copied from interface:HistoricProcessInstanceQuerySelect process historic instances whose process definition name is processDefinitionName- Specified by:
processDefinitionNamein interfaceHistoricProcessInstanceQuery
-
processDefinitionVersion
public HistoricProcessInstanceQuery processDefinitionVersion(Integer processDefinitionVersion)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances with a certain process definition version. Particulary useful when used in combination withHistoricProcessInstanceQuery.processDefinitionKey(String)- Specified by:
processDefinitionVersionin interfaceHistoricProcessInstanceQuery
-
processInstanceBusinessKey
public HistoricProcessInstanceQuery processInstanceBusinessKey(String businessKey)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances with the given business key- Specified by:
processInstanceBusinessKeyin interfaceHistoricProcessInstanceQuery
-
deploymentId
public HistoricProcessInstanceQuery deploymentId(String deploymentId)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are defined by a process definition with the given deployment identifier.- Specified by:
deploymentIdin interfaceHistoricProcessInstanceQuery
-
deploymentIdIn
public HistoricProcessInstanceQuery deploymentIdIn(List<String> deploymentIds)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are defined by a process definition with one of the given deployment identifiers.- Specified by:
deploymentIdInin interfaceHistoricProcessInstanceQuery
-
finished
public HistoricProcessInstanceQuery finished()
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are completely finished.- Specified by:
finishedin interfaceHistoricProcessInstanceQuery
-
unfinished
public HistoricProcessInstanceQuery unfinished()
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instance that are not yet finished.- Specified by:
unfinishedin interfaceHistoricProcessInstanceQuery
-
deleted
public HistoricProcessInstanceQuery deleted()
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are deleted.- Specified by:
deletedin interfaceHistoricProcessInstanceQuery
-
notDeleted
public HistoricProcessInstanceQuery notDeleted()
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instance that are not deleted.- Specified by:
notDeletedin interfaceHistoricProcessInstanceQuery
-
startedBy
public HistoricProcessInstanceQuery startedBy(String startedBy)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instance that are started by the given user.- Specified by:
startedByin interfaceHistoricProcessInstanceQuery
-
processDefinitionKeyNotIn
public HistoricProcessInstanceQuery processDefinitionKeyNotIn(List<String> processDefinitionKeys)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that don't have a process-definition of which the key is present in the given list- Specified by:
processDefinitionKeyNotInin interfaceHistoricProcessInstanceQuery
-
startedAfter
public HistoricProcessInstanceQuery startedAfter(Date startedAfter)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that were started after the given date.- Specified by:
startedAfterin interfaceHistoricProcessInstanceQuery
-
startedBefore
public HistoricProcessInstanceQuery startedBefore(Date startedBefore)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that were started before the given date.- Specified by:
startedBeforein interfaceHistoricProcessInstanceQuery
-
finishedAfter
public HistoricProcessInstanceQuery finishedAfter(Date finishedAfter)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that were started after the given date.- Specified by:
finishedAfterin interfaceHistoricProcessInstanceQuery
-
finishedBefore
public HistoricProcessInstanceQuery finishedBefore(Date finishedBefore)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that were started before the given date.- Specified by:
finishedBeforein interfaceHistoricProcessInstanceQuery
-
superProcessInstanceId
public HistoricProcessInstanceQuery superProcessInstanceId(String superProcessInstanceId)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances started by the given process instance. {@link ProcessInstance) ids and {@link HistoricProcessInstance} ids match.- Specified by:
superProcessInstanceIdin interfaceHistoricProcessInstanceQuery
-
excludeSubprocesses
public HistoricProcessInstanceQuery excludeSubprocesses(boolean excludeSubprocesses)
Description copied from interface:HistoricProcessInstanceQueryExclude sub processes from the query result;- Specified by:
excludeSubprocessesin interfaceHistoricProcessInstanceQuery
-
involvedUser
public HistoricProcessInstanceQuery involvedUser(String involvedUser)
Description copied from interface:HistoricProcessInstanceQueryOnly select the historic process instances with which the user with the given id is involved.- Specified by:
involvedUserin interfaceHistoricProcessInstanceQuery
-
includeProcessVariables
public HistoricProcessInstanceQuery includeProcessVariables()
Description copied from interface:HistoricProcessInstanceQueryInclude process variables in the process query result- Specified by:
includeProcessVariablesin interfaceHistoricProcessInstanceQuery
-
limitProcessInstanceVariables
public HistoricProcessInstanceQuery limitProcessInstanceVariables(Integer processInstanceVariablesLimit)
Description copied from interface:HistoricProcessInstanceQueryLimit process instance variables- Specified by:
limitProcessInstanceVariablesin interfaceHistoricProcessInstanceQuery
-
getProcessInstanceVariablesLimit
public Integer getProcessInstanceVariablesLimit()
-
withJobException
public HistoricProcessInstanceQuery withJobException()
Description copied from interface:HistoricProcessInstanceQueryOnly select process instances that failed due to an exception happening during a job execution.- Specified by:
withJobExceptionin interfaceHistoricProcessInstanceQuery
-
processInstanceTenantId
public HistoricProcessInstanceQuery processInstanceTenantId(String tenantId)
Description copied from interface:HistoricProcessInstanceQueryOnly select process instances that have the given tenant id.- Specified by:
processInstanceTenantIdin interfaceHistoricProcessInstanceQuery
-
processInstanceTenantIdLike
public HistoricProcessInstanceQuery processInstanceTenantIdLike(String tenantIdLike)
Description copied from interface:HistoricProcessInstanceQueryOnly select process instances with a tenant id like the given one.- Specified by:
processInstanceTenantIdLikein interfaceHistoricProcessInstanceQuery
-
processInstanceWithoutTenantId
public HistoricProcessInstanceQuery processInstanceWithoutTenantId()
Description copied from interface:HistoricProcessInstanceQueryOnly select process instances that do not have a tenant id.- Specified by:
processInstanceWithoutTenantIdin interfaceHistoricProcessInstanceQuery
-
processInstanceName
public HistoricProcessInstanceQuery processInstanceName(String name)
Description copied from interface:HistoricProcessInstanceQueryOnly select process instances with the given name.- Specified by:
processInstanceNamein interfaceHistoricProcessInstanceQuery
-
processInstanceNameLike
public HistoricProcessInstanceQuery processInstanceNameLike(String nameLike)
Description copied from interface:HistoricProcessInstanceQueryOnly select process instances with a name like the given value.- Specified by:
processInstanceNameLikein interfaceHistoricProcessInstanceQuery
-
processInstanceNameLikeIgnoreCase
public HistoricProcessInstanceQuery processInstanceNameLikeIgnoreCase(String nameLikeIgnoreCase)
Description copied from interface:HistoricProcessInstanceQueryOnly select process instances with a name like the given value, ignoring upper/lower case.- Specified by:
processInstanceNameLikeIgnoreCasein interfaceHistoricProcessInstanceQuery
-
variableValueEquals
public HistoricProcessInstanceQuery variableValueEquals(String variableName, Object variableValue)
Description copied from interface:HistoricProcessInstanceQueryOnly 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 aProcessInstanceQueryinstead! of variable is determined based on the value, using types configured inProcessEngineConfiguration#getVariableTypes(). Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueEqualsin interfaceHistoricProcessInstanceQuery- Overrides:
variableValueEqualsin classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>- Parameters:
variableName- of the variable, cannot be null.
-
variableValueNotEquals
public HistoricProcessInstanceQuery variableValueNotEquals(String variableName, Object variableValue)
Description copied from interface:HistoricProcessInstanceQueryOnly 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 andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueNotEqualsin interfaceHistoricProcessInstanceQuery- Overrides:
variableValueNotEqualsin classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>- Parameters:
variableName- of the variable, cannot be null.
-
variableValueEquals
public HistoricProcessInstanceQuery variableValueEquals(Object variableValue)
Description copied from interface:HistoricProcessInstanceQueryOnly 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 aProcessInstanceQueryinstead! of variable is determined based on the value, using types configured inProcessEngineConfiguration#getVariableTypes(). Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueEqualsin interfaceHistoricProcessInstanceQuery- Overrides:
variableValueEqualsin classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
variableValueEqualsIgnoreCase
public HistoricProcessInstanceQuery variableValueEqualsIgnoreCase(String name, String value)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances which have a local string variable with the given value, case insensitive.- Specified by:
variableValueEqualsIgnoreCasein interfaceHistoricProcessInstanceQuery- Overrides:
variableValueEqualsIgnoreCasein classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>- 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)
-
variableValueGreaterThan
public HistoricProcessInstanceQuery variableValueGreaterThan(String name, Object value)
Description copied from interface:HistoricProcessInstanceQueryOnly select process instances which had a global variable value greater than the passed value when they ended. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported. Only select process instances which have a variable value greater than the passed value.- Specified by:
variableValueGreaterThanin interfaceHistoricProcessInstanceQuery- Overrides:
variableValueGreaterThanin classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>- Parameters:
name- cannot be null.value- cannot be null.
-
variableValueGreaterThanOrEqual
public HistoricProcessInstanceQuery variableValueGreaterThanOrEqual(String name, Object value)
Description copied from interface:HistoricProcessInstanceQueryOnly select process instances which had a global variable value greater than or equal to the passed value when they ended. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported. Only applies to already ended process instances, otherwise use aProcessInstanceQueryinstead!- Specified by:
variableValueGreaterThanOrEqualin interfaceHistoricProcessInstanceQuery- Overrides:
variableValueGreaterThanOrEqualin classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>- Parameters:
name- cannot be null.value- cannot be null.
-
variableValueLessThan
public HistoricProcessInstanceQuery variableValueLessThan(String name, Object value)
Description copied from interface:HistoricProcessInstanceQueryOnly 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 aProcessInstanceQueryinstead! Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueLessThanin interfaceHistoricProcessInstanceQuery- Overrides:
variableValueLessThanin classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>- Parameters:
name- cannot be null.value- cannot be null.
-
variableValueLessThanOrEqual
public HistoricProcessInstanceQuery variableValueLessThanOrEqual(String name, Object value)
Description copied from interface:HistoricProcessInstanceQueryOnly 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 aProcessInstanceQueryinstead! Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueLessThanOrEqualin interfaceHistoricProcessInstanceQuery- Overrides:
variableValueLessThanOrEqualin classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>- Parameters:
name- cannot be null.value- cannot be null.
-
variableValueLike
public HistoricProcessInstanceQuery variableValueLike(String name, String value)
Description copied from interface:HistoricProcessInstanceQueryOnly select process instances which had global variable value like the given value when they ended. Only applies to already ended process instances, otherwise use aProcessInstanceQueryinstead! This can be used on string variables only.- Specified by:
variableValueLikein interfaceHistoricProcessInstanceQuery- Overrides:
variableValueLikein classAbstractVariableQueryImpl<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%).
-
locale
public HistoricProcessInstanceQuery locale(String locale)
Description copied from interface:HistoricProcessInstanceQueryLocalize historic process name and description to specified locale.- Specified by:
localein interfaceHistoricProcessInstanceQuery
-
withLocalizationFallback
public HistoricProcessInstanceQuery withLocalizationFallback()
Description copied from interface:HistoricProcessInstanceQueryInstruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.- Specified by:
withLocalizationFallbackin interfaceHistoricProcessInstanceQuery
-
variableValueLikeIgnoreCase
public HistoricProcessInstanceQuery variableValueLikeIgnoreCase(String name, String value)
Description copied from interface:HistoricProcessInstanceQueryOnly select process instances which had global variable value like (case insensitive) the given value when they ended. Only applies to already ended process instances, otherwise use aProcessInstanceQueryinstead! This can be used on string variables only.- Specified by:
variableValueLikeIgnoreCasein interfaceHistoricProcessInstanceQuery- Overrides:
variableValueLikeIgnoreCasein classAbstractVariableQueryImpl<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%).
-
or
public HistoricProcessInstanceQuery or()
Description copied from interface:HistoricProcessInstanceQueryBegin an OR statement. Make sure you invoke the endOr method at the end of your OR statement. Only one OR statement is allowed, for the second call to this method an exception will be thrown.- Specified by:
orin interfaceHistoricProcessInstanceQuery
-
endOr
public HistoricProcessInstanceQuery endOr()
Description copied from interface:HistoricProcessInstanceQueryEnd an OR statement. Only one OR statement is allowed, for the second call to this method an exception will be thrown.- Specified by:
endOrin interfaceHistoricProcessInstanceQuery
-
orderByProcessInstanceBusinessKey
public HistoricProcessInstanceQuery orderByProcessInstanceBusinessKey()
Description copied from interface:HistoricProcessInstanceQueryOrder by the business key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceBusinessKeyin interfaceHistoricProcessInstanceQuery
-
orderByProcessInstanceDuration
public HistoricProcessInstanceQuery orderByProcessInstanceDuration()
Description copied from interface:HistoricProcessInstanceQueryOrder by the duration of the process instance (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceDurationin interfaceHistoricProcessInstanceQuery
-
orderByProcessInstanceStartTime
public HistoricProcessInstanceQuery orderByProcessInstanceStartTime()
Description copied from interface:HistoricProcessInstanceQueryOrder by the start time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceStartTimein interfaceHistoricProcessInstanceQuery
-
orderByProcessInstanceEndTime
public HistoricProcessInstanceQuery orderByProcessInstanceEndTime()
Description copied from interface:HistoricProcessInstanceQueryOrder by the end time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceEndTimein interfaceHistoricProcessInstanceQuery
-
orderByProcessDefinitionId
public HistoricProcessInstanceQuery orderByProcessDefinitionId()
Description copied from interface:HistoricProcessInstanceQueryOrder by the process definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceHistoricProcessInstanceQuery
-
orderByProcessInstanceId
public HistoricProcessInstanceQuery orderByProcessInstanceId()
Description copied from interface:HistoricProcessInstanceQueryOrder by the process instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceHistoricProcessInstanceQuery
-
orderByTenantId
public HistoricProcessInstanceQuery orderByTenantId()
Description copied from interface:HistoricProcessInstanceQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceHistoricProcessInstanceQuery
-
getMssqlOrDB2OrderBy
public String getMssqlOrDB2OrderBy()
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
executeList
public List<HistoricProcessInstance> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>page- used if the results must be paged. If null, no paging will be applied.
-
localize
protected void localize(HistoricProcessInstance processInstance, CommandContext commandContext)
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
-
checkQueryOk
protected void checkQueryOk()
- Overrides:
checkQueryOkin classAbstractQuery<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
getBusinessKey
public String getBusinessKey()
-
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()
-
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()
-
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()
-
getOrQueryObjects
public List<HistoricProcessInstanceQueryImpl> getOrQueryObjects()
-
-