Class ExecutionQueryImpl
- 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<ExecutionQuery,Execution>
-
- org.flowable.engine.impl.ExecutionQueryImpl
-
- All Implemented Interfaces:
Serializable,CacheAwareQuery<ExecutionEntity>,Query<ExecutionQuery,Execution>,Command<Object>,ExecutionQuery
public class ExecutionQueryImpl extends AbstractVariableQueryImpl<ExecutionQuery,Execution> implements ExecutionQuery, CacheAwareQuery<ExecutionEntity>
- Author:
- Joram Barrez, Frederik Heremans, Daniel Meyer
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultType
-
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
-
Field Summary
-
Fields inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
queryVariableValues, variableValueProvider
-
Fields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutor
-
Fields 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
Constructors Constructor Description ExecutionQueryImpl()ExecutionQueryImpl(CommandContext commandContext, ProcessEngineConfigurationImpl processEngineConfiguration)ExecutionQueryImpl(CommandExecutor commandExecutor, ProcessEngineConfigurationImpl processEngineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionQueryImplactivityId(String activityId)Only select executions which contain an activity with the given id.ExecutionQueryendOr()End an OR statement.protected voidensureVariablesInitialized()ExecutionQueryeventSubscription(String eventType, String eventName)longexecuteCount(CommandContext commandContext)List<Execution>executeList(CommandContext commandContext)ExecutionQueryImplexecutionId(String executionId)Only select executions with the given id.ExecutionQueryexecutionReferenceId(String referenceId)Only select executions with the given reference id.ExecutionQueryexecutionReferenceType(String referenceType)Only select executions with the given reference type.ExecutionQueryImplexecutionTenantId(String tenantId)Only select process instances that have the given tenant id.ExecutionQueryImplexecutionTenantIdLike(String tenantIdLike)Only select process instances with a tenant id like the given one.ExecutionQueryImplexecutionWithoutTenantId()Only select process instances that do not have a tenant id.StringgetActiveActivityId()Set<String>getActiveActivityIds()StringgetActivityId()StringgetBusinessKey()StringgetBusinessKeyLike()StringgetBusinessStatus()StringgetBusinessStatusLike()StringgetCallbackId()StringgetCallbackType()StringgetDeploymentId()List<String>getDeploymentIds()List<EventSubscriptionQueryValue>getEventSubscriptions()StringgetExecutionId()StringgetId()IdentityLinkQueryObjectgetInvolvedGroupIdentityLink()Set<String>getInvolvedGroups()StringgetInvolvedUser()IdentityLinkQueryObjectgetInvolvedUserIdentityLink()StringgetLocale()StringgetName()StringgetNameLike()StringgetNameLikeIgnoreCase()booleangetOnlyProcessInstances()List<ExecutionQueryImpl>getOrQueryObjects()StringgetParentId()StringgetProcessDefinitionCategory()StringgetProcessDefinitionEngineVersion()StringgetProcessDefinitionId()Set<String>getProcessDefinitionIds()StringgetProcessDefinitionKey()Set<String>getProcessDefinitionKeys()StringgetProcessDefinitionName()IntegergetProcessDefinitionVersion()StringgetProcessInstanceId()StringgetProcessInstanceIds()StringgetReferenceId()StringgetReferenceType()StringgetRootProcessInstanceId()List<List<String>>getSafeInvolvedGroups()DategetStartedAfter()DategetStartedBefore()StringgetStartedBy()StringgetSubProcessInstanceId()StringgetSuperProcessInstanceId()SuspensionStategetSuspensionState()StringgetTenantId()StringgetTenantIdLike()booleanisActive()booleanisExcludeSubprocesses()booleanisIncludeChildExecutionsWithBusinessKeyQuery()booleanisOnlyChildExecutions()booleanisOnlyProcessInstanceExecutions()booleanisOnlySubProcessExecutions()booleanisProcessInstancesOnly()booleanisWithLocalizationFallback()booleanisWithoutTenantId()ExecutionQuerylocale(String locale)Localize execution name and description to specified locale.protected voidlocalize(Execution execution, String activityId)ExecutionQuerymessageEventSubscriptionName(String messageName)Only select executions which have a message event subscription for the given messageName.ExecutionQueryonlyChildExecutions()Only selects executions that have a parent id set, ie non-processinstance executions.ExecutionQueryonlyProcessInstanceExecutions()Only selects executions that have no parent id set, ie process instance executionsExecutionQueryonlySubProcessExecutions()Only selects executions that are a subprocess.ExecutionQueryor()Begin an OR statement.ExecutionQueryImplorderByProcessDefinitionId()Order by process definition id (needs to be followed byQuery.asc()orQuery.desc()).ExecutionQueryImplorderByProcessDefinitionKey()Order by process definition key (needs to be followed byQuery.asc()orQuery.desc()).ExecutionQueryImplorderByProcessInstanceId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).ExecutionQueryImplorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).ExecutionQueryImplparentId(String parentId)Only select executions which are a direct child-execution of the execution with the given id.ExecutionQueryprocessDefinitionCategory(String processDefinitionCategory)Only select executions which have the given process definition category.ExecutionQueryprocessDefinitionEngineVersion(String processDefinitionEngineVersion)Only select executions which have the given process definition engine version.ExecutionQueryImplprocessDefinitionId(String processDefinitionId)Only select executions which have the given process definition id.ExecutionQueryImplprocessDefinitionKey(String processDefinitionKey)Only select executions which have the given process definition key.ExecutionQueryprocessDefinitionKeys(Set<String> processDefinitionKeys)Only select executions which have process definitions with the given keys.ExecutionQueryprocessDefinitionName(String processDefinitionName)Only select executions which have the given process definition name.ExecutionQueryprocessDefinitionVersion(Integer processDefinitionVersion)Only select executions which have the given process definition version.ExecutionQueryprocessInstanceBusinessKey(String businessKey)Only executions with the given business key.ExecutionQueryprocessInstanceBusinessKey(String processInstanceBusinessKey, boolean includeChildExecutions)Only executions with the given business key.ExecutionQueryImplprocessInstanceId(String processInstanceId)Only select executions which have the given process instance id.ExecutionQueryprocessVariableExists(String name)Only select executions which are part of a process that have a variable with the given name.ExecutionQueryprocessVariableNotExists(String name)Only select executions which are part of a process that don't have a variable with the given name.ExecutionQueryprocessVariableValueEquals(Object variableValue)Only select executions which are part of a process that have at least one variable with the given value.ExecutionQueryprocessVariableValueEquals(String variableName, Object variableValue)Only select executions which are part of a process that have a variable with the given name set to the given value.ExecutionQueryprocessVariableValueEqualsIgnoreCase(String name, String value)Only select executions which are part of a process that have a local string variable with the given value, case insensitive.ExecutionQueryprocessVariableValueGreaterThan(String name, Object value)Only select executions which have a process instance variable value greater than the passed value.ExecutionQueryprocessVariableValueGreaterThanOrEqual(String name, Object value)Only select executions which have a process instance variable value greater than or equal to the passed value.ExecutionQueryprocessVariableValueLessThan(String name, Object value)Only select executions which have a process instance variable value less than the passed value.ExecutionQueryprocessVariableValueLessThanOrEqual(String name, Object value)Only select executions which have a process instance variable value less than or equal to the passed value.ExecutionQueryprocessVariableValueLike(String name, String value)Only select executions which are part of a process that have at least one variable like the given value.ExecutionQueryprocessVariableValueLikeIgnoreCase(String name, String value)Only select executions which are part of a process that have at least one variable like the given value (case insensitive).ExecutionQueryprocessVariableValueNotEquals(String variableName, Object variableValue)Only select executions which are part of a process that have a variable with the given name, but with a different value than the passed value.ExecutionQueryprocessVariableValueNotEqualsIgnoreCase(String name, String value)Only select executions which are part of a process that have a local string variable which is not the given value, case insensitive.ExecutionQueryImplrootProcessInstanceId(String rootProcessInstanceId)Only select executions which have the given root process instance id.voidsetActiveActivityId(String activeActivityId)voidsetActiveActivityIds(Set<String> activeActivityIds)voidsetDeploymentId(String deploymentId)voidsetDeploymentIds(List<String> deploymentIds)voidsetEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions)voidsetInvolvedGroups(Set<String> involvedGroups)voidsetInvolvedUser(String involvedUser)voidsetName(String name)voidsetNameLike(String nameLike)voidsetNameLikeIgnoreCase(String nameLikeIgnoreCase)voidsetSafeInvolvedGroups(List<List<String>> safeInvolvedGroups)voidsetStartedAfter(Date startedAfter)voidsetStartedBefore(Date startedBefore)voidsetStartedBy(String startedBy)voidsetSuspensionState(SuspensionState suspensionState)ExecutionQuerysignalEventSubscription(String signalName)ExecutionQuerysignalEventSubscriptionName(String signalName)Only select executions which have a signal event subscription for the given signal name.ExecutionQuerystartedAfter(Date afterTime)Only select executions that were started after the given start time.ExecutionQuerystartedBefore(Date beforeTime)Only select executions that were started before the given start time.ExecutionQuerystartedBy(String userId)Only select executions that were started after by the given user id.ExecutionQueryvariableExists(String name)Only select executions which have a local variable with the given name.ExecutionQueryvariableNotExists(String name)Only select executions which does not have a local variable with the given name.ExecutionQueryvariableValueEquals(Object variableValue)Only select executions which have at least one local variable with the given value.ExecutionQueryvariableValueEquals(String variableName, Object variableValue)Only select executions which have a local variable with the given value.ExecutionQueryvariableValueEqualsIgnoreCase(String name, String value)Only select executions which have a local string variable with the given value, case insensitive.ExecutionQueryvariableValueGreaterThan(String name, Object value)Only select executions which have a local variable value greater than the passed value.ExecutionQueryvariableValueGreaterThanOrEqual(String name, Object value)Only select executions which have a local variable value greater than or equal to the passed value.ExecutionQueryvariableValueLessThan(String name, Object value)Only select executions which have a local variable value less than the passed value.ExecutionQueryvariableValueLessThanOrEqual(String name, Object value)Only select executions which have a local variable value less than or equal to the passed value.ExecutionQueryvariableValueLike(String name, String value)Only select executions which have a local variable value like the given value.ExecutionQueryvariableValueLikeIgnoreCase(String name, String value)Only select executions which have a local variable value like the given value (case insensitive).ExecutionQueryvariableValueNotEquals(String variableName, Object variableValue)Only select executions which have a local variable with the given name, but with a different value than the passed value.ExecutionQueryvariableValueNotEqualsIgnoreCase(String name, String value)Only select executions which have a local string variable which is not the given value, case insensitive.ExecutionQuerywithLocalizationFallback()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, variableValueNotEqualsIgnoreCase
-
Methods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
-
Methods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.flowable.common.engine.api.query.CacheAwareQuery
enhanceCachedValue
-
-
-
-
Field Detail
-
processEngineConfiguration
protected ProcessEngineConfigurationImpl processEngineConfiguration
-
processDefinitionId
protected String processDefinitionId
-
processDefinitionKey
protected String processDefinitionKey
-
processDefinitionCategory
protected String processDefinitionCategory
-
processDefinitionName
protected String processDefinitionName
-
processDefinitionVersion
protected Integer processDefinitionVersion
-
processDefinitionEngineVersion
protected String processDefinitionEngineVersion
-
activityId
protected String activityId
-
executionId
protected String executionId
-
parentId
protected String parentId
-
onlyChildExecutions
protected boolean onlyChildExecutions
-
onlySubProcessExecutions
protected boolean onlySubProcessExecutions
-
onlyProcessInstanceExecutions
protected boolean onlyProcessInstanceExecutions
-
processInstanceId
protected String processInstanceId
-
rootProcessInstanceId
protected String rootProcessInstanceId
-
eventSubscriptions
protected List<EventSubscriptionQueryValue> eventSubscriptions
-
tenantId
protected String tenantId
-
tenantIdLike
protected String tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
locale
protected String locale
-
withLocalizationFallback
protected boolean withLocalizationFallback
-
startedBefore
protected Date startedBefore
-
startedAfter
protected Date startedAfter
-
startedBy
protected String startedBy
-
superProcessInstanceId
protected String superProcessInstanceId
-
subProcessInstanceId
protected String subProcessInstanceId
-
excludeSubprocesses
protected boolean excludeSubprocesses
-
suspensionState
protected SuspensionState suspensionState
-
businessKey
protected String businessKey
-
businessKeyLike
protected String businessKeyLike
-
includeChildExecutionsWithBusinessKeyQuery
protected boolean includeChildExecutionsWithBusinessKeyQuery
-
isActive
protected boolean isActive
-
involvedUser
protected String involvedUser
-
name
protected String name
-
nameLike
protected String nameLike
-
nameLikeIgnoreCase
protected String nameLikeIgnoreCase
-
deploymentId
protected String deploymentId
-
activeActivityId
protected String activeActivityId
-
callbackId
protected String callbackId
-
callbackType
protected String callbackType
-
referenceId
protected String referenceId
-
referenceType
protected String referenceType
-
orQueryObjects
protected List<ExecutionQueryImpl> orQueryObjects
-
currentOrQueryObject
protected ExecutionQueryImpl currentOrQueryObject
-
inOrStatement
protected boolean inOrStatement
-
-
Constructor Detail
-
ExecutionQueryImpl
public ExecutionQueryImpl()
-
ExecutionQueryImpl
public ExecutionQueryImpl(CommandContext commandContext, ProcessEngineConfigurationImpl processEngineConfiguration)
-
ExecutionQueryImpl
public ExecutionQueryImpl(CommandExecutor commandExecutor, ProcessEngineConfigurationImpl processEngineConfiguration)
-
-
Method Detail
-
isProcessInstancesOnly
public boolean isProcessInstancesOnly()
-
processDefinitionId
public ExecutionQueryImpl processDefinitionId(String processDefinitionId)
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition id.- Specified by:
processDefinitionIdin interfaceExecutionQuery
-
processDefinitionKey
public ExecutionQueryImpl processDefinitionKey(String processDefinitionKey)
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition key.- Specified by:
processDefinitionKeyin interfaceExecutionQuery
-
processDefinitionCategory
public ExecutionQuery processDefinitionCategory(String processDefinitionCategory)
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition category.- Specified by:
processDefinitionCategoryin interfaceExecutionQuery
-
processDefinitionName
public ExecutionQuery processDefinitionName(String processDefinitionName)
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition name.- Specified by:
processDefinitionNamein interfaceExecutionQuery
-
processDefinitionVersion
public ExecutionQuery processDefinitionVersion(Integer processDefinitionVersion)
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition version. Particularly useful when used in combination withExecutionQuery.processDefinitionKey(String)- Specified by:
processDefinitionVersionin interfaceExecutionQuery
-
processDefinitionEngineVersion
public ExecutionQuery processDefinitionEngineVersion(String processDefinitionEngineVersion)
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition engine version.- Specified by:
processDefinitionEngineVersionin interfaceExecutionQuery
-
processInstanceId
public ExecutionQueryImpl processInstanceId(String processInstanceId)
Description copied from interface:ExecutionQueryOnly select executions which have the given process instance id.- Specified by:
processInstanceIdin interfaceExecutionQuery
-
rootProcessInstanceId
public ExecutionQueryImpl rootProcessInstanceId(String rootProcessInstanceId)
Description copied from interface:ExecutionQueryOnly select executions which have the given root process instance id.- Specified by:
rootProcessInstanceIdin interfaceExecutionQuery
-
processInstanceBusinessKey
public ExecutionQuery processInstanceBusinessKey(String businessKey)
Description copied from interface:ExecutionQueryOnly executions with the given business key. Note that only process instances have a business key and as such, child executions will NOT be returned. If you want to return child executions of the process instance with the given business key too, use theExecutionQuery.processInstanceBusinessKey(String, boolean)method with a boolean value of true instead.- Specified by:
processInstanceBusinessKeyin interfaceExecutionQuery
-
processInstanceBusinessKey
public ExecutionQuery processInstanceBusinessKey(String processInstanceBusinessKey, boolean includeChildExecutions)
Description copied from interface:ExecutionQueryOnly executions with the given business key. Similar toExecutionQuery.processInstanceBusinessKey(String), but allows to choose whether child executions are returned or not.- Specified by:
processInstanceBusinessKeyin interfaceExecutionQuery
-
processDefinitionKeys
public ExecutionQuery processDefinitionKeys(Set<String> processDefinitionKeys)
Description copied from interface:ExecutionQueryOnly select executions which have process definitions with the given keys.- Specified by:
processDefinitionKeysin interfaceExecutionQuery
-
executionId
public ExecutionQueryImpl executionId(String executionId)
Description copied from interface:ExecutionQueryOnly select executions with the given id.- Specified by:
executionIdin interfaceExecutionQuery
-
activityId
public ExecutionQueryImpl activityId(String activityId)
Description copied from interface:ExecutionQueryOnly select executions which contain an activity with the given id.- Specified by:
activityIdin interfaceExecutionQuery
-
parentId
public ExecutionQueryImpl parentId(String parentId)
Description copied from interface:ExecutionQueryOnly select executions which are a direct child-execution of the execution with the given id.- Specified by:
parentIdin interfaceExecutionQuery
-
onlyChildExecutions
public ExecutionQuery onlyChildExecutions()
Description copied from interface:ExecutionQueryOnly selects executions that have a parent id set, ie non-processinstance executions.- Specified by:
onlyChildExecutionsin interfaceExecutionQuery
-
onlySubProcessExecutions
public ExecutionQuery onlySubProcessExecutions()
Description copied from interface:ExecutionQueryOnly selects executions that are a subprocess.- Specified by:
onlySubProcessExecutionsin interfaceExecutionQuery
-
onlyProcessInstanceExecutions
public ExecutionQuery onlyProcessInstanceExecutions()
Description copied from interface:ExecutionQueryOnly selects executions that have no parent id set, ie process instance executions- Specified by:
onlyProcessInstanceExecutionsin interfaceExecutionQuery
-
executionTenantId
public ExecutionQueryImpl executionTenantId(String tenantId)
Description copied from interface:ExecutionQueryOnly select process instances that have the given tenant id.- Specified by:
executionTenantIdin interfaceExecutionQuery
-
executionTenantIdLike
public ExecutionQueryImpl executionTenantIdLike(String tenantIdLike)
Description copied from interface:ExecutionQueryOnly select process instances with a tenant id like the given one.- Specified by:
executionTenantIdLikein interfaceExecutionQuery
-
executionWithoutTenantId
public ExecutionQueryImpl executionWithoutTenantId()
Description copied from interface:ExecutionQueryOnly select process instances that do not have a tenant id.- Specified by:
executionWithoutTenantIdin interfaceExecutionQuery
-
executionReferenceId
public ExecutionQuery executionReferenceId(String referenceId)
Description copied from interface:ExecutionQueryOnly select executions with the given reference id.- Specified by:
executionReferenceIdin interfaceExecutionQuery
-
executionReferenceType
public ExecutionQuery executionReferenceType(String referenceType)
Description copied from interface:ExecutionQueryOnly select executions with the given reference type.- Specified by:
executionReferenceTypein interfaceExecutionQuery
-
signalEventSubscription
public ExecutionQuery signalEventSubscription(String signalName)
-
signalEventSubscriptionName
public ExecutionQuery signalEventSubscriptionName(String signalName)
Description copied from interface:ExecutionQueryOnly select executions which have a signal event subscription for the given signal name. (The signalName is specified using the 'name' attribute of the signal element in the BPMN 2.0 XML.)- Specified by:
signalEventSubscriptionNamein interfaceExecutionQuery- Parameters:
signalName- the name of the signal the execution has subscribed to
-
messageEventSubscriptionName
public ExecutionQuery messageEventSubscriptionName(String messageName)
Description copied from interface:ExecutionQueryOnly select executions which have a message event subscription for the given messageName. (The messageName is specified using the 'name' attribute of the message element in the BPMN 2.0 XML.)- Specified by:
messageEventSubscriptionNamein interfaceExecutionQuery- Parameters:
messageName- the name of the message the execution has subscribed to
-
eventSubscription
public ExecutionQuery eventSubscription(String eventType, String eventName)
-
processVariableValueEquals
public ExecutionQuery processVariableValueEquals(String variableName, Object variableValue)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have a variable with the given name set to the given value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueEqualsin interfaceExecutionQuery
-
processVariableValueEquals
public ExecutionQuery processVariableValueEquals(Object variableValue)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have at least one variable with the given value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueEqualsin interfaceExecutionQuery
-
processVariableValueNotEquals
public ExecutionQuery processVariableValueNotEquals(String variableName, Object variableValue)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have a 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:
processVariableValueNotEqualsin interfaceExecutionQuery
-
processVariableValueEqualsIgnoreCase
public ExecutionQuery processVariableValueEqualsIgnoreCase(String name, String value)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that 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:
processVariableValueEqualsIgnoreCasein interfaceExecutionQuery- Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
processVariableValueNotEqualsIgnoreCase
public ExecutionQuery processVariableValueNotEqualsIgnoreCase(String name, String value)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that 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:
processVariableValueNotEqualsIgnoreCasein interfaceExecutionQuery- Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
processVariableValueLike
public ExecutionQuery processVariableValueLike(String name, String value)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have at least one variable like the given value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueLikein interfaceExecutionQuery
-
processVariableValueLikeIgnoreCase
public ExecutionQuery processVariableValueLikeIgnoreCase(String name, String value)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have at least one variable like the given value (case insensitive). Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueLikeIgnoreCasein interfaceExecutionQuery
-
processVariableValueGreaterThan
public ExecutionQuery processVariableValueGreaterThan(String name, Object value)
Description copied from interface:ExecutionQueryOnly select executions which have a process instance variable value greater than the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueGreaterThanin interfaceExecutionQuery- Parameters:
name- variable name, cannot be null.value- variable value, cannot be null.
-
processVariableValueGreaterThanOrEqual
public ExecutionQuery processVariableValueGreaterThanOrEqual(String name, Object value)
Description copied from interface:ExecutionQueryOnly select executions which have a process instance 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:
processVariableValueGreaterThanOrEqualin interfaceExecutionQuery- Parameters:
name- variable name, cannot be null.value- variable value, cannot be null.
-
processVariableValueLessThan
public ExecutionQuery processVariableValueLessThan(String name, Object value)
Description copied from interface:ExecutionQueryOnly select executions which have a process instance variable value less than the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueLessThanin interfaceExecutionQuery- Parameters:
name- variable name, cannot be null.value- variable value, cannot be null.
-
processVariableValueLessThanOrEqual
public ExecutionQuery processVariableValueLessThanOrEqual(String name, Object value)
Description copied from interface:ExecutionQueryOnly select executions which have a process instance 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:
processVariableValueLessThanOrEqualin interfaceExecutionQuery- Parameters:
name- variable name, cannot be null.value- variable value, cannot be null.
-
processVariableExists
public ExecutionQuery processVariableExists(String name)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have a variable with the given name.- Specified by:
processVariableExistsin interfaceExecutionQuery- Parameters:
name- cannot be null.
-
processVariableNotExists
public ExecutionQuery processVariableNotExists(String name)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that don't have a variable with the given name.- Specified by:
processVariableNotExistsin interfaceExecutionQuery- Parameters:
name- cannot be null.
-
variableValueEquals
public ExecutionQuery variableValueEquals(String variableName, Object variableValue)
Description copied from interface:ExecutionQueryOnly select executions which have a local 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 interfaceExecutionQuery- Overrides:
variableValueEqualsin classAbstractVariableQueryImpl<ExecutionQuery,Execution>- Parameters:
variableName- name of the variable, cannot be null.
-
variableValueEquals
public ExecutionQuery variableValueEquals(Object variableValue)
Description copied from interface:ExecutionQueryOnly select executions which have at least one local 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 interfaceExecutionQuery- Overrides:
variableValueEqualsin classAbstractVariableQueryImpl<ExecutionQuery,Execution>
-
variableValueNotEquals
public ExecutionQuery variableValueNotEquals(String variableName, Object variableValue)
Description copied from interface:ExecutionQueryOnly select executions which have a local 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 interfaceExecutionQuery- Overrides:
variableValueNotEqualsin classAbstractVariableQueryImpl<ExecutionQuery,Execution>- Parameters:
variableName- name of the variable, cannot be null.
-
variableValueEqualsIgnoreCase
public ExecutionQuery variableValueEqualsIgnoreCase(String name, String value)
Description copied from interface:ExecutionQueryOnly select executions 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 interfaceExecutionQuery- Overrides:
variableValueEqualsIgnoreCasein classAbstractVariableQueryImpl<ExecutionQuery,Execution>- Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
variableValueNotEqualsIgnoreCase
public ExecutionQuery variableValueNotEqualsIgnoreCase(String name, String value)
Description copied from interface:ExecutionQueryOnly select executions 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 interfaceExecutionQuery- Overrides:
variableValueNotEqualsIgnoreCasein classAbstractVariableQueryImpl<ExecutionQuery,Execution>- Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
variableValueLike
public ExecutionQuery variableValueLike(String name, String value)
Description copied from interface:ExecutionQueryOnly select executions which have a local variable value like the given value. This be used on string variables only.- Specified by:
variableValueLikein interfaceExecutionQuery- Overrides:
variableValueLikein classAbstractVariableQueryImpl<ExecutionQuery,Execution>- 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 ExecutionQuery variableValueLikeIgnoreCase(String name, String value)
Description copied from interface:ExecutionQueryOnly select executions which have a local variable value like the given value (case insensitive). This be used on string variables only.- Specified by:
variableValueLikeIgnoreCasein interfaceExecutionQuery- Overrides:
variableValueLikeIgnoreCasein classAbstractVariableQueryImpl<ExecutionQuery,Execution>- 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%).
-
variableValueGreaterThan
public ExecutionQuery variableValueGreaterThan(String name, Object value)
Description copied from interface:ExecutionQueryOnly select executions which have a local variable value greater than the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueGreaterThanin interfaceExecutionQuery- Overrides:
variableValueGreaterThanin classAbstractVariableQueryImpl<ExecutionQuery,Execution>- Parameters:
name- variable name, cannot be null.value- variable value, cannot be null.
-
variableValueGreaterThanOrEqual
public ExecutionQuery variableValueGreaterThanOrEqual(String name, Object value)
Description copied from interface:ExecutionQueryOnly select executions which have a local 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 interfaceExecutionQuery- Overrides:
variableValueGreaterThanOrEqualin classAbstractVariableQueryImpl<ExecutionQuery,Execution>- Parameters:
name- variable name, cannot be null.value- variable value, cannot be null.
-
variableValueLessThan
public ExecutionQuery variableValueLessThan(String name, Object value)
Description copied from interface:ExecutionQueryOnly select executions which have a local variable value less than the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueLessThanin interfaceExecutionQuery- Overrides:
variableValueLessThanin classAbstractVariableQueryImpl<ExecutionQuery,Execution>- Parameters:
name- variable name, cannot be null.value- variable value, cannot be null.
-
variableValueLessThanOrEqual
public ExecutionQuery variableValueLessThanOrEqual(String name, Object value)
Description copied from interface:ExecutionQueryOnly select executions which have a local 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 interfaceExecutionQuery- Overrides:
variableValueLessThanOrEqualin classAbstractVariableQueryImpl<ExecutionQuery,Execution>- Parameters:
name- variable name, cannot be null.value- variable value, cannot be null.
-
variableExists
public ExecutionQuery variableExists(String name)
Description copied from interface:ExecutionQueryOnly select executions which have a local variable with the given name.- Specified by:
variableExistsin interfaceExecutionQuery- Overrides:
variableExistsin classAbstractVariableQueryImpl<ExecutionQuery,Execution>- Parameters:
name- cannot be null.
-
variableNotExists
public ExecutionQuery variableNotExists(String name)
Description copied from interface:ExecutionQueryOnly select executions which does not have a local variable with the given name.- Specified by:
variableNotExistsin interfaceExecutionQuery- Overrides:
variableNotExistsin classAbstractVariableQueryImpl<ExecutionQuery,Execution>- Parameters:
name- cannot be null.
-
locale
public ExecutionQuery locale(String locale)
Description copied from interface:ExecutionQueryLocalize execution name and description to specified locale.- Specified by:
localein interfaceExecutionQuery
-
withLocalizationFallback
public ExecutionQuery withLocalizationFallback()
Description copied from interface:ExecutionQueryInstruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.- Specified by:
withLocalizationFallbackin interfaceExecutionQuery
-
startedBefore
public ExecutionQuery startedBefore(Date beforeTime)
Description copied from interface:ExecutionQueryOnly select executions that were started before the given start time.- Specified by:
startedBeforein interfaceExecutionQuery- Parameters:
beforeTime- executions started before this time will be returned (cannot be null)
-
startedAfter
public ExecutionQuery startedAfter(Date afterTime)
Description copied from interface:ExecutionQueryOnly select executions that were started after the given start time.- Specified by:
startedAfterin interfaceExecutionQuery- Parameters:
afterTime- executions started after this time will be returned (cannot be null)
-
startedBy
public ExecutionQuery startedBy(String userId)
Description copied from interface:ExecutionQueryOnly select executions that were started after by the given user id.- Specified by:
startedByin interfaceExecutionQuery- Parameters:
userId- the user id of the authenticated user that started the execution (cannot be null)
-
or
public ExecutionQuery or()
Description copied from interface:ExecutionQueryBegin 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 interfaceExecutionQuery
-
endOr
public ExecutionQuery endOr()
Description copied from interface:ExecutionQueryEnd an OR statement. Only one OR statement is allowed, for the second call to this method an exception will be thrown.- Specified by:
endOrin interfaceExecutionQuery
-
orderByProcessInstanceId
public ExecutionQueryImpl orderByProcessInstanceId()
Description copied from interface:ExecutionQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceExecutionQuery
-
orderByProcessDefinitionId
public ExecutionQueryImpl orderByProcessDefinitionId()
Description copied from interface:ExecutionQueryOrder by process definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceExecutionQuery
-
orderByProcessDefinitionKey
public ExecutionQueryImpl orderByProcessDefinitionKey()
Description copied from interface:ExecutionQueryOrder by process definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionKeyin interfaceExecutionQuery
-
orderByTenantId
public ExecutionQueryImpl orderByTenantId()
Description copied from interface:ExecutionQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceExecutionQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractVariableQueryImpl<ExecutionQuery,Execution>
-
executeList
public List<Execution> executeList(CommandContext commandContext)
- Specified by:
executeListin classAbstractVariableQueryImpl<ExecutionQuery,Execution>
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
- Overrides:
ensureVariablesInitializedin classAbstractVariableQueryImpl<ExecutionQuery,Execution>
-
getOnlyProcessInstances
public boolean getOnlyProcessInstances()
-
getProcessDefinitionKey
public String getProcessDefinitionKey()
-
getProcessDefinitionId
public String getProcessDefinitionId()
-
getProcessDefinitionCategory
public String getProcessDefinitionCategory()
-
getProcessDefinitionName
public String getProcessDefinitionName()
-
getProcessDefinitionVersion
public Integer getProcessDefinitionVersion()
-
getProcessDefinitionEngineVersion
public String getProcessDefinitionEngineVersion()
-
getActivityId
public String getActivityId()
-
getProcessInstanceId
public String getProcessInstanceId()
-
getRootProcessInstanceId
public String getRootProcessInstanceId()
-
getProcessInstanceIds
public String getProcessInstanceIds()
-
getBusinessKey
public String getBusinessKey()
-
getBusinessKeyLike
public String getBusinessKeyLike()
-
getBusinessStatus
public String getBusinessStatus()
-
getBusinessStatusLike
public String getBusinessStatusLike()
-
getExecutionId
public String getExecutionId()
-
getId
public String getId()
- Specified by:
getIdin interfaceCacheAwareQuery<ExecutionEntity>
-
getSuperProcessInstanceId
public String getSuperProcessInstanceId()
-
getSubProcessInstanceId
public String getSubProcessInstanceId()
-
isExcludeSubprocesses
public boolean isExcludeSubprocesses()
-
getSuspensionState
public SuspensionState getSuspensionState()
-
setSuspensionState
public void setSuspensionState(SuspensionState suspensionState)
-
getEventSubscriptions
public List<EventSubscriptionQueryValue> getEventSubscriptions()
-
isIncludeChildExecutionsWithBusinessKeyQuery
public boolean isIncludeChildExecutionsWithBusinessKeyQuery()
-
setEventSubscriptions
public void setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions)
-
isActive
public boolean isActive()
-
getInvolvedUser
public String getInvolvedUser()
-
setInvolvedUser
public void setInvolvedUser(String involvedUser)
-
getInvolvedUserIdentityLink
public IdentityLinkQueryObject getInvolvedUserIdentityLink()
-
getInvolvedGroupIdentityLink
public IdentityLinkQueryObject getInvolvedGroupIdentityLink()
-
getParentId
public String getParentId()
-
isOnlyChildExecutions
public boolean isOnlyChildExecutions()
-
isOnlySubProcessExecutions
public boolean isOnlySubProcessExecutions()
-
isOnlyProcessInstanceExecutions
public boolean isOnlyProcessInstanceExecutions()
-
getTenantId
public String getTenantId()
-
getTenantIdLike
public String getTenantIdLike()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
getReferenceId
public String getReferenceId()
-
getReferenceType
public String getReferenceType()
-
getName
public String getName()
-
getNameLike
public String getNameLike()
-
setName
public void setName(String name)
-
setNameLike
public void setNameLike(String nameLike)
-
getNameLikeIgnoreCase
public String getNameLikeIgnoreCase()
-
setNameLikeIgnoreCase
public void setNameLikeIgnoreCase(String nameLikeIgnoreCase)
-
getDeploymentId
public String getDeploymentId()
-
setDeploymentId
public void setDeploymentId(String deploymentId)
-
getActiveActivityId
public String getActiveActivityId()
-
setActiveActivityId
public void setActiveActivityId(String activeActivityId)
-
getStartedBefore
public Date getStartedBefore()
-
setStartedBefore
public void setStartedBefore(Date startedBefore)
-
getStartedAfter
public Date getStartedAfter()
-
setStartedAfter
public void setStartedAfter(Date startedAfter)
-
getStartedBy
public String getStartedBy()
-
setStartedBy
public void setStartedBy(String startedBy)
-
getLocale
public String getLocale()
-
isWithLocalizationFallback
public boolean isWithLocalizationFallback()
-
getCallbackId
public String getCallbackId()
-
getCallbackType
public String getCallbackType()
-
getOrQueryObjects
public List<ExecutionQueryImpl> getOrQueryObjects()
-
-