Package org.activiti.engine.impl
Class ProcessInstanceQueryImpl
- java.lang.Object
-
- org.activiti.engine.impl.db.ListQueryParameterObject
-
- org.activiti.engine.impl.AbstractQuery<T,U>
-
- org.activiti.engine.impl.AbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
-
- org.activiti.engine.impl.ProcessInstanceQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable,Command<java.lang.Object>,Query<ProcessInstanceQuery,ProcessInstance>,ProcessInstanceQuery
public class ProcessInstanceQueryImpl extends AbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance> implements ProcessInstanceQuery, java.io.Serializable
- 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.StringactivityIdprotected java.lang.StringbusinessKeyprotected ProcessInstanceQueryImplcurrentOrQueryObjectprotected java.lang.StringdeploymentIdprotected java.util.List<java.lang.String>deploymentIdsprotected java.util.List<EventSubscriptionQueryValue>eventSubscriptionsprotected booleanexcludeSubprocessesprotected java.lang.StringexecutionIdprotected booleanincludeChildExecutionsWithBusinessKeyQueryprotected booleanincludeProcessVariablesprotected booleaninOrStatementprotected java.lang.StringinvolvedUserprotected java.lang.Stringlocaleprotected java.lang.Stringnameprotected java.lang.StringnameLikeprotected java.lang.StringnameLikeIgnoreCaseprotected booleanonlyChildExecutionsprotected booleanonlyProcessInstanceExecutionsprotected booleanonlySubProcessExecutionsprotected java.util.List<ProcessInstanceQueryImpl>orQueryObjectsprotected java.lang.StringprocessDefinitionCategoryprotected java.lang.StringprocessDefinitionIdprotected java.util.Set<java.lang.String>processDefinitionIdsprotected java.lang.StringprocessDefinitionKeyprotected java.util.Set<java.lang.String>processDefinitionKeysprotected java.lang.StringprocessDefinitionNameprotected java.lang.IntegerprocessDefinitionVersionprotected java.util.Set<java.lang.String>processInstanceIdsprotected java.lang.IntegerprocessInstanceVariablesLimitprotected java.lang.StringrootProcessInstanceIdprotected java.util.DatestartedAfterprotected java.util.DatestartedBeforeprotected java.lang.StringstartedByprotected java.lang.StringsubProcessInstanceIdprotected java.lang.StringsuperProcessInstanceIdprotected SuspensionStatesuspensionStateprotected java.lang.StringtenantIdprotected java.lang.StringtenantIdLikeprotected 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 ProcessInstanceQueryImpl()ProcessInstanceQueryImpl(CommandContext commandContext)ProcessInstanceQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessInstanceQueryactive()Only select process instances which are active, which means that neither the process instance nor the corresponding process definition are suspended.ProcessInstanceQueryImpldeploymentId(java.lang.String deploymentId)Select the process instances which are defined by a deployment with the given id.ProcessInstanceQueryImpldeploymentIdIn(java.util.List<java.lang.String> deploymentIds)Select the process instances which are defined by one of the given deployment idsProcessInstanceQueryendOr()End an OR statement.protected voidensureVariablesInitialized()ProcessInstanceQueryexcludeSubprocesses(boolean excludeSubprocesses)Exclude sub processes from the query result;longexecuteCount(CommandContext commandContext)java.util.List<ProcessInstance>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.java.lang.StringgetActivityId()java.lang.StringgetBusinessKey()java.lang.StringgetDeploymentId()java.util.List<java.lang.String>getDeploymentIds()java.util.List<EventSubscriptionQueryValue>getEventSubscriptions()java.lang.StringgetExecutionId()java.lang.StringgetInvolvedUser()java.lang.StringgetMssqlOrDB2OrderBy()java.lang.StringgetName()java.lang.StringgetNameLike()java.lang.StringgetNameLikeIgnoreCase()booleangetOnlyProcessInstances()java.util.List<ProcessInstanceQueryImpl>getOrQueryObjects()java.lang.StringgetParentId()Methods needed for ibatis because of re-use of query-xml for executions.java.lang.StringgetProcessDefinitionCategory()java.lang.StringgetProcessDefinitionId()java.util.Set<java.lang.String>getProcessDefinitionIds()java.lang.StringgetProcessDefinitionKey()java.util.Set<java.lang.String>getProcessDefinitionKeys()java.lang.StringgetProcessDefinitionName()java.lang.IntegergetProcessDefinitionVersion()java.lang.StringgetProcessInstanceId()java.util.Set<java.lang.String>getProcessInstanceIds()java.lang.IntegergetProcessInstanceVariablesLimit()java.lang.StringgetRootProcessInstanceId()java.util.DategetStartedAfter()java.util.DategetStartedBefore()java.lang.StringgetStartedBy()java.lang.StringgetSubProcessInstanceId()java.lang.StringgetSuperProcessInstanceId()SuspensionStategetSuspensionState()java.lang.StringgetTenantId()java.lang.StringgetTenantIdLike()ProcessInstanceQueryincludeProcessVariables()Include process variables in the process query resultProcessInstanceQueryinvolvedUser(java.lang.String involvedUser)Select the process instances with which the user with the given id is involved.booleanisExcludeSubprocesses()booleanisIncludeChildExecutionsWithBusinessKeyQuery()booleanisIncludeProcessVariables()booleanisOnlyChildExecutions()booleanisOnlyProcessInstanceExecutions()booleanisOnlySubProcessExecutions()booleaniswithException()booleanisWithoutTenantId()ProcessInstanceQuerylimitProcessInstanceVariables(java.lang.Integer processInstanceVariablesLimit)Limit process instance variablesProcessInstanceQuerylocale(java.lang.String locale)Localize process name and description to specified locale.protected voidlocalize(ProcessInstance processInstance)ProcessInstanceQueryor()Begin an OR statement.ProcessInstanceQueryorderByProcessDefinitionId()Order by process definition id (needs to be followed byQuery.asc()orQuery.desc()).ProcessInstanceQueryorderByProcessDefinitionKey()Order by process definition key (needs to be followed byQuery.asc()orQuery.desc()).ProcessInstanceQueryorderByProcessInstanceId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).ProcessInstanceQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).ProcessInstanceQueryprocessDefinitionCategory(java.lang.String processDefinitionCategory)Only select process instances whose process definition category is processDefinitionCategory.ProcessInstanceQueryImplprocessDefinitionId(java.lang.String processDefinitionId)Select the process instances which are defined by a process definition with the given id.ProcessInstanceQueryprocessDefinitionIds(java.util.Set<java.lang.String> processDefinitionIds)Select the process instances which are defined by process definitions with the given ids.ProcessInstanceQueryImplprocessDefinitionKey(java.lang.String processDefinitionKey)Select the process instances which are defined by a process definition with the given key.ProcessInstanceQueryprocessDefinitionKeys(java.util.Set<java.lang.String> processDefinitionKeys)Select the process instances which are defined by process definitions with the given keys.ProcessInstanceQueryprocessDefinitionName(java.lang.String processDefinitionName)Select process instances whose process definition name is processDefinitionNameProcessInstanceQueryprocessDefinitionVersion(java.lang.Integer processDefinitionVersion)Only select process instances with a certain process definition version.ProcessInstanceQueryprocessInstanceBusinessKey(java.lang.String businessKey)Select process instances with the given business keyProcessInstanceQueryprocessInstanceBusinessKey(java.lang.String businessKey, java.lang.String processDefinitionKey)Select process instance with the given business key, unique for the given process definitionProcessInstanceQueryImplprocessInstanceId(java.lang.String processInstanceId)Select the process instance with the given idProcessInstanceQueryprocessInstanceIds(java.util.Set<java.lang.String> processInstanceIds)Select process instances whose id is in the given set of idsProcessInstanceQueryprocessInstanceName(java.lang.String name)Only select process instances with the given name.ProcessInstanceQueryprocessInstanceNameLike(java.lang.String nameLike)Only select process instances with a name like the given value.ProcessInstanceQueryprocessInstanceNameLikeIgnoreCase(java.lang.String nameLikeIgnoreCase)Only select process instances with a name like the given value, ignoring upper/lower case.ProcessInstanceQueryprocessInstanceTenantId(java.lang.String tenantId)Only select process instances that have the given tenant id.ProcessInstanceQueryprocessInstanceTenantIdLike(java.lang.String tenantIdLike)Only select process instances with a tenant id like the given one.ProcessInstanceQueryprocessInstanceWithoutTenantId()Only select process instances that do not have a tenant id.voidsetEventSubscriptions(java.util.List<EventSubscriptionQueryValue> eventSubscriptions)voidsetName(java.lang.String name)voidsetNameLike(java.lang.String nameLike)voidsetStartedAfter(java.util.Date startedAfter)voidsetStartedBefore(java.util.Date startedBefore)voidsetStartedBy(java.lang.String startedBy)voidsetSuspensionState(SuspensionState suspensionState)ProcessInstanceQuerystartedAfter(java.util.Date afterTime)Only select process instances started after the given timeProcessInstanceQuerystartedBefore(java.util.Date beforeTime)Only select process instances started before the given timeProcessInstanceQuerystartedBy(java.lang.String userId)Only select process instances started by the given user idProcessInstanceQuerysubProcessInstanceId(java.lang.String subProcessInstanceId)Select the process instance that have as sub process instance the given process instance.ProcessInstanceQuerysuperProcessInstanceId(java.lang.String superProcessInstanceId)Select the process instances which are a sub process instance of the given super process instance.ProcessInstanceQuerysuspended()Only select process instances which are suspended, either because the process instance itself is suspended or because the corresponding process definition is suspendedProcessInstanceQueryvariableValueEquals(java.lang.Object variableValue)Only select process instances which have at least one global variable with the given value.ProcessInstanceQueryvariableValueEquals(java.lang.String variableName, java.lang.Object variableValue)Only select process instances which have a global variable with the given value.ProcessInstanceQueryvariableValueEqualsIgnoreCase(java.lang.String name, java.lang.String value)Only select process instances which have a local string variable with the given value, case insensitive.ProcessInstanceQueryvariableValueGreaterThan(java.lang.String name, java.lang.Object value)Only select process instances which have a variable value greater than the passed value.ProcessInstanceQueryvariableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)Only select process instances which have a global variable value greater than or equal to the passed value.ProcessInstanceQueryvariableValueLessThan(java.lang.String name, java.lang.Object value)Only select process instances which have a global variable value less than the passed value.ProcessInstanceQueryvariableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)Only select process instances which have a global variable value less than or equal to the passed value.ProcessInstanceQueryvariableValueLike(java.lang.String name, java.lang.String value)Only select process instances which have a global variable value like the given value.ProcessInstanceQueryvariableValueLikeIgnoreCase(java.lang.String name, java.lang.String value)Only select process instances which have a global variable value like the given value (case insensitive).ProcessInstanceQueryvariableValueNotEquals(java.lang.String variableName, java.lang.Object variableValue)Only select process instances which have a global variable with the given name, but with a different value than the passed value.ProcessInstanceQueryvariableValueNotEqualsIgnoreCase(java.lang.String name, java.lang.String value)Only select process instances which have a local string variable which is not the given value, case insensitive.ProcessInstanceQuerywithJobException()Only select process instances that failed due to an exception happening during a job execution.ProcessInstanceQuerywithLocalizationFallback()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, checkQueryOk, 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
-
executionId
protected java.lang.String executionId
-
businessKey
protected java.lang.String businessKey
-
includeChildExecutionsWithBusinessKeyQuery
protected boolean includeChildExecutionsWithBusinessKeyQuery
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processDefinitionIds
protected java.util.Set<java.lang.String> processDefinitionIds
-
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
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
processDefinitionKeys
protected java.util.Set<java.lang.String> processDefinitionKeys
-
deploymentId
protected java.lang.String deploymentId
-
deploymentIds
protected java.util.List<java.lang.String> deploymentIds
-
superProcessInstanceId
protected java.lang.String superProcessInstanceId
-
subProcessInstanceId
protected java.lang.String subProcessInstanceId
-
excludeSubprocesses
protected boolean excludeSubprocesses
-
involvedUser
protected java.lang.String involvedUser
-
suspensionState
protected SuspensionState suspensionState
-
includeProcessVariables
protected boolean includeProcessVariables
-
processInstanceVariablesLimit
protected java.lang.Integer processInstanceVariablesLimit
-
withJobException
protected boolean withJobException
-
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
-
tenantId
protected java.lang.String tenantId
-
tenantIdLike
protected java.lang.String tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
orQueryObjects
protected java.util.List<ProcessInstanceQueryImpl> orQueryObjects
-
currentOrQueryObject
protected ProcessInstanceQueryImpl currentOrQueryObject
-
inOrStatement
protected boolean inOrStatement
-
startedBefore
protected java.util.Date startedBefore
-
startedAfter
protected java.util.Date startedAfter
-
startedBy
protected java.lang.String startedBy
-
activityId
protected java.lang.String activityId
-
eventSubscriptions
protected java.util.List<EventSubscriptionQueryValue> eventSubscriptions
-
onlyChildExecutions
protected boolean onlyChildExecutions
-
onlyProcessInstanceExecutions
protected boolean onlyProcessInstanceExecutions
-
onlySubProcessExecutions
protected boolean onlySubProcessExecutions
-
rootProcessInstanceId
protected java.lang.String rootProcessInstanceId
-
-
Constructor Detail
-
ProcessInstanceQueryImpl
public ProcessInstanceQueryImpl()
-
ProcessInstanceQueryImpl
public ProcessInstanceQueryImpl(CommandContext commandContext)
-
ProcessInstanceQueryImpl
public ProcessInstanceQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
processInstanceId
public ProcessInstanceQueryImpl processInstanceId(java.lang.String processInstanceId)
Description copied from interface:ProcessInstanceQuerySelect the process instance with the given id- Specified by:
processInstanceIdin interfaceProcessInstanceQuery
-
processInstanceIds
public ProcessInstanceQuery processInstanceIds(java.util.Set<java.lang.String> processInstanceIds)
Description copied from interface:ProcessInstanceQuerySelect process instances whose id is in the given set of ids- Specified by:
processInstanceIdsin interfaceProcessInstanceQuery
-
processInstanceBusinessKey
public ProcessInstanceQuery processInstanceBusinessKey(java.lang.String businessKey)
Description copied from interface:ProcessInstanceQuerySelect process instances with the given business key- Specified by:
processInstanceBusinessKeyin interfaceProcessInstanceQuery
-
processInstanceBusinessKey
public ProcessInstanceQuery processInstanceBusinessKey(java.lang.String businessKey, java.lang.String processDefinitionKey)
Description copied from interface:ProcessInstanceQuerySelect process instance with the given business key, unique for the given process definition- Specified by:
processInstanceBusinessKeyin interfaceProcessInstanceQuery
-
processInstanceTenantId
public ProcessInstanceQuery processInstanceTenantId(java.lang.String tenantId)
Description copied from interface:ProcessInstanceQueryOnly select process instances that have the given tenant id.- Specified by:
processInstanceTenantIdin interfaceProcessInstanceQuery
-
processInstanceTenantIdLike
public ProcessInstanceQuery processInstanceTenantIdLike(java.lang.String tenantIdLike)
Description copied from interface:ProcessInstanceQueryOnly select process instances with a tenant id like the given one.- Specified by:
processInstanceTenantIdLikein interfaceProcessInstanceQuery
-
processInstanceWithoutTenantId
public ProcessInstanceQuery processInstanceWithoutTenantId()
Description copied from interface:ProcessInstanceQueryOnly select process instances that do not have a tenant id.- Specified by:
processInstanceWithoutTenantIdin interfaceProcessInstanceQuery
-
processDefinitionCategory
public ProcessInstanceQuery processDefinitionCategory(java.lang.String processDefinitionCategory)
Description copied from interface:ProcessInstanceQueryOnly select process instances whose process definition category is processDefinitionCategory.- Specified by:
processDefinitionCategoryin interfaceProcessInstanceQuery
-
processDefinitionName
public ProcessInstanceQuery processDefinitionName(java.lang.String processDefinitionName)
Description copied from interface:ProcessInstanceQuerySelect process instances whose process definition name is processDefinitionName- Specified by:
processDefinitionNamein interfaceProcessInstanceQuery
-
processDefinitionVersion
public ProcessInstanceQuery processDefinitionVersion(java.lang.Integer processDefinitionVersion)
Description copied from interface:ProcessInstanceQueryOnly select process instances with a certain process definition version. Particulary useful when used in combination withProcessInstanceQuery.processDefinitionKey(String)- Specified by:
processDefinitionVersionin interfaceProcessInstanceQuery
-
processDefinitionId
public ProcessInstanceQueryImpl processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:ProcessInstanceQuerySelect the process instances which are defined by a process definition with the given id.- Specified by:
processDefinitionIdin interfaceProcessInstanceQuery
-
processDefinitionIds
public ProcessInstanceQuery processDefinitionIds(java.util.Set<java.lang.String> processDefinitionIds)
Description copied from interface:ProcessInstanceQuerySelect the process instances which are defined by process definitions with the given ids.- Specified by:
processDefinitionIdsin interfaceProcessInstanceQuery
-
processDefinitionKey
public ProcessInstanceQueryImpl processDefinitionKey(java.lang.String processDefinitionKey)
Description copied from interface:ProcessInstanceQuerySelect the process instances which are defined by a process definition with the given key.- Specified by:
processDefinitionKeyin interfaceProcessInstanceQuery
-
processDefinitionKeys
public ProcessInstanceQuery processDefinitionKeys(java.util.Set<java.lang.String> processDefinitionKeys)
Description copied from interface:ProcessInstanceQuerySelect the process instances which are defined by process definitions with the given keys.- Specified by:
processDefinitionKeysin interfaceProcessInstanceQuery
-
deploymentId
public ProcessInstanceQueryImpl deploymentId(java.lang.String deploymentId)
Description copied from interface:ProcessInstanceQuerySelect the process instances which are defined by a deployment with the given id.- Specified by:
deploymentIdin interfaceProcessInstanceQuery
-
deploymentIdIn
public ProcessInstanceQueryImpl deploymentIdIn(java.util.List<java.lang.String> deploymentIds)
Description copied from interface:ProcessInstanceQuerySelect the process instances which are defined by one of the given deployment ids- Specified by:
deploymentIdInin interfaceProcessInstanceQuery
-
superProcessInstanceId
public ProcessInstanceQuery superProcessInstanceId(java.lang.String superProcessInstanceId)
Description copied from interface:ProcessInstanceQuerySelect the process instances which are a sub process instance of the given super process instance.- Specified by:
superProcessInstanceIdin interfaceProcessInstanceQuery
-
subProcessInstanceId
public ProcessInstanceQuery subProcessInstanceId(java.lang.String subProcessInstanceId)
Description copied from interface:ProcessInstanceQuerySelect the process instance that have as sub process instance the given process instance. Note that there will always be maximum only one such process instance that can be the result of this query.- Specified by:
subProcessInstanceIdin interfaceProcessInstanceQuery
-
excludeSubprocesses
public ProcessInstanceQuery excludeSubprocesses(boolean excludeSubprocesses)
Description copied from interface:ProcessInstanceQueryExclude sub processes from the query result;- Specified by:
excludeSubprocessesin interfaceProcessInstanceQuery
-
involvedUser
public ProcessInstanceQuery involvedUser(java.lang.String involvedUser)
Description copied from interface:ProcessInstanceQuerySelect the process instances with which the user with the given id is involved.- Specified by:
involvedUserin interfaceProcessInstanceQuery
-
active
public ProcessInstanceQuery active()
Description copied from interface:ProcessInstanceQueryOnly select process instances which are active, which means that neither the process instance nor the corresponding process definition are suspended.- Specified by:
activein interfaceProcessInstanceQuery
-
suspended
public ProcessInstanceQuery suspended()
Description copied from interface:ProcessInstanceQueryOnly select process instances which are suspended, either because the process instance itself is suspended or because the corresponding process definition is suspended- Specified by:
suspendedin interfaceProcessInstanceQuery
-
includeProcessVariables
public ProcessInstanceQuery includeProcessVariables()
Description copied from interface:ProcessInstanceQueryInclude process variables in the process query result- Specified by:
includeProcessVariablesin interfaceProcessInstanceQuery
-
limitProcessInstanceVariables
public ProcessInstanceQuery limitProcessInstanceVariables(java.lang.Integer processInstanceVariablesLimit)
Description copied from interface:ProcessInstanceQueryLimit process instance variables- Specified by:
limitProcessInstanceVariablesin interfaceProcessInstanceQuery
-
getProcessInstanceVariablesLimit
public java.lang.Integer getProcessInstanceVariablesLimit()
-
withJobException
public ProcessInstanceQuery withJobException()
Description copied from interface:ProcessInstanceQueryOnly select process instances that failed due to an exception happening during a job execution.- Specified by:
withJobExceptionin interfaceProcessInstanceQuery
-
processInstanceName
public ProcessInstanceQuery processInstanceName(java.lang.String name)
Description copied from interface:ProcessInstanceQueryOnly select process instances with the given name.- Specified by:
processInstanceNamein interfaceProcessInstanceQuery
-
processInstanceNameLike
public ProcessInstanceQuery processInstanceNameLike(java.lang.String nameLike)
Description copied from interface:ProcessInstanceQueryOnly select process instances with a name like the given value.- Specified by:
processInstanceNameLikein interfaceProcessInstanceQuery
-
processInstanceNameLikeIgnoreCase
public ProcessInstanceQuery processInstanceNameLikeIgnoreCase(java.lang.String nameLikeIgnoreCase)
Description copied from interface:ProcessInstanceQueryOnly select process instances with a name like the given value, ignoring upper/lower case.- Specified by:
processInstanceNameLikeIgnoreCasein interfaceProcessInstanceQuery
-
or
public ProcessInstanceQuery or()
Description copied from interface:ProcessInstanceQueryBegin 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 interfaceProcessInstanceQuery
-
endOr
public ProcessInstanceQuery endOr()
Description copied from interface:ProcessInstanceQueryEnd an OR statement. Only one OR statement is allowed, for the second call to this method an exception will be thrown.- Specified by:
endOrin interfaceProcessInstanceQuery
-
variableValueEquals
public ProcessInstanceQuery variableValueEquals(java.lang.String variableName, java.lang.Object variableValue)
Description copied from interface:ProcessInstanceQueryOnly select process instances which have a global variable with the given value. The type 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 interfaceProcessInstanceQuery- Overrides:
variableValueEqualsin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>- Parameters:
variableName- name of the variable, cannot be null.
-
variableValueNotEquals
public ProcessInstanceQuery variableValueNotEquals(java.lang.String variableName, java.lang.Object variableValue)
Description copied from interface:ProcessInstanceQueryOnly select process instances which have a global variable with the given name, but with a different value than the passed value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueNotEqualsin interfaceProcessInstanceQuery- Overrides:
variableValueNotEqualsin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>- Parameters:
variableName- name of the variable, cannot be null.
-
variableValueEquals
public ProcessInstanceQuery variableValueEquals(java.lang.Object variableValue)
Description copied from interface:ProcessInstanceQueryOnly select process instances which have at least one global variable with the given value. The type 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 interfaceProcessInstanceQuery- Overrides:
variableValueEqualsin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
-
variableValueEqualsIgnoreCase
public ProcessInstanceQuery variableValueEqualsIgnoreCase(java.lang.String name, java.lang.String value)
Description copied from interface:ProcessInstanceQueryOnly select process instances which have a local string variable with the given value, case insensitive.This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).
- Specified by:
variableValueEqualsIgnoreCasein interfaceProcessInstanceQuery- Overrides:
variableValueEqualsIgnoreCasein classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>- Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
variableValueNotEqualsIgnoreCase
public ProcessInstanceQuery variableValueNotEqualsIgnoreCase(java.lang.String name, java.lang.String value)
Description copied from interface:ProcessInstanceQueryOnly select process instances which have a local string variable which is not the given value, case insensitive.This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).
- Specified by:
variableValueNotEqualsIgnoreCasein interfaceProcessInstanceQuery- Overrides:
variableValueNotEqualsIgnoreCasein classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>- Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
variableValueGreaterThan
public ProcessInstanceQuery variableValueGreaterThan(java.lang.String name, java.lang.Object value)
Description copied from interface:ProcessInstanceQueryOnly select process instances which have a variable value greater than the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueGreaterThanin interfaceProcessInstanceQuery- Overrides:
variableValueGreaterThanin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>- Parameters:
name- variable name, cannot be null.value- variable value, cannot be null.
-
variableValueGreaterThanOrEqual
public ProcessInstanceQuery variableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)
Description copied from interface:ProcessInstanceQueryOnly select process instances which have a global variable value greater than or equal to the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueGreaterThanOrEqualin interfaceProcessInstanceQuery- Overrides:
variableValueGreaterThanOrEqualin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>- Parameters:
name- variable name, cannot be null.value- variable value, cannot be null.
-
variableValueLessThan
public ProcessInstanceQuery variableValueLessThan(java.lang.String name, java.lang.Object value)
Description copied from interface:ProcessInstanceQueryOnly select process instances which have a global variable value less than the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueLessThanin interfaceProcessInstanceQuery- Overrides:
variableValueLessThanin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>- Parameters:
name- variable name, cannot be null.value- variable value, cannot be null.
-
variableValueLessThanOrEqual
public ProcessInstanceQuery variableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)
Description copied from interface:ProcessInstanceQueryOnly select process instances which have a global variable value less than or equal to the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueLessThanOrEqualin interfaceProcessInstanceQuery- Overrides:
variableValueLessThanOrEqualin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>- Parameters:
name- variable name, cannot be null.value- variable value, cannot be null.
-
variableValueLike
public ProcessInstanceQuery variableValueLike(java.lang.String name, java.lang.String value)
Description copied from interface:ProcessInstanceQueryOnly select process instances which have a global variable value like the given value. This be used on string variables only.- Specified by:
variableValueLikein interfaceProcessInstanceQuery- Overrides:
variableValueLikein classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>- Parameters:
name- variable name, cannot be null.value- variable value, cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
variableValueLikeIgnoreCase
public ProcessInstanceQuery variableValueLikeIgnoreCase(java.lang.String name, java.lang.String value)
Description copied from interface:ProcessInstanceQueryOnly select process instances which have a global variable value like the given value (case insensitive). This be used on string variables only.- Specified by:
variableValueLikeIgnoreCasein interfaceProcessInstanceQuery- Overrides:
variableValueLikeIgnoreCasein classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>- Parameters:
name- variable name, cannot be null.value- variable 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 ProcessInstanceQuery locale(java.lang.String locale)
Description copied from interface:ProcessInstanceQueryLocalize process name and description to specified locale.- Specified by:
localein interfaceProcessInstanceQuery
-
withLocalizationFallback
public ProcessInstanceQuery withLocalizationFallback()
Description copied from interface:ProcessInstanceQueryInstruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.- Specified by:
withLocalizationFallbackin interfaceProcessInstanceQuery
-
startedBefore
public ProcessInstanceQuery startedBefore(java.util.Date beforeTime)
Description copied from interface:ProcessInstanceQueryOnly select process instances started before the given time- Specified by:
startedBeforein interfaceProcessInstanceQuery
-
startedAfter
public ProcessInstanceQuery startedAfter(java.util.Date afterTime)
Description copied from interface:ProcessInstanceQueryOnly select process instances started after the given time- Specified by:
startedAfterin interfaceProcessInstanceQuery
-
startedBy
public ProcessInstanceQuery startedBy(java.lang.String userId)
Description copied from interface:ProcessInstanceQueryOnly select process instances started by the given user id- Specified by:
startedByin interfaceProcessInstanceQuery
-
orderByProcessInstanceId
public ProcessInstanceQuery orderByProcessInstanceId()
Description copied from interface:ProcessInstanceQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceProcessInstanceQuery
-
orderByProcessDefinitionId
public ProcessInstanceQuery orderByProcessDefinitionId()
Description copied from interface:ProcessInstanceQueryOrder by process definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceProcessInstanceQuery
-
orderByProcessDefinitionKey
public ProcessInstanceQuery orderByProcessDefinitionKey()
Description copied from interface:ProcessInstanceQueryOrder by process definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionKeyin interfaceProcessInstanceQuery
-
orderByTenantId
public ProcessInstanceQuery orderByTenantId()
Description copied from interface:ProcessInstanceQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceProcessInstanceQuery
-
getMssqlOrDB2OrderBy
public java.lang.String getMssqlOrDB2OrderBy()
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
-
executeList
public java.util.List<ProcessInstance> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>page- used if the results must be paged. If null, no paging will be applied.
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
- Overrides:
ensureVariablesInitializedin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
-
localize
protected void localize(ProcessInstance processInstance)
-
getOnlyProcessInstances
public boolean getOnlyProcessInstances()
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
-
getRootProcessInstanceId
public java.lang.String getRootProcessInstanceId()
-
getProcessInstanceIds
public java.util.Set<java.lang.String> getProcessInstanceIds()
-
getBusinessKey
public java.lang.String getBusinessKey()
-
isIncludeChildExecutionsWithBusinessKeyQuery
public boolean isIncludeChildExecutionsWithBusinessKeyQuery()
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
getProcessDefinitionIds
public java.util.Set<java.lang.String> getProcessDefinitionIds()
-
getProcessDefinitionCategory
public java.lang.String getProcessDefinitionCategory()
-
getProcessDefinitionName
public java.lang.String getProcessDefinitionName()
-
getProcessDefinitionVersion
public java.lang.Integer getProcessDefinitionVersion()
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
-
getProcessDefinitionKeys
public java.util.Set<java.lang.String> getProcessDefinitionKeys()
-
getActivityId
public java.lang.String getActivityId()
-
getSuperProcessInstanceId
public java.lang.String getSuperProcessInstanceId()
-
getSubProcessInstanceId
public java.lang.String getSubProcessInstanceId()
-
isExcludeSubprocesses
public boolean isExcludeSubprocesses()
-
getInvolvedUser
public java.lang.String getInvolvedUser()
-
getSuspensionState
public SuspensionState getSuspensionState()
-
setSuspensionState
public void setSuspensionState(SuspensionState suspensionState)
-
getEventSubscriptions
public java.util.List<EventSubscriptionQueryValue> getEventSubscriptions()
-
setEventSubscriptions
public void setEventSubscriptions(java.util.List<EventSubscriptionQueryValue> eventSubscriptions)
-
getTenantId
public java.lang.String getTenantId()
-
getTenantIdLike
public java.lang.String getTenantIdLike()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
getName
public java.lang.String getName()
-
getNameLike
public java.lang.String getNameLike()
-
setName
public void setName(java.lang.String name)
-
setNameLike
public void setNameLike(java.lang.String nameLike)
-
getExecutionId
public java.lang.String getExecutionId()
-
getDeploymentId
public java.lang.String getDeploymentId()
-
getDeploymentIds
public java.util.List<java.lang.String> getDeploymentIds()
-
isIncludeProcessVariables
public boolean isIncludeProcessVariables()
-
iswithException
public boolean iswithException()
-
getNameLikeIgnoreCase
public java.lang.String getNameLikeIgnoreCase()
-
getOrQueryObjects
public java.util.List<ProcessInstanceQueryImpl> getOrQueryObjects()
-
getParentId
public java.lang.String getParentId()
Methods needed for ibatis because of re-use of query-xml for executions. ExecutionQuery contains a parentId property.
-
isOnlyChildExecutions
public boolean isOnlyChildExecutions()
-
isOnlyProcessInstanceExecutions
public boolean isOnlyProcessInstanceExecutions()
-
isOnlySubProcessExecutions
public boolean isOnlySubProcessExecutions()
-
getStartedBefore
public java.util.Date getStartedBefore()
-
setStartedBefore
public void setStartedBefore(java.util.Date startedBefore)
-
getStartedAfter
public java.util.Date getStartedAfter()
-
setStartedAfter
public void setStartedAfter(java.util.Date startedAfter)
-
getStartedBy
public java.lang.String getStartedBy()
-
setStartedBy
public void setStartedBy(java.lang.String startedBy)
-
-