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
,org.flowable.common.engine.api.query.CacheAwareQuery<org.flowable.engine.impl.persistence.entity.ExecutionEntity>
,org.flowable.common.engine.api.query.Query<ExecutionQuery,Execution>
,org.flowable.common.engine.impl.interceptor.Command<Object>
,ExecutionQuery
public class ExecutionQueryImpl extends org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution> implements ExecutionQuery, org.flowable.common.engine.api.query.CacheAwareQuery<org.flowable.engine.impl.persistence.entity.ExecutionEntity>
- Author:
- Joram Barrez, Frederik Heremans, Daniel Meyer
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
queryVariableValues, variableValueProvider
-
-
Constructor Summary
Constructors Constructor Description ExecutionQueryImpl()
ExecutionQueryImpl(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
ExecutionQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor, org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionQueryImpl
activityId(String activityId)
Only select executions which contain an activity with the given id.ExecutionQuery
endOr()
End an OR statement.protected void
ensureVariablesInitialized()
ExecutionQuery
eventSubscription(String eventType, String eventName)
long
executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
List<Execution>
executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
ExecutionQueryImpl
executionId(String executionId)
Only select executions with the given id.ExecutionQuery
executionReferenceId(String referenceId)
Only select executions with the given reference id.ExecutionQuery
executionReferenceType(String referenceType)
Only select executions with the given reference type.ExecutionQueryImpl
executionTenantId(String tenantId)
Only select process instances that have the given tenant id.ExecutionQueryImpl
executionTenantIdLike(String tenantIdLike)
Only select process instances with a tenant id like the given one.ExecutionQueryImpl
executionWithoutTenantId()
Only select process instances that do not have a tenant id.String
getActiveActivityId()
Set<String>
getActiveActivityIds()
String
getActivityId()
String
getBusinessKey()
String
getBusinessKeyLike()
String
getBusinessStatus()
String
getBusinessStatusLike()
String
getCallbackId()
String
getCallbackType()
String
getDeploymentId()
List<String>
getDeploymentIds()
List<org.flowable.eventsubscription.service.impl.EventSubscriptionQueryValue>
getEventSubscriptions()
String
getExecutionId()
String
getId()
IdentityLinkQueryObject
getInvolvedGroupIdentityLink()
Set<String>
getInvolvedGroups()
String
getInvolvedUser()
IdentityLinkQueryObject
getInvolvedUserIdentityLink()
String
getLocale()
String
getName()
String
getNameLike()
String
getNameLikeIgnoreCase()
boolean
getOnlyProcessInstances()
List<ExecutionQueryImpl>
getOrQueryObjects()
String
getParentId()
String
getProcessDefinitionCategory()
String
getProcessDefinitionEngineVersion()
String
getProcessDefinitionId()
Set<String>
getProcessDefinitionIds()
String
getProcessDefinitionKey()
Set<String>
getProcessDefinitionKeys()
String
getProcessDefinitionName()
Integer
getProcessDefinitionVersion()
String
getProcessInstanceId()
String
getProcessInstanceIds()
String
getReferenceId()
String
getReferenceType()
String
getRootProcessInstanceId()
List<List<String>>
getSafeInvolvedGroups()
Date
getStartedAfter()
Date
getStartedBefore()
String
getStartedBy()
String
getSubProcessInstanceId()
String
getSuperProcessInstanceId()
org.flowable.common.engine.impl.db.SuspensionState
getSuspensionState()
String
getTenantId()
String
getTenantIdLike()
boolean
isActive()
boolean
isExcludeSubprocesses()
boolean
isIncludeChildExecutionsWithBusinessKeyQuery()
boolean
isOnlyChildExecutions()
boolean
isOnlyProcessInstanceExecutions()
boolean
isOnlySubProcessExecutions()
boolean
isProcessInstancesOnly()
boolean
isWithLocalizationFallback()
boolean
isWithoutTenantId()
ExecutionQuery
locale(String locale)
Localize execution name and description to specified locale.protected void
localize(Execution execution, String activityId)
ExecutionQuery
messageEventSubscriptionName(String messageName)
Only select executions which have a message event subscription for the given messageName.ExecutionQuery
onlyChildExecutions()
Only selects executions that have a parent id set, ie non-processinstance executions.ExecutionQuery
onlyProcessInstanceExecutions()
Only selects executions that have no parent id set, ie process instance executionsExecutionQuery
onlySubProcessExecutions()
Only selects executions that are a subprocess.ExecutionQuery
or()
Begin an OR statement.ExecutionQueryImpl
orderByProcessDefinitionId()
Order by process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).ExecutionQueryImpl
orderByProcessDefinitionKey()
Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).ExecutionQueryImpl
orderByProcessInstanceId()
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).ExecutionQueryImpl
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).ExecutionQueryImpl
parentId(String parentId)
Only select executions which are a direct child-execution of the execution with the given id.ExecutionQuery
processDefinitionCategory(String processDefinitionCategory)
Only select executions which have the given process definition category.ExecutionQuery
processDefinitionEngineVersion(String processDefinitionEngineVersion)
Only select executions which have the given process definition engine version.ExecutionQueryImpl
processDefinitionId(String processDefinitionId)
Only select executions which have the given process definition id.ExecutionQueryImpl
processDefinitionKey(String processDefinitionKey)
Only select executions which have the given process definition key.ExecutionQuery
processDefinitionKeys(Set<String> processDefinitionKeys)
Only select executions which have process definitions with the given keys.ExecutionQuery
processDefinitionName(String processDefinitionName)
Only select executions which have the given process definition name.ExecutionQuery
processDefinitionVersion(Integer processDefinitionVersion)
Only select executions which have the given process definition version.ExecutionQuery
processInstanceBusinessKey(String businessKey)
Only executions with the given business key.ExecutionQuery
processInstanceBusinessKey(String processInstanceBusinessKey, boolean includeChildExecutions)
Only executions with the given business key.ExecutionQueryImpl
processInstanceId(String processInstanceId)
Only select executions which have the given process instance id.ExecutionQuery
processVariableExists(String name)
Only select executions which are part of a process that have a variable with the given name.ExecutionQuery
processVariableNotExists(String name)
Only select executions which are part of a process that don't have a variable with the given name.ExecutionQuery
processVariableValueEquals(Object variableValue)
Only select executions which are part of a process that have at least one variable with the given value.ExecutionQuery
processVariableValueEquals(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.ExecutionQuery
processVariableValueEqualsIgnoreCase(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.ExecutionQuery
processVariableValueGreaterThan(String name, Object value)
Only select executions which have a process instance variable value greater than the passed value.ExecutionQuery
processVariableValueGreaterThanOrEqual(String name, Object value)
Only select executions which have a process instance variable value greater than or equal to the passed value.ExecutionQuery
processVariableValueLessThan(String name, Object value)
Only select executions which have a process instance variable value less than the passed value.ExecutionQuery
processVariableValueLessThanOrEqual(String name, Object value)
Only select executions which have a process instance variable value less than or equal to the passed value.ExecutionQuery
processVariableValueLike(String name, String value)
Only select executions which are part of a process that have at least one variable like the given value.ExecutionQuery
processVariableValueLikeIgnoreCase(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).ExecutionQuery
processVariableValueNotEquals(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.ExecutionQuery
processVariableValueNotEqualsIgnoreCase(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.ExecutionQueryImpl
rootProcessInstanceId(String rootProcessInstanceId)
Only select executions which have the given root process instance id.void
setActiveActivityId(String activeActivityId)
void
setActiveActivityIds(Set<String> activeActivityIds)
void
setDeploymentId(String deploymentId)
void
setDeploymentIds(List<String> deploymentIds)
void
setEventSubscriptions(List<org.flowable.eventsubscription.service.impl.EventSubscriptionQueryValue> eventSubscriptions)
void
setInvolvedGroups(Set<String> involvedGroups)
void
setInvolvedUser(String involvedUser)
void
setName(String name)
void
setNameLike(String nameLike)
void
setNameLikeIgnoreCase(String nameLikeIgnoreCase)
void
setSafeInvolvedGroups(List<List<String>> safeInvolvedGroups)
void
setStartedAfter(Date startedAfter)
void
setStartedBefore(Date startedBefore)
void
setStartedBy(String startedBy)
void
setSuspensionState(org.flowable.common.engine.impl.db.SuspensionState suspensionState)
ExecutionQuery
signalEventSubscription(String signalName)
ExecutionQuery
signalEventSubscriptionName(String signalName)
Only select executions which have a signal event subscription for the given signal name.ExecutionQuery
startedAfter(Date afterTime)
Only select executions that were started after the given start time.ExecutionQuery
startedBefore(Date beforeTime)
Only select executions that were started before the given start time.ExecutionQuery
startedBy(String userId)
Only select executions that were started after by the given user id.ExecutionQuery
variableExists(String name)
Only select executions which have a local variable with the given name.ExecutionQuery
variableNotExists(String name)
Only select executions which does not have a local variable with the given name.ExecutionQuery
variableValueEquals(Object variableValue)
Only select executions which have at least one local variable with the given value.ExecutionQuery
variableValueEquals(String variableName, Object variableValue)
Only select executions which have a local variable with the given value.ExecutionQuery
variableValueEqualsIgnoreCase(String name, String value)
Only select executions which have a local string variable with the given value, case insensitive.ExecutionQuery
variableValueGreaterThan(String name, Object value)
Only select executions which have a local variable value greater than the passed value.ExecutionQuery
variableValueGreaterThanOrEqual(String name, Object value)
Only select executions which have a local variable value greater than or equal to the passed value.ExecutionQuery
variableValueLessThan(String name, Object value)
Only select executions which have a local variable value less than the passed value.ExecutionQuery
variableValueLessThanOrEqual(String name, Object value)
Only select executions which have a local variable value less than or equal to the passed value.ExecutionQuery
variableValueLike(String name, String value)
Only select executions which have a local variable value like the given value.ExecutionQuery
variableValueLikeIgnoreCase(String name, String value)
Only select executions which have a local variable value like the given value (case insensitive).ExecutionQuery
variableValueNotEquals(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.ExecutionQuery
variableValueNotEqualsIgnoreCase(String name, String value)
Only select executions which have a local string variable which is not the given value, case insensitive.ExecutionQuery
withLocalizationFallback()
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
-
-
-
-
Field Detail
-
processEngineConfiguration
protected org.flowable.engine.impl.cfg.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<org.flowable.eventsubscription.service.impl.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 org.flowable.common.engine.impl.db.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(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
-
ExecutionQueryImpl
public ExecutionQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor, org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
-
-
Method Detail
-
isProcessInstancesOnly
public boolean isProcessInstancesOnly()
-
processDefinitionId
public ExecutionQueryImpl processDefinitionId(String processDefinitionId)
Description copied from interface:ExecutionQuery
Only select executions which have the given process definition id.- Specified by:
processDefinitionId
in interfaceExecutionQuery
-
processDefinitionKey
public ExecutionQueryImpl processDefinitionKey(String processDefinitionKey)
Description copied from interface:ExecutionQuery
Only select executions which have the given process definition key.- Specified by:
processDefinitionKey
in interfaceExecutionQuery
-
processDefinitionCategory
public ExecutionQuery processDefinitionCategory(String processDefinitionCategory)
Description copied from interface:ExecutionQuery
Only select executions which have the given process definition category.- Specified by:
processDefinitionCategory
in interfaceExecutionQuery
-
processDefinitionName
public ExecutionQuery processDefinitionName(String processDefinitionName)
Description copied from interface:ExecutionQuery
Only select executions which have the given process definition name.- Specified by:
processDefinitionName
in interfaceExecutionQuery
-
processDefinitionVersion
public ExecutionQuery processDefinitionVersion(Integer processDefinitionVersion)
Description copied from interface:ExecutionQuery
Only select executions which have the given process definition version. Particularly useful when used in combination withExecutionQuery.processDefinitionKey(String)
- Specified by:
processDefinitionVersion
in interfaceExecutionQuery
-
processDefinitionEngineVersion
public ExecutionQuery processDefinitionEngineVersion(String processDefinitionEngineVersion)
Description copied from interface:ExecutionQuery
Only select executions which have the given process definition engine version.- Specified by:
processDefinitionEngineVersion
in interfaceExecutionQuery
-
processInstanceId
public ExecutionQueryImpl processInstanceId(String processInstanceId)
Description copied from interface:ExecutionQuery
Only select executions which have the given process instance id.- Specified by:
processInstanceId
in interfaceExecutionQuery
-
rootProcessInstanceId
public ExecutionQueryImpl rootProcessInstanceId(String rootProcessInstanceId)
Description copied from interface:ExecutionQuery
Only select executions which have the given root process instance id.- Specified by:
rootProcessInstanceId
in interfaceExecutionQuery
-
processInstanceBusinessKey
public ExecutionQuery processInstanceBusinessKey(String businessKey)
Description copied from interface:ExecutionQuery
Only 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:
processInstanceBusinessKey
in interfaceExecutionQuery
-
processInstanceBusinessKey
public ExecutionQuery processInstanceBusinessKey(String processInstanceBusinessKey, boolean includeChildExecutions)
Description copied from interface:ExecutionQuery
Only executions with the given business key. Similar toExecutionQuery.processInstanceBusinessKey(String)
, but allows to choose whether child executions are returned or not.- Specified by:
processInstanceBusinessKey
in interfaceExecutionQuery
-
processDefinitionKeys
public ExecutionQuery processDefinitionKeys(Set<String> processDefinitionKeys)
Description copied from interface:ExecutionQuery
Only select executions which have process definitions with the given keys.- Specified by:
processDefinitionKeys
in interfaceExecutionQuery
-
executionId
public ExecutionQueryImpl executionId(String executionId)
Description copied from interface:ExecutionQuery
Only select executions with the given id.- Specified by:
executionId
in interfaceExecutionQuery
-
activityId
public ExecutionQueryImpl activityId(String activityId)
Description copied from interface:ExecutionQuery
Only select executions which contain an activity with the given id.- Specified by:
activityId
in interfaceExecutionQuery
-
parentId
public ExecutionQueryImpl parentId(String parentId)
Description copied from interface:ExecutionQuery
Only select executions which are a direct child-execution of the execution with the given id.- Specified by:
parentId
in interfaceExecutionQuery
-
onlyChildExecutions
public ExecutionQuery onlyChildExecutions()
Description copied from interface:ExecutionQuery
Only selects executions that have a parent id set, ie non-processinstance executions.- Specified by:
onlyChildExecutions
in interfaceExecutionQuery
-
onlySubProcessExecutions
public ExecutionQuery onlySubProcessExecutions()
Description copied from interface:ExecutionQuery
Only selects executions that are a subprocess.- Specified by:
onlySubProcessExecutions
in interfaceExecutionQuery
-
onlyProcessInstanceExecutions
public ExecutionQuery onlyProcessInstanceExecutions()
Description copied from interface:ExecutionQuery
Only selects executions that have no parent id set, ie process instance executions- Specified by:
onlyProcessInstanceExecutions
in interfaceExecutionQuery
-
executionTenantId
public ExecutionQueryImpl executionTenantId(String tenantId)
Description copied from interface:ExecutionQuery
Only select process instances that have the given tenant id.- Specified by:
executionTenantId
in interfaceExecutionQuery
-
executionTenantIdLike
public ExecutionQueryImpl executionTenantIdLike(String tenantIdLike)
Description copied from interface:ExecutionQuery
Only select process instances with a tenant id like the given one.- Specified by:
executionTenantIdLike
in interfaceExecutionQuery
-
executionWithoutTenantId
public ExecutionQueryImpl executionWithoutTenantId()
Description copied from interface:ExecutionQuery
Only select process instances that do not have a tenant id.- Specified by:
executionWithoutTenantId
in interfaceExecutionQuery
-
executionReferenceId
public ExecutionQuery executionReferenceId(String referenceId)
Description copied from interface:ExecutionQuery
Only select executions with the given reference id.- Specified by:
executionReferenceId
in interfaceExecutionQuery
-
executionReferenceType
public ExecutionQuery executionReferenceType(String referenceType)
Description copied from interface:ExecutionQuery
Only select executions with the given reference type.- Specified by:
executionReferenceType
in interfaceExecutionQuery
-
signalEventSubscription
public ExecutionQuery signalEventSubscription(String signalName)
-
signalEventSubscriptionName
public ExecutionQuery signalEventSubscriptionName(String signalName)
Description copied from interface:ExecutionQuery
Only 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:
signalEventSubscriptionName
in interfaceExecutionQuery
- Parameters:
signalName
- the name of the signal the execution has subscribed to
-
messageEventSubscriptionName
public ExecutionQuery messageEventSubscriptionName(String messageName)
Description copied from interface:ExecutionQuery
Only 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:
messageEventSubscriptionName
in 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:ExecutionQuery
Only select executions which are part of a process that have a variable with the given name set to the given value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueEquals
in interfaceExecutionQuery
-
processVariableValueEquals
public ExecutionQuery processVariableValueEquals(Object variableValue)
Description copied from interface:ExecutionQuery
Only select executions which are part of a process that have at least one variable with the given value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueEquals
in interfaceExecutionQuery
-
processVariableValueNotEquals
public ExecutionQuery processVariableValueNotEquals(String variableName, Object variableValue)
Description copied from interface:ExecutionQuery
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. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueNotEquals
in interfaceExecutionQuery
-
processVariableValueEqualsIgnoreCase
public ExecutionQuery processVariableValueEqualsIgnoreCase(String name, String value)
Description copied from interface:ExecutionQuery
Only 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:
processVariableValueEqualsIgnoreCase
in 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:ExecutionQuery
Only 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:
processVariableValueNotEqualsIgnoreCase
in 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:ExecutionQuery
Only select executions which are part of a process that have at least one variable like the given value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueLike
in interfaceExecutionQuery
-
processVariableValueLikeIgnoreCase
public ExecutionQuery processVariableValueLikeIgnoreCase(String name, String value)
Description copied from interface:ExecutionQuery
Only select executions which are part of a process that have at least one variable like the given value (case insensitive). Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueLikeIgnoreCase
in interfaceExecutionQuery
-
processVariableValueGreaterThan
public ExecutionQuery processVariableValueGreaterThan(String name, Object value)
Description copied from interface:ExecutionQuery
Only select executions which have a process instance variable value greater than the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueGreaterThan
in 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:ExecutionQuery
Only select executions which have a process instance variable value greater than or equal to the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueGreaterThanOrEqual
in 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:ExecutionQuery
Only select executions which have a process instance variable value less than the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueLessThan
in 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:ExecutionQuery
Only select executions which have a process instance variable value less than or equal to the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueLessThanOrEqual
in interfaceExecutionQuery
- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null.
-
processVariableExists
public ExecutionQuery processVariableExists(String name)
Description copied from interface:ExecutionQuery
Only select executions which are part of a process that have a variable with the given name.- Specified by:
processVariableExists
in interfaceExecutionQuery
- Parameters:
name
- cannot be null.
-
processVariableNotExists
public ExecutionQuery processVariableNotExists(String name)
Description copied from interface:ExecutionQuery
Only select executions which are part of a process that don't have a variable with the given name.- Specified by:
processVariableNotExists
in interfaceExecutionQuery
- Parameters:
name
- cannot be null.
-
variableValueEquals
public ExecutionQuery variableValueEquals(String variableName, Object variableValue)
Description copied from interface:ExecutionQuery
Only 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 andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueEquals
in interfaceExecutionQuery
- Overrides:
variableValueEquals
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
- Parameters:
variableName
- name of the variable, cannot be null.
-
variableValueEquals
public ExecutionQuery variableValueEquals(Object variableValue)
Description copied from interface:ExecutionQuery
Only 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 andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueEquals
in interfaceExecutionQuery
- Overrides:
variableValueEquals
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
-
variableValueNotEquals
public ExecutionQuery variableValueNotEquals(String variableName, Object variableValue)
Description copied from interface:ExecutionQuery
Only select executions which have a local variable with the given name, but with a different value than the passed value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueNotEquals
in interfaceExecutionQuery
- Overrides:
variableValueNotEquals
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
- Parameters:
variableName
- name of the variable, cannot be null.
-
variableValueEqualsIgnoreCase
public ExecutionQuery variableValueEqualsIgnoreCase(String name, String value)
Description copied from interface:ExecutionQuery
Only 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:
variableValueEqualsIgnoreCase
in interfaceExecutionQuery
- Overrides:
variableValueEqualsIgnoreCase
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<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:ExecutionQuery
Only 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:
variableValueNotEqualsIgnoreCase
in interfaceExecutionQuery
- Overrides:
variableValueNotEqualsIgnoreCase
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<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:ExecutionQuery
Only select executions which have a local variable value like the given value. This be used on string variables only.- Specified by:
variableValueLike
in interfaceExecutionQuery
- Overrides:
variableValueLike
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<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:ExecutionQuery
Only select executions which have a local variable value like the given value (case insensitive). This be used on string variables only.- Specified by:
variableValueLikeIgnoreCase
in interfaceExecutionQuery
- Overrides:
variableValueLikeIgnoreCase
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<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:ExecutionQuery
Only select executions which have a local variable value greater than the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueGreaterThan
in interfaceExecutionQuery
- Overrides:
variableValueGreaterThan
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<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:ExecutionQuery
Only select executions which have a local variable value greater than or equal to the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueGreaterThanOrEqual
in interfaceExecutionQuery
- Overrides:
variableValueGreaterThanOrEqual
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<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:ExecutionQuery
Only select executions which have a local variable value less than the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueLessThan
in interfaceExecutionQuery
- Overrides:
variableValueLessThan
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<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:ExecutionQuery
Only select executions which have a local variable value less than or equal to the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
variableValueLessThanOrEqual
in interfaceExecutionQuery
- Overrides:
variableValueLessThanOrEqual
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<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:ExecutionQuery
Only select executions which have a local variable with the given name.- Specified by:
variableExists
in interfaceExecutionQuery
- Overrides:
variableExists
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
- Parameters:
name
- cannot be null.
-
variableNotExists
public ExecutionQuery variableNotExists(String name)
Description copied from interface:ExecutionQuery
Only select executions which does not have a local variable with the given name.- Specified by:
variableNotExists
in interfaceExecutionQuery
- Overrides:
variableNotExists
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
- Parameters:
name
- cannot be null.
-
locale
public ExecutionQuery locale(String locale)
Description copied from interface:ExecutionQuery
Localize execution name and description to specified locale.- Specified by:
locale
in interfaceExecutionQuery
-
withLocalizationFallback
public ExecutionQuery withLocalizationFallback()
Description copied from interface:ExecutionQuery
Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.- Specified by:
withLocalizationFallback
in interfaceExecutionQuery
-
startedBefore
public ExecutionQuery startedBefore(Date beforeTime)
Description copied from interface:ExecutionQuery
Only select executions that were started before the given start time.- Specified by:
startedBefore
in interfaceExecutionQuery
- Parameters:
beforeTime
- executions started before this time will be returned (cannot be null)
-
startedAfter
public ExecutionQuery startedAfter(Date afterTime)
Description copied from interface:ExecutionQuery
Only select executions that were started after the given start time.- Specified by:
startedAfter
in interfaceExecutionQuery
- Parameters:
afterTime
- executions started after this time will be returned (cannot be null)
-
startedBy
public ExecutionQuery startedBy(String userId)
Description copied from interface:ExecutionQuery
Only select executions that were started after by the given user id.- Specified by:
startedBy
in 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:ExecutionQuery
Begin 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:
or
in interfaceExecutionQuery
-
endOr
public ExecutionQuery endOr()
Description copied from interface:ExecutionQuery
End an OR statement. Only one OR statement is allowed, for the second call to this method an exception will be thrown.- Specified by:
endOr
in interfaceExecutionQuery
-
orderByProcessInstanceId
public ExecutionQueryImpl orderByProcessInstanceId()
Description copied from interface:ExecutionQuery
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceId
in interfaceExecutionQuery
-
orderByProcessDefinitionId
public ExecutionQueryImpl orderByProcessDefinitionId()
Description copied from interface:ExecutionQuery
Order by process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionId
in interfaceExecutionQuery
-
orderByProcessDefinitionKey
public ExecutionQueryImpl orderByProcessDefinitionKey()
Description copied from interface:ExecutionQuery
Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionKey
in interfaceExecutionQuery
-
orderByTenantId
public ExecutionQueryImpl orderByTenantId()
Description copied from interface:ExecutionQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTenantId
in interfaceExecutionQuery
-
executeCount
public long executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
- Specified by:
executeCount
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
-
executeList
public List<Execution> executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
- Specified by:
executeList
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
- Overrides:
ensureVariablesInitialized
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<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:
getId
in interfaceorg.flowable.common.engine.api.query.CacheAwareQuery<org.flowable.engine.impl.persistence.entity.ExecutionEntity>
-
getSuperProcessInstanceId
public String getSuperProcessInstanceId()
-
getSubProcessInstanceId
public String getSubProcessInstanceId()
-
isExcludeSubprocesses
public boolean isExcludeSubprocesses()
-
getSuspensionState
public org.flowable.common.engine.impl.db.SuspensionState getSuspensionState()
-
setSuspensionState
public void setSuspensionState(org.flowable.common.engine.impl.db.SuspensionState suspensionState)
-
getEventSubscriptions
public List<org.flowable.eventsubscription.service.impl.EventSubscriptionQueryValue> getEventSubscriptions()
-
isIncludeChildExecutionsWithBusinessKeyQuery
public boolean isIncludeChildExecutionsWithBusinessKeyQuery()
-
setEventSubscriptions
public void setEventSubscriptions(List<org.flowable.eventsubscription.service.impl.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()
-
-