Package org.flowable.engine.impl
Class ProcessInstanceQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<T,U>
org.flowable.variable.service.impl.AbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
org.flowable.engine.impl.ProcessInstanceQueryImpl
- All Implemented Interfaces:
Serializable,CacheAwareQuery<ExecutionEntity>,Query<ProcessInstanceQuery,,ProcessInstance> Command<Object>,ProcessInstanceQuery
public class ProcessInstanceQueryImpl
extends AbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
implements ProcessInstanceQuery, CacheAwareQuery<ExecutionEntity>, Serializable
- Author:
- Tom Baeyens, Joram Barrez, Tijs Rademakers, Frederik Heremans, Falko Menge, Daniel Meyer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected ProcessInstanceQueryImplprotected Stringprotected List<EventSubscriptionQueryValue>protected booleanprotected Stringprotected booleanprotected booleanprotected booleanprotected IdentityLinkQueryObjectprotected Stringprotected IdentityLinkQueryObjectprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected booleanprotected booleanprotected List<ProcessInstanceQueryImpl>protected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Integerprotected ProcessEngineConfigurationImplprotected Stringprotected Stringprotected Stringprotected Stringprotected Dateprotected Dateprotected Stringprotected Stringprotected Stringprotected SuspensionStateprotected Stringprotected Stringprotected Stringprotected booleanprotected booleanprotected booleanFields inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
queryVariableValues, variableValueProviderFields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutorFields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC -
Constructor Summary
ConstructorsConstructorDescriptionProcessInstanceQueryImpl(CommandContext commandContext, ProcessEngineConfigurationImpl processEngineConfiguration) ProcessInstanceQueryImpl(CommandExecutor commandExecutor, ProcessEngineConfigurationImpl processEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionactive()Only select process instances which are active, which means that neither the process instance nor the corresponding process definition are suspended.activeActivityId(String activityId) Select the process instances which have an active activity instance like the provided id.activeActivityIds(Set<String> activityIds) Select the process instances which have an active activity instance like the provided ids.deploymentId(String deploymentId) Select the process instances which are defined by a deployment with the given id.deploymentIdIn(List<String> deploymentIds) Select the process instances which are defined by one of the given deployment idsendOr()End an OR statement.voidenhanceCachedValue(ExecutionEntity processInstance) protected voidexcludeSubprocesses(boolean excludeSubprocesses) Exclude sub processes from the query result;longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext) Executes the actual query to retrieve the list of results.getId()getName()booleanMethods needed for ibatis because of re-use of query-xml for executions.Include process variables in the process query resultinvolvedGroup(String groupId, String identityLinkType) Select the process instances with which the group with the given id and identity link type is involved.involvedGroups(Set<String> involvedGroups) Select the process instances with which theGroups with the given ids are involved.involvedUser(String involvedUser) Select the process instances with which the user with the given id is involved.involvedUser(String userId, String identityLinkType) Select the process instances with which the user with the given id and identity link type is involved.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanLocalize process name and description to specified locale.or()Begin an OR statement.Order by process definition id (needs to be followed byQuery.asc()orQuery.desc()).Order by process definition key (needs to be followed byQuery.asc()orQuery.desc()).Order by id (needs to be followed byQuery.asc()orQuery.desc()).Order by start time (needs to be followed byQuery.asc()orQuery.desc()).Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).processDefinitionCategory(String processDefinitionCategory) Only select process instances whose process definition category is processDefinitionCategory.processDefinitionCategoryLike(String processDefinitionCategoryLike) Only select process instances whose process definition category is like the given value.processDefinitionCategoryLikeIgnoreCase(String processDefinitionCategoryLikeIgnoreCase) Only select process instances whose process definition category is like the given value, ignoring upper/lower case.processDefinitionEngineVersion(String processDefinitionEngineVersion) Select the process instances which are defined by a process definition with the given engine version.processDefinitionId(String processDefinitionId) Select the process instances which are defined by a process definition with the given id.processDefinitionIds(Set<String> processDefinitionIds) Select the process instances which are defined by process definitions with the given ids.processDefinitionKey(String processDefinitionKey) Select the process instances which are defined by a process definition with the given key.processDefinitionKeyLike(String processDefinitionKeyLike) Select process instances whose process definition key is like the given valueprocessDefinitionKeyLikeIgnoreCase(String processDefinitionKeyLikeIgnoreCase) Select process instances whose process definition key is like the given value, ignoring upper/lower case.processDefinitionKeys(Set<String> processDefinitionKeys) Select the process instances which are defined by process definitions with the given keys.processDefinitionName(String processDefinitionName) Select process instances whose process definition name is processDefinitionNameprocessDefinitionNameLike(String processDefinitionNameLike) Select process instances whose process definition name is like the given valueprocessDefinitionNameLikeIgnoreCase(String processDefinitionNameLikeIgnoreCase) Select process instances whose process definition name is like the given value, ignoring upper/lower case.processDefinitionVersion(Integer processDefinitionVersion) Only select process instances with a certain process definition version.processInstanceBusinessKey(String businessKey) Select process instances with the given business keyprocessInstanceBusinessKey(String businessKey, String processDefinitionKey) Select process instance with the given business key, unique for the given process definitionprocessInstanceBusinessKeyLike(String businessKeyLike) Select process instances with a business key like the given value.processInstanceBusinessKeyLikeIgnoreCase(String businessKeyLikeIgnoreCase) Select process instances with a business key like the given value, ignoring upper/lower case.processInstanceBusinessStatus(String businessStatus) Select process instances with the given business statusprocessInstanceBusinessStatusLike(String businessStatusLike) Select process instances with a business status like the given value.processInstanceBusinessStatusLikeIgnoreCase(String businessStatusLikeIgnoreCase) Select process instances with a business status like the given value, ignoring upper/lower case.processInstanceCallbackId(String callbackId) Only select process instances with the given callback id.processInstanceCallbackType(String callbackType) Only select process instances with the given callback type.processInstanceId(String processInstanceId) Select the process instance with the given idprocessInstanceIds(Set<String> processInstanceIds) Select process instances whose id is in the given set of idsprocessInstanceName(String name) Only select process instances with the given name.processInstanceNameLike(String nameLike) Only select process instances with a name like the given value.processInstanceNameLikeIgnoreCase(String nameLikeIgnoreCase) Only select process instances with a name like the given value, ignoring upper/lower case.processInstanceParentScopeId(String parentId) Only select process instances with the given parent process instance id.processInstanceReferenceId(String referenceId) Only select process instances with the given reference id.processInstanceReferenceType(String referenceType) Only select process instances with the given callback type.processInstanceRootScopeId(String rootId) Only select process instances with a root instance with a name like the given value.processInstanceTenantId(String tenantId) Only select process instances that have the given tenant id.processInstanceTenantIdLike(String tenantIdLike) Only select process instances with a tenant id like the given one.processInstanceTenantIdLikeIgnoreCase(String tenantIdLikeIgnoreCase) Only select process instances with a tenant id like the given one, ignoring upper/lower case.Only select process instances that do not have a tenant id.voidsetEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions) voidvoidsetNameLike(String nameLike) voidsetSafeInvolvedGroups(List<List<String>> safeInvolvedGroups) voidsetStartedAfter(Date startedAfter) voidsetStartedBefore(Date startedBefore) voidsetStartedBy(String startedBy) voidsetSuspensionState(SuspensionState suspensionState) startedAfter(Date afterTime) Only select process instances started after the given timestartedBefore(Date beforeTime) Only select process instances started before the given timeOnly select process instances started by the given user idsubProcessInstanceId(String subProcessInstanceId) Select the process instance that have as sub process instance the given process instance.superProcessInstanceId(String superProcessInstanceId) Select the process instances which are a sub process instance of the given super process instance.Only select process instances which are suspended, either because the process instance itself is suspended or because the corresponding process definition is suspendedvariableExists(String name) Only select process instances which have a variable with the given name.variableNotExists(String name) Only select process instances which does not have a variable with the given name.variableValueEquals(Object variableValue) Only select process instances which have at least one global variable with the given value.variableValueEquals(String variableName, Object variableValue) Only select process instances which have a global variable with the given value.variableValueEqualsIgnoreCase(String name, String value) Only select process instances which have a local string variable with the given value, case insensitive.variableValueGreaterThan(String name, Object value) Only select process instances which have a variable value greater than the passed value.variableValueGreaterThanOrEqual(String name, Object value) Only select process instances which have a global variable value greater than or equal to the passed value.variableValueLessThan(String name, Object value) Only select process instances which have a global variable value less than the passed value.variableValueLessThanOrEqual(String name, Object value) Only select process instances which have a global variable value less than or equal to the passed value.variableValueLike(String name, String value) Only select process instances which have a global variable value like the given value.variableValueLikeIgnoreCase(String name, String value) Only select process instances which have a global variable value like the given value (case insensitive).variableValueNotEquals(String variableName, Object variableValue) Only select process instances which have a global variable with the given name, but with a different value than the passed value.variableValueNotEqualsIgnoreCase(String name, String value) Only select process instances which have a local string variable which is not the given value, case insensitive.Only select process instances that failed due to an exception happening during a job execution.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.flowable.variable.service.impl.AbstractVariableQueryImpl
addVariable, addVariable, getQueryVariableValues, hasLocalQueryVariableValue, hasNonLocalQueryVariableValue, hasValueComparisonQueryVariables, isBoolean, scopedVariableExists, scopedVariableNotExists, scopedVariableValueEquals, scopedVariableValueEquals, scopedVariableValueEqualsIgnoreCase, scopedVariableValueGreaterThan, scopedVariableValueGreaterThanOrEqual, scopedVariableValueLessThan, scopedVariableValueLessThanOrEqual, scopedVariableValueLike, scopedVariableValueLikeIgnoreCase, scopedVariableValueNotEquals, scopedVariableValueNotEqualsIgnoreCase, variableExists, variableNotExists, variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEqualsIgnoreCaseMethods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultMethods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameter
-
Field Details
-
processEngineConfiguration
-
executionId
-
businessKey
-
businessKeyLike
-
businessKeyLikeIgnoreCase
-
includeChildExecutionsWithBusinessKeyQuery
protected boolean includeChildExecutionsWithBusinessKeyQuery -
businessStatus
-
businessStatusLike
-
businessStatusLikeIgnoreCase
-
processDefinitionId
-
processDefinitionIds
-
processDefinitionCategory
-
processDefinitionCategoryLike
-
processDefinitionCategoryLikeIgnoreCase
-
processDefinitionName
-
processDefinitionNameLike
-
processDefinitionNameLikeIgnoreCase
-
processDefinitionVersion
-
processInstanceIds
-
processDefinitionKey
-
processDefinitionKeyLike
-
processDefinitionKeyLikeIgnoreCase
-
processDefinitionKeys
-
processDefinitionEngineVersion
-
deploymentId
-
deploymentIds
-
superProcessInstanceId
-
subProcessInstanceId
-
excludeSubprocesses
protected boolean excludeSubprocesses -
involvedUser
-
involvedUserIdentityLink
-
involvedGroups
-
involvedGroupIdentityLink
-
suspensionState
-
includeProcessVariables
protected boolean includeProcessVariables -
withJobException
protected boolean withJobException -
name
-
nameLike
-
nameLikeIgnoreCase
-
rootScopeId
-
parentScopeId
-
activeActivityId
-
activeActivityIds
-
callbackId
-
callbackType
-
referenceId
-
referenceType
-
locale
-
withLocalizationFallback
protected boolean withLocalizationFallback -
tenantId
-
tenantIdLike
-
tenantIdLikeIgnoreCase
-
withoutTenantId
protected boolean withoutTenantId -
orQueryObjects
-
currentOrQueryObject
-
inOrStatement
protected boolean inOrStatement -
startedBefore
-
startedAfter
-
startedBy
-
activityId
-
eventSubscriptions
-
onlyChildExecutions
protected boolean onlyChildExecutions -
onlyProcessInstanceExecutions
protected boolean onlyProcessInstanceExecutions -
onlySubProcessExecutions
protected boolean onlySubProcessExecutions -
rootProcessInstanceId
-
-
Constructor Details
-
ProcessInstanceQueryImpl
public ProcessInstanceQueryImpl() -
ProcessInstanceQueryImpl
public ProcessInstanceQueryImpl(CommandContext commandContext, ProcessEngineConfigurationImpl processEngineConfiguration) -
ProcessInstanceQueryImpl
public ProcessInstanceQueryImpl(CommandExecutor commandExecutor, ProcessEngineConfigurationImpl processEngineConfiguration)
-
-
Method Details
-
processInstanceId
Description copied from interface:ProcessInstanceQuerySelect the process instance with the given id- Specified by:
processInstanceIdin interfaceProcessInstanceQuery
-
processInstanceIds
Description copied from interface:ProcessInstanceQuerySelect process instances whose id is in the given set of ids- Specified by:
processInstanceIdsin interfaceProcessInstanceQuery
-
processInstanceBusinessKey
Description copied from interface:ProcessInstanceQuerySelect process instances with the given business key- Specified by:
processInstanceBusinessKeyin interfaceProcessInstanceQuery
-
processInstanceBusinessKey
public ProcessInstanceQuery processInstanceBusinessKey(String businessKey, String processDefinitionKey) Description copied from interface:ProcessInstanceQuerySelect process instance with the given business key, unique for the given process definition- Specified by:
processInstanceBusinessKeyin interfaceProcessInstanceQuery
-
processInstanceBusinessKeyLike
Description copied from interface:ProcessInstanceQuerySelect process instances with a business key like the given value.- Specified by:
processInstanceBusinessKeyLikein interfaceProcessInstanceQuery
-
processInstanceBusinessKeyLikeIgnoreCase
public ProcessInstanceQuery processInstanceBusinessKeyLikeIgnoreCase(String businessKeyLikeIgnoreCase) Description copied from interface:ProcessInstanceQuerySelect process instances with a business key like the given value, ignoring upper/lower case.- Specified by:
processInstanceBusinessKeyLikeIgnoreCasein interfaceProcessInstanceQuery
-
processInstanceBusinessStatus
Description copied from interface:ProcessInstanceQuerySelect process instances with the given business status- Specified by:
processInstanceBusinessStatusin interfaceProcessInstanceQuery
-
processInstanceBusinessStatusLike
Description copied from interface:ProcessInstanceQuerySelect process instances with a business status like the given value.- Specified by:
processInstanceBusinessStatusLikein interfaceProcessInstanceQuery
-
processInstanceBusinessStatusLikeIgnoreCase
public ProcessInstanceQuery processInstanceBusinessStatusLikeIgnoreCase(String businessStatusLikeIgnoreCase) Description copied from interface:ProcessInstanceQuerySelect process instances with a business status like the given value, ignoring upper/lower case.- Specified by:
processInstanceBusinessStatusLikeIgnoreCasein interfaceProcessInstanceQuery
-
processInstanceTenantId
Description copied from interface:ProcessInstanceQueryOnly select process instances that have the given tenant id.- Specified by:
processInstanceTenantIdin interfaceProcessInstanceQuery
-
processInstanceTenantIdLike
Description copied from interface:ProcessInstanceQueryOnly select process instances with a tenant id like the given one.- Specified by:
processInstanceTenantIdLikein interfaceProcessInstanceQuery
-
processInstanceTenantIdLikeIgnoreCase
Description copied from interface:ProcessInstanceQueryOnly select process instances with a tenant id like the given one, ignoring upper/lower case.- Specified by:
processInstanceTenantIdLikeIgnoreCasein interfaceProcessInstanceQuery
-
processInstanceWithoutTenantId
Description copied from interface:ProcessInstanceQueryOnly select process instances that do not have a tenant id.- Specified by:
processInstanceWithoutTenantIdin interfaceProcessInstanceQuery
-
processDefinitionCategory
Description copied from interface:ProcessInstanceQueryOnly select process instances whose process definition category is processDefinitionCategory.- Specified by:
processDefinitionCategoryin interfaceProcessInstanceQuery
-
processDefinitionCategoryLike
Description copied from interface:ProcessInstanceQueryOnly select process instances whose process definition category is like the given value.- Specified by:
processDefinitionCategoryLikein interfaceProcessInstanceQuery
-
processDefinitionCategoryLikeIgnoreCase
public ProcessInstanceQuery processDefinitionCategoryLikeIgnoreCase(String processDefinitionCategoryLikeIgnoreCase) Description copied from interface:ProcessInstanceQueryOnly select process instances whose process definition category is like the given value, ignoring upper/lower case.- Specified by:
processDefinitionCategoryLikeIgnoreCasein interfaceProcessInstanceQuery
-
processDefinitionName
Description copied from interface:ProcessInstanceQuerySelect process instances whose process definition name is processDefinitionName- Specified by:
processDefinitionNamein interfaceProcessInstanceQuery
-
processDefinitionNameLike
Description copied from interface:ProcessInstanceQuerySelect process instances whose process definition name is like the given value- Specified by:
processDefinitionNameLikein interfaceProcessInstanceQuery
-
processDefinitionNameLikeIgnoreCase
public ProcessInstanceQuery processDefinitionNameLikeIgnoreCase(String processDefinitionNameLikeIgnoreCase) Description copied from interface:ProcessInstanceQuerySelect process instances whose process definition name is like the given value, ignoring upper/lower case.- Specified by:
processDefinitionNameLikeIgnoreCasein interfaceProcessInstanceQuery
-
processDefinitionVersion
Description copied from interface:ProcessInstanceQueryOnly select process instances with a certain process definition version. Particularly useful when used in combination withProcessInstanceQuery.processDefinitionKey(String)- Specified by:
processDefinitionVersionin interfaceProcessInstanceQuery
-
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
Description copied from interface:ProcessInstanceQuerySelect the process instances which are defined by process definitions with the given ids.- Specified by:
processDefinitionIdsin interfaceProcessInstanceQuery
-
processDefinitionKey
Description copied from interface:ProcessInstanceQuerySelect the process instances which are defined by a process definition with the given key.- Specified by:
processDefinitionKeyin interfaceProcessInstanceQuery
-
processDefinitionKeyLike
Description copied from interface:ProcessInstanceQuerySelect process instances whose process definition key is like the given value- Specified by:
processDefinitionKeyLikein interfaceProcessInstanceQuery
-
processDefinitionKeyLikeIgnoreCase
public ProcessInstanceQueryImpl processDefinitionKeyLikeIgnoreCase(String processDefinitionKeyLikeIgnoreCase) Description copied from interface:ProcessInstanceQuerySelect process instances whose process definition key is like the given value, ignoring upper/lower case.- Specified by:
processDefinitionKeyLikeIgnoreCasein interfaceProcessInstanceQuery
-
processDefinitionKeys
Description copied from interface:ProcessInstanceQuerySelect the process instances which are defined by process definitions with the given keys.- Specified by:
processDefinitionKeysin interfaceProcessInstanceQuery
-
processDefinitionEngineVersion
Description copied from interface:ProcessInstanceQuerySelect the process instances which are defined by a process definition with the given engine version.- Specified by:
processDefinitionEngineVersionin interfaceProcessInstanceQuery
-
deploymentId
Description copied from interface:ProcessInstanceQuerySelect the process instances which are defined by a deployment with the given id.- Specified by:
deploymentIdin interfaceProcessInstanceQuery
-
deploymentIdIn
Description copied from interface:ProcessInstanceQuerySelect the process instances which are defined by one of the given deployment ids- Specified by:
deploymentIdInin interfaceProcessInstanceQuery
-
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
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
Description copied from interface:ProcessInstanceQueryExclude sub processes from the query result;- Specified by:
excludeSubprocessesin interfaceProcessInstanceQuery
-
involvedUser
Description copied from interface:ProcessInstanceQuerySelect the process instances with which the user with the given id is involved.- Specified by:
involvedUserin interfaceProcessInstanceQuery
-
involvedUser
Description copied from interface:ProcessInstanceQuerySelect the process instances with which the user with the given id and identity link type is involved.- Specified by:
involvedUserin interfaceProcessInstanceQuery
-
involvedGroup
Description copied from interface:ProcessInstanceQuerySelect the process instances with which the group with the given id and identity link type is involved.- Specified by:
involvedGroupin interfaceProcessInstanceQuery
-
involvedGroups
Description copied from interface:ProcessInstanceQuerySelect the process instances with which theGroups with the given ids are involved.- Specified by:
involvedGroupsin interfaceProcessInstanceQuery
-
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
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
Description copied from interface:ProcessInstanceQueryInclude process variables in the process query result- Specified by:
includeProcessVariablesin interfaceProcessInstanceQuery
-
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
Description copied from interface:ProcessInstanceQueryOnly select process instances with the given name.- Specified by:
processInstanceNamein interfaceProcessInstanceQuery
-
processInstanceNameLike
Description copied from interface:ProcessInstanceQueryOnly select process instances with a name like the given value.- Specified by:
processInstanceNameLikein interfaceProcessInstanceQuery
-
processInstanceNameLikeIgnoreCase
Description copied from interface:ProcessInstanceQueryOnly select process instances with a name like the given value, ignoring upper/lower case.- Specified by:
processInstanceNameLikeIgnoreCasein interfaceProcessInstanceQuery
-
processInstanceRootScopeId
Description copied from interface:ProcessInstanceQueryOnly select process instances with a root instance with a name like the given value.- Specified by:
processInstanceRootScopeIdin interfaceProcessInstanceQuery
-
processInstanceParentScopeId
Description copied from interface:ProcessInstanceQueryOnly select process instances with the given parent process instance id.- Specified by:
processInstanceParentScopeIdin interfaceProcessInstanceQuery
-
activeActivityId
Description copied from interface:ProcessInstanceQuerySelect the process instances which have an active activity instance like the provided id.- Specified by:
activeActivityIdin interfaceProcessInstanceQuery
-
activeActivityIds
Description copied from interface:ProcessInstanceQuerySelect the process instances which have an active activity instance like the provided ids.- Specified by:
activeActivityIdsin interfaceProcessInstanceQuery
-
processInstanceCallbackId
Description copied from interface:ProcessInstanceQueryOnly select process instances with the given callback id.- Specified by:
processInstanceCallbackIdin interfaceProcessInstanceQuery
-
processInstanceCallbackType
Description copied from interface:ProcessInstanceQueryOnly select process instances with the given callback type.- Specified by:
processInstanceCallbackTypein interfaceProcessInstanceQuery
-
processInstanceReferenceId
Description copied from interface:ProcessInstanceQueryOnly select process instances with the given reference id.- Specified by:
processInstanceReferenceIdin interfaceProcessInstanceQuery
-
processInstanceReferenceType
Description copied from interface:ProcessInstanceQueryOnly select process instances with the given callback type.- Specified by:
processInstanceReferenceTypein interfaceProcessInstanceQuery
-
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
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
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 inProcessEngineConfigurationImpl.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
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
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 inProcessEngineConfigurationImpl.getVariableTypes(). Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueEqualsin interfaceProcessInstanceQuery- Overrides:
variableValueEqualsin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
-
variableValueEqualsIgnoreCase
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
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
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
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
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
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
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
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%).
-
variableExists
Description copied from interface:ProcessInstanceQueryOnly select process instances which have a variable with the given name.- Specified by:
variableExistsin interfaceProcessInstanceQuery- Overrides:
variableExistsin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance> - Parameters:
name- cannot be null.
-
variableNotExists
Description copied from interface:ProcessInstanceQueryOnly select process instances which does not have a variable with the given name.- Specified by:
variableNotExistsin interfaceProcessInstanceQuery- Overrides:
variableNotExistsin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance> - Parameters:
name- cannot be null.
-
locale
Description copied from interface:ProcessInstanceQueryLocalize process name and description to specified locale.- Specified by:
localein interfaceProcessInstanceQuery
-
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
Description copied from interface:ProcessInstanceQueryOnly select process instances started before the given time- Specified by:
startedBeforein interfaceProcessInstanceQuery
-
startedAfter
Description copied from interface:ProcessInstanceQueryOnly select process instances started after the given time- Specified by:
startedAfterin interfaceProcessInstanceQuery
-
startedBy
Description copied from interface:ProcessInstanceQueryOnly select process instances started by the given user id- Specified by:
startedByin interfaceProcessInstanceQuery
-
orderByProcessInstanceId
Description copied from interface:ProcessInstanceQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceProcessInstanceQuery
-
orderByProcessDefinitionId
Description copied from interface:ProcessInstanceQueryOrder by process definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceProcessInstanceQuery
-
orderByProcessDefinitionKey
Description copied from interface:ProcessInstanceQueryOrder by process definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionKeyin interfaceProcessInstanceQuery
-
orderByStartTime
Description copied from interface:ProcessInstanceQueryOrder by start time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByStartTimein interfaceProcessInstanceQuery
-
orderByTenantId
Description copied from interface:ProcessInstanceQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceProcessInstanceQuery
-
executeCount
- Specified by:
executeCountin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
-
enhanceCachedValue
- Specified by:
enhanceCachedValuein interfaceCacheAwareQuery<ExecutionEntity>
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()- Overrides:
ensureVariablesInitializedin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
-
getOnlyProcessInstances
public boolean getOnlyProcessInstances() -
getProcessInstanceId
-
getId
- Specified by:
getIdin interfaceCacheAwareQuery<ExecutionEntity>
-
getRootProcessInstanceId
-
getProcessInstanceIds
-
getRootScopeId
-
getBusinessKey
-
getBusinessKeyLike
-
getBusinessKeyLikeIgnoreCase
-
getBusinessStatus
-
getBusinessStatusLike
-
getBusinessStatusLikeIgnoreCase
-
isIncludeChildExecutionsWithBusinessKeyQuery
public boolean isIncludeChildExecutionsWithBusinessKeyQuery() -
getProcessDefinitionId
-
getProcessDefinitionIds
-
getProcessDefinitionCategory
-
getProcessDefinitionCategoryLike
-
getProcessDefinitionCategoryLikeIgnoreCase
-
getParentScopeId
-
getProcessDefinitionName
-
getProcessDefinitionNameLike
-
getProcessDefinitionNameLikeIgnoreCase
-
getProcessDefinitionVersion
-
getProcessDefinitionKey
-
getProcessDefinitionKeyLike
-
getProcessDefinitionKeyLikeIgnoreCase
-
getProcessDefinitionKeys
-
getProcessDefinitionEngineVersion
-
getActivityId
-
getSuperProcessInstanceId
-
getSubProcessInstanceId
-
isExcludeSubprocesses
public boolean isExcludeSubprocesses() -
getInvolvedUser
-
getInvolvedUserIdentityLink
-
getInvolvedGroupIdentityLink
-
getInvolvedGroups
-
getSuspensionState
-
setSuspensionState
-
getEventSubscriptions
-
setEventSubscriptions
-
getTenantId
-
getTenantIdLike
-
getTenantIdLikeIgnoreCase
-
isWithoutTenantId
public boolean isWithoutTenantId() -
getName
-
getNameLike
-
setName
-
setNameLike
-
getExecutionId
-
getDeploymentId
-
getDeploymentIds
-
isIncludeProcessVariables
public boolean isIncludeProcessVariables() -
iswithException
public boolean iswithException() -
getNameLikeIgnoreCase
-
getActiveActivityId
-
getActiveActivityIds
-
getCallbackId
-
getCallbackType
-
getReferenceId
-
getReferenceType
-
getOrQueryObjects
-
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
-
setStartedBefore
-
getStartedAfter
-
setStartedAfter
-
getStartedBy
-
setStartedBy
-
isWithJobException
public boolean isWithJobException() -
getLocale
-
isNeedsProcessDefinitionOuterJoin
public boolean isNeedsProcessDefinitionOuterJoin() -
getSafeInvolvedGroups
-
setSafeInvolvedGroups
-