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:
java.io.Serializable,HistoricProcessInstanceQuery,Command<java.lang.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 Modifier and Type Field Description protected java.lang.StringbusinessKeyprotected HistoricProcessInstanceQueryImplcurrentOrQueryObjectprotected booleandeletedprotected java.lang.StringdeploymentIdprotected java.util.List<java.lang.String>deploymentIdsprotected booleanexcludeSubprocessesprotected booleanfinishedprotected java.util.DatefinishedAfterprotected java.util.DatefinishedBeforeprotected booleanincludeProcessVariablesprotected booleaninOrStatementprotected java.lang.StringinvolvedUserprotected java.lang.Stringlocaleprotected java.lang.Stringnameprotected java.lang.StringnameLikeprotected java.lang.StringnameLikeIgnoreCaseprotected booleannotDeletedprotected java.util.List<HistoricProcessInstanceQueryImpl>orQueryObjectsprotected java.lang.StringprocessDefinitionCategoryprotected java.lang.StringprocessDefinitionIdprotected java.lang.StringprocessDefinitionKeyprotected java.util.List<java.lang.String>processDefinitionKeyInprotected java.lang.StringprocessDefinitionNameprotected java.lang.IntegerprocessDefinitionVersionprotected java.lang.StringprocessInstanceIdprotected java.util.Set<java.lang.String>processInstanceIdsprotected java.lang.IntegerprocessInstanceVariablesLimitprotected java.util.List<java.lang.String>processKeyNotInprotected java.util.DatestartedAfterprotected java.util.DatestartedBeforeprotected java.lang.StringstartedByprotected java.lang.StringsuperProcessInstanceIdprotected java.lang.StringtenantIdprotected java.lang.StringtenantIdLikeprotected booleanunfinishedprotected booleanwithJobExceptionprotected booleanwithLocalizationFallbackprotected booleanwithoutTenantId-
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(java.lang.String deploymentId)Only select historic process instances that are defined by a process definition with the given deployment identifier.HistoricProcessInstanceQuerydeploymentIdIn(java.util.List<java.lang.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)java.util.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(java.util.Date finishedAfter)Only select historic process instances that were started after the given date.HistoricProcessInstanceQueryfinishedBefore(java.util.Date finishedBefore)Only select historic process instances that were started before the given date.java.lang.StringgetBusinessKey()java.lang.StringgetDeploymentId()java.util.List<java.lang.String>getDeploymentIds()java.util.DategetFinishedAfter()java.util.DategetFinishedBefore()java.lang.StringgetInvolvedUser()java.lang.StringgetMssqlOrDB2OrderBy()java.lang.StringgetName()java.lang.StringgetNameLike()java.lang.StringgetNameLikeIgnoreCase()java.util.List<HistoricProcessInstanceQueryImpl>getOrQueryObjects()java.lang.StringgetProcessDefinitionCategory()java.lang.StringgetProcessDefinitionId()java.lang.StringgetProcessDefinitionIdLike()java.lang.StringgetProcessDefinitionKey()java.util.List<java.lang.String>getProcessDefinitionKeyIn()java.lang.StringgetProcessDefinitionName()java.lang.IntegergetProcessDefinitionVersion()java.lang.StringgetProcessInstanceId()java.util.Set<java.lang.String>getProcessInstanceIds()java.lang.IntegergetProcessInstanceVariablesLimit()java.util.List<java.lang.String>getProcessKeyNotIn()static longgetSerialversionuid()java.util.DategetStartedAfter()java.util.DategetStartedBefore()java.lang.StringgetStartedBy()java.lang.StringgetSuperProcessInstanceId()java.lang.StringgetTenantId()java.lang.StringgetTenantIdLike()HistoricProcessInstanceQueryincludeProcessVariables()Include process variables in the process query resultHistoricProcessInstanceQueryinvolvedUser(java.lang.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(java.lang.Integer processInstanceVariablesLimit)Limit process instance variablesHistoricProcessInstanceQuerylocale(java.lang.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(java.lang.String processDefinitionCategory)Only select historic process instances whose process definition category is processDefinitionCategory.HistoricProcessInstanceQueryImplprocessDefinitionId(java.lang.String processDefinitionId)Only select historic process instances for the given process definitionHistoricProcessInstanceQueryprocessDefinitionKey(java.lang.String processDefinitionKey)Only select historic process instances that are defined by a process definition with the given key.HistoricProcessInstanceQueryprocessDefinitionKeyIn(java.util.List<java.lang.String> processDefinitionKeys)Only select historic process instances that are defined by a process definition with one of the given process definition keys.HistoricProcessInstanceQueryprocessDefinitionKeyNotIn(java.util.List<java.lang.String> processDefinitionKeys)Only select historic process instances that don't have a process-definition of which the key is present in the given listHistoricProcessInstanceQueryprocessDefinitionName(java.lang.String processDefinitionName)Select process historic instances whose process definition name is processDefinitionNameHistoricProcessInstanceQueryprocessDefinitionVersion(java.lang.Integer processDefinitionVersion)Only select historic process instances with a certain process definition version.HistoricProcessInstanceQueryprocessInstanceBusinessKey(java.lang.String businessKey)Only select historic process instances with the given business keyHistoricProcessInstanceQueryImplprocessInstanceId(java.lang.String processInstanceId)Only select historic process instances with the given process instance.HistoricProcessInstanceQueryprocessInstanceIds(java.util.Set<java.lang.String> processInstanceIds)Only select historic process instances whose id is in the given set of ids.HistoricProcessInstanceQueryprocessInstanceName(java.lang.String name)Only select process instances with the given name.HistoricProcessInstanceQueryprocessInstanceNameLike(java.lang.String nameLike)Only select process instances with a name like the given value.HistoricProcessInstanceQueryprocessInstanceNameLikeIgnoreCase(java.lang.String nameLikeIgnoreCase)Only select process instances with a name like the given value, ignoring upper/lower case.HistoricProcessInstanceQueryprocessInstanceTenantId(java.lang.String tenantId)Only select process instances that have the given tenant id.HistoricProcessInstanceQueryprocessInstanceTenantIdLike(java.lang.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(java.util.Date startedAfter)Only select historic process instances that were started after the given date.HistoricProcessInstanceQuerystartedBefore(java.util.Date startedBefore)Only select historic process instances that were started before the given date.HistoricProcessInstanceQuerystartedBy(java.lang.String startedBy)Only select historic process instance that are started by the given user.HistoricProcessInstanceQuerysuperProcessInstanceId(java.lang.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(java.lang.Object variableValue)Only select process instances which had at least one global variable with the given value when they ended.HistoricProcessInstanceQueryvariableValueEquals(java.lang.String variableName, java.lang.Object variableValue)Only select process instances which had a global variable with the given value when they ended.HistoricProcessInstanceQueryvariableValueEqualsIgnoreCase(java.lang.String name, java.lang.String value)Only select historic process instances which have a local string variable with the given value, case insensitive.HistoricProcessInstanceQueryvariableValueGreaterThan(java.lang.String name, java.lang.Object value)Only select process instances which had a global variable value greater than the passed value when they ended.HistoricProcessInstanceQueryvariableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)Only select process instances which had a global variable value greater than or equal to the passed value when they ended.HistoricProcessInstanceQueryvariableValueLessThan(java.lang.String name, java.lang.Object value)Only select process instances which had a global variable value less than the passed value when the ended.HistoricProcessInstanceQueryvariableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)Only select process instances which has a global variable value less than or equal to the passed value when they ended.HistoricProcessInstanceQueryvariableValueLike(java.lang.String name, java.lang.String value)Only select process instances which had global variable value like the given value when they ended.HistoricProcessInstanceQueryvariableValueLikeIgnoreCase(java.lang.String name, java.lang.String value)Only select process instances which had global variable value like (case insensitive) the given value when they ended.HistoricProcessInstanceQueryvariableValueNotEquals(java.lang.String variableName, java.lang.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(java.lang.String name, java.lang.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 java.lang.String processInstanceId
-
processDefinitionId
protected java.lang.String processDefinitionId
-
businessKey
protected java.lang.String businessKey
-
deploymentId
protected java.lang.String deploymentId
-
deploymentIds
protected java.util.List<java.lang.String> deploymentIds
-
finished
protected boolean finished
-
unfinished
protected boolean unfinished
-
deleted
protected boolean deleted
-
notDeleted
protected boolean notDeleted
-
startedBy
protected java.lang.String startedBy
-
superProcessInstanceId
protected java.lang.String superProcessInstanceId
-
excludeSubprocesses
protected boolean excludeSubprocesses
-
processDefinitionKeyIn
protected java.util.List<java.lang.String> processDefinitionKeyIn
-
processKeyNotIn
protected java.util.List<java.lang.String> processKeyNotIn
-
startedBefore
protected java.util.Date startedBefore
-
startedAfter
protected java.util.Date startedAfter
-
finishedBefore
protected java.util.Date finishedBefore
-
finishedAfter
protected java.util.Date finishedAfter
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
processDefinitionCategory
protected java.lang.String processDefinitionCategory
-
processDefinitionName
protected java.lang.String processDefinitionName
-
processDefinitionVersion
protected java.lang.Integer processDefinitionVersion
-
processInstanceIds
protected java.util.Set<java.lang.String> processInstanceIds
-
involvedUser
protected java.lang.String involvedUser
-
includeProcessVariables
protected boolean includeProcessVariables
-
processInstanceVariablesLimit
protected java.lang.Integer processInstanceVariablesLimit
-
withJobException
protected boolean withJobException
-
tenantId
protected java.lang.String tenantId
-
tenantIdLike
protected java.lang.String tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
name
protected java.lang.String name
-
nameLike
protected java.lang.String nameLike
-
nameLikeIgnoreCase
protected java.lang.String nameLikeIgnoreCase
-
locale
protected java.lang.String locale
-
withLocalizationFallback
protected boolean withLocalizationFallback
-
orQueryObjects
protected java.util.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(java.lang.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(java.util.Set<java.lang.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(java.lang.String processDefinitionId)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances for the given process definition- Specified by:
processDefinitionIdin interfaceHistoricProcessInstanceQuery
-
processDefinitionKey
public HistoricProcessInstanceQuery processDefinitionKey(java.lang.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(java.util.List<java.lang.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(java.lang.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(java.lang.String processDefinitionName)
Description copied from interface:HistoricProcessInstanceQuerySelect process historic instances whose process definition name is processDefinitionName- Specified by:
processDefinitionNamein interfaceHistoricProcessInstanceQuery
-
processDefinitionVersion
public HistoricProcessInstanceQuery processDefinitionVersion(java.lang.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(java.lang.String businessKey)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances with the given business key- Specified by:
processInstanceBusinessKeyin interfaceHistoricProcessInstanceQuery
-
deploymentId
public HistoricProcessInstanceQuery deploymentId(java.lang.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(java.util.List<java.lang.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(java.lang.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(java.util.List<java.lang.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(java.util.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(java.util.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(java.util.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(java.util.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(java.lang.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(java.lang.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(java.lang.Integer processInstanceVariablesLimit)
Description copied from interface:HistoricProcessInstanceQueryLimit process instance variables- Specified by:
limitProcessInstanceVariablesin interfaceHistoricProcessInstanceQuery
-
getProcessInstanceVariablesLimit
public java.lang.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(java.lang.String tenantId)
Description copied from interface:HistoricProcessInstanceQueryOnly select process instances that have the given tenant id.- Specified by:
processInstanceTenantIdin interfaceHistoricProcessInstanceQuery
-
processInstanceTenantIdLike
public HistoricProcessInstanceQuery processInstanceTenantIdLike(java.lang.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(java.lang.String name)
Description copied from interface:HistoricProcessInstanceQueryOnly select process instances with the given name.- Specified by:
processInstanceNamein interfaceHistoricProcessInstanceQuery
-
processInstanceNameLike
public HistoricProcessInstanceQuery processInstanceNameLike(java.lang.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(java.lang.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(java.lang.String variableName, java.lang.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(java.lang.String variableName, java.lang.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(java.lang.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(java.lang.String name, java.lang.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(java.lang.String name, java.lang.String value)
-
variableValueGreaterThan
public HistoricProcessInstanceQuery variableValueGreaterThan(java.lang.String name, java.lang.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(java.lang.String name, java.lang.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(java.lang.String name, java.lang.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(java.lang.String name, java.lang.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(java.lang.String name, java.lang.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(java.lang.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(java.lang.String name, java.lang.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 java.lang.String getMssqlOrDB2OrderBy()
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
executeList
public java.util.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 java.lang.String getBusinessKey()
-
isOpen
public boolean isOpen()
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
-
getProcessDefinitionKeyIn
public java.util.List<java.lang.String> getProcessDefinitionKeyIn()
-
getProcessDefinitionIdLike
public java.lang.String getProcessDefinitionIdLike()
-
getProcessDefinitionName
public java.lang.String getProcessDefinitionName()
-
getProcessDefinitionCategory
public java.lang.String getProcessDefinitionCategory()
-
getProcessDefinitionVersion
public java.lang.Integer getProcessDefinitionVersion()
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
-
getProcessInstanceIds
public java.util.Set<java.lang.String> getProcessInstanceIds()
-
getStartedBy
public java.lang.String getStartedBy()
-
getSuperProcessInstanceId
public java.lang.String getSuperProcessInstanceId()
-
isExcludeSubprocesses
public boolean isExcludeSubprocesses()
-
getProcessKeyNotIn
public java.util.List<java.lang.String> getProcessKeyNotIn()
-
getStartedAfter
public java.util.Date getStartedAfter()
-
getStartedBefore
public java.util.Date getStartedBefore()
-
getFinishedAfter
public java.util.Date getFinishedAfter()
-
getFinishedBefore
public java.util.Date getFinishedBefore()
-
getInvolvedUser
public java.lang.String getInvolvedUser()
-
getName
public java.lang.String getName()
-
getNameLike
public java.lang.String getNameLike()
-
getSerialversionuid
public static long getSerialversionuid()
-
getDeploymentId
public java.lang.String getDeploymentId()
-
getDeploymentIds
public java.util.List<java.lang.String> getDeploymentIds()
-
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 java.lang.String getTenantId()
-
getTenantIdLike
public java.lang.String getTenantIdLike()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
getNameLikeIgnoreCase
public java.lang.String getNameLikeIgnoreCase()
-
getOrQueryObjects
public java.util.List<HistoricProcessInstanceQueryImpl> getOrQueryObjects()
-
-