Class 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
- Author:
- Joram Barrez, Frederik Heremans, Daniel Meyer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.db.ListQueryParameterObject.OrderBy, org.flowable.common.engine.impl.db.ListQueryParameterObject.ResultType
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
org.flowable.common.engine.api.query.Query.NullHandlingOnOrder
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
protected String
protected String
protected ExecutionQueryImpl
protected String
protected List<org.flowable.eventsubscription.service.impl.EventSubscriptionQueryValue>
protected boolean
protected String
protected boolean
protected boolean
protected String
protected boolean
protected String
protected String
protected String
protected String
protected boolean
protected boolean
protected boolean
protected List<ExecutionQueryImpl>
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected Integer
protected org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl
protected String
protected String
protected String
protected String
protected Date
protected Date
protected String
protected String
protected String
protected org.flowable.common.engine.impl.db.SuspensionState
protected String
protected String
protected String
protected boolean
protected boolean
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
ConstructorDescriptionExecutionQueryImpl
(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
Modifier and TypeMethodDescriptionactivityId
(String activityId) Only select executions which contain an activity with the given id.endOr()
End an OR statement.protected void
eventSubscription
(String eventType, String eventName) long
executeCount
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) executeList
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) executionId
(String executionId) Only select executions with the given id.executionReferenceId
(String referenceId) Only select executions with the given reference id.executionReferenceType
(String referenceType) Only select executions with the given reference type.executionTenantId
(String tenantId) Only select process instances that have the given tenant id.executionTenantIdLike
(String tenantIdLike) Only select process instances with a tenant id like the given one.executionTenantIdLikeIgnoreCase
(String tenantIdLikeIgnoreCase) Only select process instances with a tenant id like the given one, ignoring upper/lower case.Only select process instances that do not have a tenant id.List<org.flowable.eventsubscription.service.impl.EventSubscriptionQueryValue>
getId()
getName()
boolean
org.flowable.common.engine.impl.db.SuspensionState
boolean
isActive()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Localize execution name and description to specified locale.protected void
messageEventSubscriptionName
(String messageName) Only select executions which have a message event subscription for the given messageName.Only selects executions that have a parent id set, ie non-processinstance executions.Only selects executions that have no parent id set, ie process instance executionsOnly selects executions that are a subprocess.or()
Begin an OR statement.Order by process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).Only select executions which are a direct child-execution of the execution with the given id.processDefinitionCategory
(String processDefinitionCategory) Only select executions which have the given process definition category.processDefinitionCategoryLike
(String processDefinitionCategoryLike) Only select executions which have a process definition category like the given value.processDefinitionCategoryLikeIgnoreCase
(String processDefinitionCategoryLikeIgnoreCase) Only select executions which have a process definition category like the given value, ignoring upper/lower case.processDefinitionEngineVersion
(String processDefinitionEngineVersion) Only select executions which have the given process definition engine version.processDefinitionId
(String processDefinitionId) Only select executions which have the given process definition id.processDefinitionKey
(String processDefinitionKey) Only select executions which have the given process definition key.processDefinitionKeyLike
(String processDefinitionKeyLike) Only select executions which have a process definition key like the given value.processDefinitionKeyLikeIgnoreCase
(String processDefinitionKeyLikeIgnoreCase) Only select executions which have a process definition key like the given value, ignoring upper/lower case.processDefinitionKeys
(Set<String> processDefinitionKeys) Only select executions which have process definitions with the given keys.processDefinitionName
(String processDefinitionName) Only select executions which have the given process definition name.processDefinitionNameLike
(String processDefinitionNameLike) Only select executions which have a process definition name like the given value.processDefinitionNameLikeIgnoreCase
(String processDefinitionNameLikeIgnoreCase) Only select executions which have a process definition name like the given value, ignoring upper/lower case.processDefinitionVersion
(Integer processDefinitionVersion) Only select executions which have the given process definition version.processInstanceBusinessKey
(String businessKey) Only executions with the given business key.processInstanceBusinessKey
(String processInstanceBusinessKey, boolean includeChildExecutions) Only executions with the given business key.processInstanceBusinessKeyLike
(String businessKeyLike) Only executions that have a business key like the given value.processInstanceBusinessKeyLike
(String processInstanceBusinessKeyLike, boolean includeChildExecutions) Only executions that have a business key like the given value.processInstanceBusinessKeyLikeIgnoreCase
(String businessKeyLikeIgnoreCase) Only executions that have a business key like the given value, ignoring upper/lower case.processInstanceBusinessKeyLikeIgnoreCase
(String processInstanceBusinessKeyLikeIgnoreCase, boolean includeChildExecutions) Only executions that have a business key like the given value, ignoring upper/lower case.processInstanceId
(String processInstanceId) Only select executions which have the given process instance id.processVariableExists
(String name) Only select executions which are part of a process that have a variable with the given name.Only select executions which are part of a process that don't have a variable with the given name.processVariableValueEquals
(Object variableValue) Only select executions which are part of a process that have at least one variable with the given value.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.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.processVariableValueGreaterThan
(String name, Object value) Only select executions which have a process instance variable value greater than the passed value.processVariableValueGreaterThanOrEqual
(String name, Object value) Only select executions which have a process instance variable value greater than or equal to the passed value.processVariableValueLessThan
(String name, Object value) Only select executions which have a process instance variable value less than the passed value.processVariableValueLessThanOrEqual
(String name, Object value) Only select executions which have a process instance variable value less than or equal to the passed value.processVariableValueLike
(String name, String value) Only select executions which are part of a process that have at least one variable like the given value.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).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.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.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
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) signalEventSubscription
(String signalName) signalEventSubscriptionName
(String signalName) Only select executions which have a signal event subscription for the given signal name.startedAfter
(Date afterTime) Only select executions that were started after the given start time.startedBefore
(Date beforeTime) Only select executions that were started before the given start time.Only select executions that were started after by the given user id.variableExists
(String name) Only select executions which have a local variable with the given name.variableNotExists
(String name) Only select executions which does not have a local variable with the given name.variableValueEquals
(Object variableValue) Only select executions which have at least one local variable with the given value.variableValueEquals
(String variableName, Object variableValue) Only select executions which have a local variable with the given value.variableValueEqualsIgnoreCase
(String name, String value) Only select executions which have a local string variable with the given value, case insensitive.variableValueGreaterThan
(String name, Object value) Only select executions which have a local variable value greater than the passed value.variableValueGreaterThanOrEqual
(String name, Object value) Only select executions which have a local variable value greater than or equal to the passed value.variableValueLessThan
(String name, Object value) Only select executions which have a local variable value less than the passed value.variableValueLessThanOrEqual
(String name, Object value) Only select executions which have a local variable value less than or equal to the passed value.variableValueLike
(String name, String value) Only select executions which have a local variable value like the given value.variableValueLikeIgnoreCase
(String name, String value) Only select executions which have a local variable value like the given value (case insensitive).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.variableValueNotEqualsIgnoreCase
(String name, String value) Only select executions which have a local string variable which is not the given value, case insensitive.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
Methods inherited from interface org.flowable.common.engine.api.query.Query
asc, count, desc, list, listPage, orderBy, orderBy, singleResult
-
Field Details
-
processEngineConfiguration
protected org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration -
processDefinitionId
-
processDefinitionKey
-
processDefinitionKeyLike
-
processDefinitionKeyLikeIgnoreCase
-
processDefinitionCategory
-
processDefinitionCategoryLike
-
processDefinitionCategoryLikeIgnoreCase
-
processDefinitionName
-
processDefinitionNameLike
-
processDefinitionNameLikeIgnoreCase
-
processDefinitionVersion
-
processDefinitionEngineVersion
-
activityId
-
executionId
-
parentId
-
onlyChildExecutions
protected boolean onlyChildExecutions -
onlySubProcessExecutions
protected boolean onlySubProcessExecutions -
onlyProcessInstanceExecutions
protected boolean onlyProcessInstanceExecutions -
processInstanceId
-
rootProcessInstanceId
-
eventSubscriptions
protected List<org.flowable.eventsubscription.service.impl.EventSubscriptionQueryValue> eventSubscriptions -
tenantId
-
tenantIdLike
-
tenantIdLikeIgnoreCase
-
withoutTenantId
protected boolean withoutTenantId -
locale
-
withLocalizationFallback
protected boolean withLocalizationFallback -
startedBefore
-
startedAfter
-
startedBy
-
superProcessInstanceId
-
subProcessInstanceId
-
excludeSubprocesses
protected boolean excludeSubprocesses -
suspensionState
protected org.flowable.common.engine.impl.db.SuspensionState suspensionState -
businessKey
-
businessKeyLike
-
businessKeyLikeIgnoreCase
-
includeChildExecutionsWithBusinessKeyQuery
protected boolean includeChildExecutionsWithBusinessKeyQuery -
isActive
protected boolean isActive -
involvedUser
-
involvedGroups
-
processDefinitionKeys
-
processDefinitionIds
-
name
-
nameLike
-
nameLikeIgnoreCase
-
deploymentId
-
deploymentIds
-
activeActivityId
-
activeActivityIds
-
callbackId
-
callbackType
-
referenceId
-
referenceType
-
orQueryObjects
-
currentOrQueryObject
-
inOrStatement
protected boolean inOrStatement
-
-
Constructor Details
-
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 Details
-
isProcessInstancesOnly
public boolean isProcessInstancesOnly() -
processDefinitionId
Description copied from interface:ExecutionQuery
Only select executions which have the given process definition id.- Specified by:
processDefinitionId
in interfaceExecutionQuery
-
processDefinitionKey
Description copied from interface:ExecutionQuery
Only select executions which have the given process definition key.- Specified by:
processDefinitionKey
in interfaceExecutionQuery
-
processDefinitionKeyLike
Description copied from interface:ExecutionQuery
Only select executions which have a process definition key like the given value.- Specified by:
processDefinitionKeyLike
in interfaceExecutionQuery
-
processDefinitionKeyLikeIgnoreCase
public ExecutionQueryImpl processDefinitionKeyLikeIgnoreCase(String processDefinitionKeyLikeIgnoreCase) Description copied from interface:ExecutionQuery
Only select executions which have a process definition key like the given value, ignoring upper/lower case.- Specified by:
processDefinitionKeyLikeIgnoreCase
in interfaceExecutionQuery
-
processDefinitionCategory
Description copied from interface:ExecutionQuery
Only select executions which have the given process definition category.- Specified by:
processDefinitionCategory
in interfaceExecutionQuery
-
processDefinitionCategoryLike
Description copied from interface:ExecutionQuery
Only select executions which have a process definition category like the given value.- Specified by:
processDefinitionCategoryLike
in interfaceExecutionQuery
-
processDefinitionCategoryLikeIgnoreCase
public ExecutionQuery processDefinitionCategoryLikeIgnoreCase(String processDefinitionCategoryLikeIgnoreCase) Description copied from interface:ExecutionQuery
Only select executions which have a process definition category like the given value, ignoring upper/lower case.- Specified by:
processDefinitionCategoryLikeIgnoreCase
in interfaceExecutionQuery
-
processDefinitionName
Description copied from interface:ExecutionQuery
Only select executions which have the given process definition name.- Specified by:
processDefinitionName
in interfaceExecutionQuery
-
processDefinitionNameLike
Description copied from interface:ExecutionQuery
Only select executions which have a process definition name like the given value.- Specified by:
processDefinitionNameLike
in interfaceExecutionQuery
-
processDefinitionNameLikeIgnoreCase
public ExecutionQuery processDefinitionNameLikeIgnoreCase(String processDefinitionNameLikeIgnoreCase) Description copied from interface:ExecutionQuery
Only select executions which have a process definition name like the given value, ignoring upper/lower case.- Specified by:
processDefinitionNameLikeIgnoreCase
in interfaceExecutionQuery
-
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
Description copied from interface:ExecutionQuery
Only select executions which have the given process definition engine version.- Specified by:
processDefinitionEngineVersion
in interfaceExecutionQuery
-
processInstanceId
Description copied from interface:ExecutionQuery
Only select executions which have the given process instance id.- Specified by:
processInstanceId
in interfaceExecutionQuery
-
rootProcessInstanceId
Description copied from interface:ExecutionQuery
Only select executions which have the given root process instance id.- Specified by:
rootProcessInstanceId
in interfaceExecutionQuery
-
processInstanceBusinessKey
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
-
processInstanceBusinessKeyLike
Description copied from interface:ExecutionQuery
Only executions that have a business key like the given value. 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.processInstanceBusinessKeyLike(String, boolean)
method with a boolean value of true instead.- Specified by:
processInstanceBusinessKeyLike
in interfaceExecutionQuery
-
processInstanceBusinessKeyLike
public ExecutionQuery processInstanceBusinessKeyLike(String processInstanceBusinessKeyLike, boolean includeChildExecutions) Description copied from interface:ExecutionQuery
Only executions that have a business key like the given value. Similar toExecutionQuery.processInstanceBusinessKeyLike(String)
, but allows to choose whether child executions are returned or not.- Specified by:
processInstanceBusinessKeyLike
in interfaceExecutionQuery
-
processInstanceBusinessKeyLikeIgnoreCase
Description copied from interface:ExecutionQuery
Only executions that have a business key like the given value, ignoring upper/lower case. 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.processInstanceBusinessKeyLikeIgnoreCase(String, boolean)
method with a boolean value of true instead.- Specified by:
processInstanceBusinessKeyLikeIgnoreCase
in interfaceExecutionQuery
-
processInstanceBusinessKeyLikeIgnoreCase
public ExecutionQuery processInstanceBusinessKeyLikeIgnoreCase(String processInstanceBusinessKeyLikeIgnoreCase, boolean includeChildExecutions) Description copied from interface:ExecutionQuery
Only executions that have a business key like the given value, ignoring upper/lower case. Similar toExecutionQuery.processInstanceBusinessKeyLikeIgnoreCase(String)
, but allows to choose whether child executions are returned or not.- Specified by:
processInstanceBusinessKeyLikeIgnoreCase
in interfaceExecutionQuery
-
processDefinitionKeys
Description copied from interface:ExecutionQuery
Only select executions which have process definitions with the given keys.- Specified by:
processDefinitionKeys
in interfaceExecutionQuery
-
executionId
Description copied from interface:ExecutionQuery
Only select executions with the given id.- Specified by:
executionId
in interfaceExecutionQuery
-
activityId
Description copied from interface:ExecutionQuery
Only select executions which contain an activity with the given id.- Specified by:
activityId
in interfaceExecutionQuery
-
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
Description copied from interface:ExecutionQuery
Only selects executions that have a parent id set, ie non-processinstance executions.- Specified by:
onlyChildExecutions
in interfaceExecutionQuery
-
onlySubProcessExecutions
Description copied from interface:ExecutionQuery
Only selects executions that are a subprocess.- Specified by:
onlySubProcessExecutions
in interfaceExecutionQuery
-
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
Description copied from interface:ExecutionQuery
Only select process instances that have the given tenant id.- Specified by:
executionTenantId
in interfaceExecutionQuery
-
executionTenantIdLike
Description copied from interface:ExecutionQuery
Only select process instances with a tenant id like the given one.- Specified by:
executionTenantIdLike
in interfaceExecutionQuery
-
executionTenantIdLikeIgnoreCase
Description copied from interface:ExecutionQuery
Only select process instances with a tenant id like the given one, ignoring upper/lower case.- Specified by:
executionTenantIdLikeIgnoreCase
in interfaceExecutionQuery
-
executionWithoutTenantId
Description copied from interface:ExecutionQuery
Only select process instances that do not have a tenant id.- Specified by:
executionWithoutTenantId
in interfaceExecutionQuery
-
executionReferenceId
Description copied from interface:ExecutionQuery
Only select executions with the given reference id.- Specified by:
executionReferenceId
in interfaceExecutionQuery
-
executionReferenceType
Description copied from interface:ExecutionQuery
Only select executions with the given reference type.- Specified by:
executionReferenceType
in interfaceExecutionQuery
-
signalEventSubscription
-
signalEventSubscriptionName
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
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
-
processVariableValueEquals
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Description copied from interface:ExecutionQuery
Localize execution name and description to specified locale.- Specified by:
locale
in interfaceExecutionQuery
-
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
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
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
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
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
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
Description copied from interface:ExecutionQuery
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceId
in interfaceExecutionQuery
-
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
Description copied from interface:ExecutionQuery
Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionKey
in interfaceExecutionQuery
-
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>
-
localize
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()- Overrides:
ensureVariablesInitialized
in classorg.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,
Execution>
-
getOnlyProcessInstances
public boolean getOnlyProcessInstances() -
getProcessDefinitionKey
-
getProcessDefinitionKeyLike
-
getProcessDefinitionKeyLikeIgnoreCase
-
getProcessDefinitionId
-
getProcessDefinitionCategory
-
getProcessDefinitionCategoryLike
-
getProcessDefinitionCategoryLikeIgnoreCase
-
getProcessDefinitionName
-
getProcessDefinitionNameLike
-
getProcessDefinitionNameLikeIgnoreCase
-
getProcessDefinitionVersion
-
getProcessDefinitionEngineVersion
-
getActivityId
-
getProcessInstanceId
-
getRootProcessInstanceId
-
getProcessInstanceIds
-
getBusinessKey
-
getBusinessKeyLike
-
getBusinessKeyLikeIgnoreCase
-
getBusinessStatus
-
getBusinessStatusLike
-
getBusinessStatusLikeIgnoreCase
-
getExecutionId
-
getId
- Specified by:
getId
in interfaceorg.flowable.common.engine.api.query.CacheAwareQuery<org.flowable.engine.impl.persistence.entity.ExecutionEntity>
-
getSuperProcessInstanceId
-
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
-
setInvolvedUser
-
getInvolvedUserIdentityLink
-
getInvolvedGroupIdentityLink
-
getInvolvedGroups
-
setInvolvedGroups
-
getProcessDefinitionIds
-
getProcessDefinitionKeys
-
getParentId
-
isOnlyChildExecutions
public boolean isOnlyChildExecutions() -
isOnlySubProcessExecutions
public boolean isOnlySubProcessExecutions() -
isOnlyProcessInstanceExecutions
public boolean isOnlyProcessInstanceExecutions() -
getTenantId
-
getTenantIdLike
-
getTenantIdLikeIgnoreCase
-
isWithoutTenantId
public boolean isWithoutTenantId() -
getReferenceId
-
getReferenceType
-
getName
-
getNameLike
-
setName
-
setNameLike
-
getNameLikeIgnoreCase
-
setNameLikeIgnoreCase
-
getDeploymentId
-
setDeploymentId
-
getDeploymentIds
-
setDeploymentIds
-
getActiveActivityId
-
setActiveActivityId
-
getActiveActivityIds
-
setActiveActivityIds
-
getStartedBefore
-
setStartedBefore
-
getStartedAfter
-
setStartedAfter
-
getStartedBy
-
setStartedBy
-
getLocale
-
isWithLocalizationFallback
public boolean isWithLocalizationFallback() -
getCallbackId
-
getCallbackType
-
getOrQueryObjects
-
getSafeInvolvedGroups
-
setSafeInvolvedGroups
-
getRootScopeId
-
getParentScopeId
-