Package org.activiti.engine.impl
Class ExecutionQueryImpl
java.lang.Object
org.activiti.engine.impl.db.ListQueryParameterObject
org.activiti.engine.impl.AbstractQuery<ExecutionQuery,Execution>
org.activiti.engine.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
org.activiti.engine.impl.ExecutionQueryImpl
- All Implemented Interfaces:
Serializable,Command<Object>,Query<ExecutionQuery,,Execution> ExecutionQuery
public class ExecutionQueryImpl
extends AbstractVariableQueryImpl<ExecutionQuery,Execution>
implements ExecutionQuery
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.activiti.engine.impl.AbstractQuery
AbstractQuery.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected List<EventSubscriptionQueryValue> protected booleanprotected Stringprotected booleanprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected booleanprotected booleanprotected List<ExecutionQueryImpl> protected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Integerprotected Stringprotected Stringprotected Dateprotected Dateprotected Stringprotected Stringprotected Stringprotected SuspensionStateprotected Stringprotected Stringprotected booleanprotected booleanFields inherited from class org.activiti.engine.impl.AbstractVariableQueryImpl
queryVariableValuesFields inherited from class org.activiti.engine.impl.AbstractQuery
commandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESCFields inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
firstResult, maxResults, parameter -
Constructor Summary
ConstructorsConstructorDescriptionExecutionQueryImpl(CommandContext commandContext) ExecutionQueryImpl(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionactivityId(String activityId) Only select executions which contain an activity with the given id.eventSubscription(String eventType, String eventName) longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.executionId(String executionId) Only select executions with the given id.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.Only select process instances that do not have a tenant id.getName()booleanbooleanisActive()booleanbooleanbooleanbooleanbooleanbooleanbooleanLocalize execution name and description to specified locale.protected voidmessageEventSubscriptionName(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.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.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.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.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.processInstanceId(String processInstanceId) Only select executions which have the given process instance id.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.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.voidsetEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions) voidsetInvolvedGroups(List<String> involvedGroups) voidsetInvolvedUser(String involvedUser) voidvoidsetNameLike(String nameLike) voidsetNameLikeIgnoreCase(String nameLikeIgnoreCase) voidsetStartedAfter(Date startedAfter) voidsetStartedBefore(Date startedBefore) voidsetStartedBy(String startedBy) voidsetSuspensionState(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.Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.Methods inherited from class org.activiti.engine.impl.AbstractVariableQueryImpl
addVariable, ensureVariablesInitialized, getQueryVariableValues, hasLocalQueryVariableValue, hasNonLocalQueryVariableValue, isBoolean, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThan, variableValueLessThanOrEqual, variableValueLessThanOrEqual, variableValueLike, variableValueLike, variableValueLikeIgnoreCase, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEquals, variableValueNotEqualsIgnoreCase, variableValueNotEqualsIgnoreCaseMethods inherited from class org.activiti.engine.impl.AbstractQuery
addOrder, asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getDatabaseType, getOrderBy, getOrderByColumns, list, listPage, orderBy, orderBy, setCommandExecutor, setDatabaseType, singleResultMethods inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.activiti.engine.runtime.ExecutionQuery
variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEqualsIgnoreCase
-
Field Details
-
processDefinitionId
-
processDefinitionKey
-
processDefinitionCategory
-
processDefinitionName
-
processDefinitionVersion
-
activityId
-
executionId
-
parentId
-
onlyChildExecutions
protected boolean onlyChildExecutions -
onlySubProcessExecutions
protected boolean onlySubProcessExecutions -
onlyProcessInstanceExecutions
protected boolean onlyProcessInstanceExecutions -
processInstanceId
-
rootProcessInstanceId
-
eventSubscriptions
-
tenantId
-
tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId -
locale
-
withLocalizationFallback
protected boolean withLocalizationFallback -
startedBefore
-
startedAfter
-
startedBy
-
superProcessInstanceId
-
subProcessInstanceId
-
excludeSubprocesses
protected boolean excludeSubprocesses -
suspensionState
-
businessKey
-
includeChildExecutionsWithBusinessKeyQuery
protected boolean includeChildExecutionsWithBusinessKeyQuery -
isActive
protected boolean isActive -
involvedUser
-
processDefinitionKeys
-
processDefinitionIds
-
involvedGroups
-
name
-
nameLike
-
nameLikeIgnoreCase
-
deploymentId
-
deploymentIds
-
orQueryObjects
-
-
Constructor Details
-
ExecutionQueryImpl
public ExecutionQueryImpl() -
ExecutionQueryImpl
-
ExecutionQueryImpl
-
-
Method Details
-
isProcessInstancesOnly
public boolean isProcessInstancesOnly() -
processDefinitionId
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition id.- Specified by:
processDefinitionIdin interfaceExecutionQuery
-
processDefinitionKey
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition key.- Specified by:
processDefinitionKeyin interfaceExecutionQuery
-
processDefinitionCategory
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition category.- Specified by:
processDefinitionCategoryin interfaceExecutionQuery
-
processDefinitionName
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition name.- Specified by:
processDefinitionNamein interfaceExecutionQuery
-
processDefinitionVersion
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition version. Particulary useful when used in combination withExecutionQuery.processDefinitionKey(String)- Specified by:
processDefinitionVersionin interfaceExecutionQuery
-
processInstanceId
Description copied from interface:ExecutionQueryOnly select executions which have the given process instance id.- Specified by:
processInstanceIdin interfaceExecutionQuery
-
rootProcessInstanceId
Description copied from interface:ExecutionQueryOnly select executions which have the given root process instance id.- Specified by:
rootProcessInstanceIdin interfaceExecutionQuery
-
processInstanceBusinessKey
Description copied from interface:ExecutionQueryOnly executions with the given business key. Note that only process instances have a business key and as such, child executions will NOT be returned. If you want to return child executions of the process instance with the given business key too, use theExecutionQuery.processInstanceBusinessKey(String, boolean)method with a boolean value of true instead.- Specified by:
processInstanceBusinessKeyin interfaceExecutionQuery
-
processInstanceBusinessKey
public ExecutionQuery processInstanceBusinessKey(String processInstanceBusinessKey, boolean includeChildExecutions) Description copied from interface:ExecutionQueryOnly executions with the given business key. Similar toExecutionQuery.processInstanceBusinessKey(String), but allows to choose whether child executions are returned or not.- Specified by:
processInstanceBusinessKeyin interfaceExecutionQuery
-
processDefinitionKeys
Description copied from interface:ExecutionQueryOnly select executions which have process definitions with the given keys.- Specified by:
processDefinitionKeysin interfaceExecutionQuery
-
executionId
Description copied from interface:ExecutionQueryOnly select executions with the given id.- Specified by:
executionIdin interfaceExecutionQuery
-
activityId
Description copied from interface:ExecutionQueryOnly select executions which contain an activity with the given id.- Specified by:
activityIdin interfaceExecutionQuery
-
parentId
Description copied from interface:ExecutionQueryOnly select executions which are a direct child-execution of the execution with the given id.- Specified by:
parentIdin interfaceExecutionQuery
-
onlyChildExecutions
Description copied from interface:ExecutionQueryOnly selects executions that have a parent id set, ie non-processinstance executions.- Specified by:
onlyChildExecutionsin interfaceExecutionQuery
-
onlySubProcessExecutions
Description copied from interface:ExecutionQueryOnly selects executions that are a subprocess.- Specified by:
onlySubProcessExecutionsin interfaceExecutionQuery
-
onlyProcessInstanceExecutions
Description copied from interface:ExecutionQueryOnly selects executions that have no parent id set, ie process instance executions- Specified by:
onlyProcessInstanceExecutionsin interfaceExecutionQuery
-
executionTenantId
Description copied from interface:ExecutionQueryOnly select process instances that have the given tenant id.- Specified by:
executionTenantIdin interfaceExecutionQuery
-
executionTenantIdLike
Description copied from interface:ExecutionQueryOnly select process instances with a tenant id like the given one.- Specified by:
executionTenantIdLikein interfaceExecutionQuery
-
executionWithoutTenantId
Description copied from interface:ExecutionQueryOnly select process instances that do not have a tenant id.- Specified by:
executionWithoutTenantIdin interfaceExecutionQuery
-
signalEventSubscription
-
signalEventSubscriptionName
Description copied from interface:ExecutionQueryOnly select executions which have a signal event subscription for the given signal name. (The signalName is specified using the 'name' attribute of the signal element in the BPMN 2.0 XML.)- Specified by:
signalEventSubscriptionNamein interfaceExecutionQuery- Parameters:
signalName- the name of the signal the execution has subscribed to
-
messageEventSubscriptionName
Description copied from interface:ExecutionQueryOnly select executions which have a message event subscription for the given messageName. (The messageName is specified using the 'name' attribute of the message element in the BPMN 2.0 XML.)- Specified by:
messageEventSubscriptionNamein interfaceExecutionQuery- Parameters:
messageName- the name of the message the execution has subscribed to
-
eventSubscription
-
processVariableValueEquals
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have a variable with the given name set to the given value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueEqualsin interfaceExecutionQuery
-
processVariableValueEquals
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have at least one variable with the given value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueEqualsin interfaceExecutionQuery
-
processVariableValueNotEquals
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have a variable with the given name, but with a different value than the passed value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueNotEqualsin interfaceExecutionQuery
-
processVariableValueEqualsIgnoreCase
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have a local string variable with the given value, case insensitive.This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).
- Specified by:
processVariableValueEqualsIgnoreCasein interfaceExecutionQuery- Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
processVariableValueNotEqualsIgnoreCase
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have a local string variable which is not the given value, case insensitive.This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).
- Specified by:
processVariableValueNotEqualsIgnoreCasein interfaceExecutionQuery- Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
processVariableValueLike
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have at least one variable like the given value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueLikein interfaceExecutionQuery
-
processVariableValueLikeIgnoreCase
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have at least one variable like the given value (case insensitive). Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueLikeIgnoreCasein interfaceExecutionQuery
-
locale
Description copied from interface:ExecutionQueryLocalize execution name and description to specified locale.- Specified by:
localein interfaceExecutionQuery
-
withLocalizationFallback
Description copied from interface:ExecutionQueryInstruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.- Specified by:
withLocalizationFallbackin interfaceExecutionQuery
-
startedBefore
Description copied from interface:ExecutionQueryOnly select executions that were started before the given start time.- Specified by:
startedBeforein interfaceExecutionQuery- Parameters:
beforeTime- executions started before this time will be returned (cannot be null)
-
startedAfter
Description copied from interface:ExecutionQueryOnly select executions that were started after the given start time.- Specified by:
startedAfterin interfaceExecutionQuery- Parameters:
afterTime- executions started after this time will be returned (cannot be null)
-
startedBy
Description copied from interface:ExecutionQueryOnly select executions that were started after by the given user id.- Specified by:
startedByin interfaceExecutionQuery- Parameters:
userId- the user id of the authenticated user that started the execution (cannot be null)
-
orderByProcessInstanceId
Description copied from interface:ExecutionQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceExecutionQuery
-
orderByProcessDefinitionId
Description copied from interface:ExecutionQueryOrder by process definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceExecutionQuery
-
orderByProcessDefinitionKey
Description copied from interface:ExecutionQueryOrder by process definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionKeyin interfaceExecutionQuery
-
orderByTenantId
Description copied from interface:ExecutionQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceExecutionQuery
-
executeCount
- Specified by:
executeCountin classAbstractVariableQueryImpl<ExecutionQuery,Execution>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<ExecutionQuery,Execution> - Parameters:
page- used if the results must be paged. If null, no paging will be applied.
-
localize
-
getOnlyProcessInstances
public boolean getOnlyProcessInstances() -
getProcessDefinitionKey
-
getProcessDefinitionId
-
getProcessDefinitionCategory
-
getProcessDefinitionName
-
getProcessDefinitionVersion
-
getActivityId
-
getProcessInstanceId
-
getRootProcessInstanceId
-
getProcessInstanceIds
-
getBusinessKey
-
getExecutionId
-
getSuperProcessInstanceId
-
getSubProcessInstanceId
-
isExcludeSubprocesses
public boolean isExcludeSubprocesses() -
getSuspensionState
-
setSuspensionState
-
getEventSubscriptions
-
isIncludeChildExecutionsWithBusinessKeyQuery
public boolean isIncludeChildExecutionsWithBusinessKeyQuery() -
setEventSubscriptions
-
isActive
public boolean isActive() -
getInvolvedUser
-
setInvolvedUser
-
getProcessDefinitionIds
-
getProcessDefinitionKeys
-
getParentId
-
isOnlyChildExecutions
public boolean isOnlyChildExecutions() -
isOnlySubProcessExecutions
public boolean isOnlySubProcessExecutions() -
isOnlyProcessInstanceExecutions
public boolean isOnlyProcessInstanceExecutions() -
getTenantId
-
getTenantIdLike
-
isWithoutTenantId
public boolean isWithoutTenantId() -
getName
-
getNameLike
-
setName
-
setNameLike
-
getNameLikeIgnoreCase
-
setNameLikeIgnoreCase
-
getStartedBefore
-
setStartedBefore
-
getStartedAfter
-
setStartedAfter
-
getStartedBy
-
setStartedBy
-
getInvolvedGroups
-
setInvolvedGroups
-