Package org.activiti.engine.impl
Class ExecutionQueryImpl
- java.lang.Object
-
- org.activiti.engine.impl.db.ListQueryParameterObject
-
- org.activiti.engine.impl.AbstractQuery<T,U>
-
- org.activiti.engine.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
-
- org.activiti.engine.impl.ExecutionQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable,Command<java.lang.Object>,Query<ExecutionQuery,Execution>,ExecutionQuery
public class ExecutionQueryImpl extends AbstractVariableQueryImpl<ExecutionQuery,Execution> implements ExecutionQuery
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.activiti.engine.impl.AbstractQuery
AbstractQuery.NullHandlingOnOrder
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringactivityIdprotected java.lang.StringbusinessKeyprotected java.lang.StringdeploymentIdprotected java.util.List<java.lang.String>deploymentIdsprotected java.util.List<EventSubscriptionQueryValue>eventSubscriptionsprotected booleanexcludeSubprocessesprotected java.lang.StringexecutionIdprotected booleanincludeChildExecutionsWithBusinessKeyQueryprotected java.lang.StringinvolvedUserprotected booleanisActiveprotected java.lang.Stringlocaleprotected java.lang.Stringnameprotected java.lang.StringnameLikeprotected java.lang.StringnameLikeIgnoreCaseprotected booleanonlyChildExecutionsprotected booleanonlyProcessInstanceExecutionsprotected booleanonlySubProcessExecutionsprotected java.util.List<ExecutionQueryImpl>orQueryObjectsprotected java.lang.StringparentIdprotected java.lang.StringprocessDefinitionCategoryprotected java.lang.StringprocessDefinitionIdprotected java.util.Set<java.lang.String>processDefinitionIdsprotected java.lang.StringprocessDefinitionKeyprotected java.util.Set<java.lang.String>processDefinitionKeysprotected java.lang.StringprocessDefinitionNameprotected java.lang.IntegerprocessDefinitionVersionprotected java.lang.StringprocessInstanceIdprotected java.lang.StringrootProcessInstanceIdprotected java.util.DatestartedAfterprotected java.util.DatestartedBeforeprotected java.lang.StringstartedByprotected java.lang.StringsubProcessInstanceIdprotected java.lang.StringsuperProcessInstanceIdprotected SuspensionStatesuspensionStateprotected java.lang.StringtenantIdprotected java.lang.StringtenantIdLikeprotected booleanwithLocalizationFallbackprotected booleanwithoutTenantId-
Fields inherited from class org.activiti.engine.impl.AbstractVariableQueryImpl
queryVariableValues
-
Fields inherited from class org.activiti.engine.impl.AbstractQuery
commandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
-
Fields inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
firstResult, maxResults, parameter
-
-
Constructor Summary
Constructors Constructor Description ExecutionQueryImpl()ExecutionQueryImpl(CommandContext commandContext)ExecutionQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionQueryImplactivityId(java.lang.String activityId)Only select executions which contain an activity with the given id.ExecutionQueryeventSubscription(java.lang.String eventType, java.lang.String eventName)longexecuteCount(CommandContext commandContext)java.util.List<Execution>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.ExecutionQueryImplexecutionId(java.lang.String executionId)Only select executions with the given id.ExecutionQueryImplexecutionTenantId(java.lang.String tenantId)Only select process instances that have the given tenant id.ExecutionQueryImplexecutionTenantIdLike(java.lang.String tenantIdLike)Only select process instances with a tenant id like the given one.ExecutionQueryImplexecutionWithoutTenantId()Only select process instances that do not have a tenant id.java.lang.StringgetActivityId()java.lang.StringgetBusinessKey()java.util.List<EventSubscriptionQueryValue>getEventSubscriptions()java.lang.StringgetExecutionId()java.lang.StringgetInvolvedUser()java.lang.StringgetName()java.lang.StringgetNameLike()java.lang.StringgetNameLikeIgnoreCase()booleangetOnlyProcessInstances()java.lang.StringgetParentId()java.lang.StringgetProcessDefinitionCategory()java.lang.StringgetProcessDefinitionId()java.util.Set<java.lang.String>getProcessDefinitionIds()java.lang.StringgetProcessDefinitionKey()java.util.Set<java.lang.String>getProcessDefinitionKeys()java.lang.StringgetProcessDefinitionName()java.lang.IntegergetProcessDefinitionVersion()java.lang.StringgetProcessInstanceId()java.lang.StringgetProcessInstanceIds()java.lang.StringgetRootProcessInstanceId()java.util.DategetStartedAfter()java.util.DategetStartedBefore()java.lang.StringgetStartedBy()java.lang.StringgetSubProcessInstanceId()java.lang.StringgetSuperProcessInstanceId()SuspensionStategetSuspensionState()java.lang.StringgetTenantId()java.lang.StringgetTenantIdLike()booleanisActive()booleanisExcludeSubprocesses()booleanisIncludeChildExecutionsWithBusinessKeyQuery()booleanisOnlyChildExecutions()booleanisOnlyProcessInstanceExecutions()booleanisOnlySubProcessExecutions()booleanisProcessInstancesOnly()booleanisWithoutTenantId()ExecutionQuerylocale(java.lang.String locale)Localize execution name and description to specified locale.protected voidlocalize(Execution execution, java.lang.String activityId)ExecutionQuerymessageEventSubscriptionName(java.lang.String messageName)Only select executions which have a message event subscription for the given messageName.ExecutionQueryonlyChildExecutions()Only selects executions that have a parent id set, ie non-processinstance executions.ExecutionQueryonlyProcessInstanceExecutions()Only selects executions that have no parent id set, ie process instance executionsExecutionQueryonlySubProcessExecutions()Only selects executions that are a subprocess.ExecutionQueryImplorderByProcessDefinitionId()Order by process definition id (needs to be followed byQuery.asc()orQuery.desc()).ExecutionQueryImplorderByProcessDefinitionKey()Order by process definition key (needs to be followed byQuery.asc()orQuery.desc()).ExecutionQueryImplorderByProcessInstanceId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).ExecutionQueryImplorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).ExecutionQueryImplparentId(java.lang.String parentId)Only select executions which are a direct child-execution of the execution with the given id.ExecutionQueryprocessDefinitionCategory(java.lang.String processDefinitionCategory)Only select executions which have the given process definition category.ExecutionQueryImplprocessDefinitionId(java.lang.String processDefinitionId)Only select executions which have the given process definition id.ExecutionQueryImplprocessDefinitionKey(java.lang.String processDefinitionKey)Only select executions which have the given process definition key.ExecutionQueryprocessDefinitionKeys(java.util.Set<java.lang.String> processDefinitionKeys)Only select executions which have process definitions with the given keys.ExecutionQueryprocessDefinitionName(java.lang.String processDefinitionName)Only select executions which have the given process definition name.ExecutionQueryprocessDefinitionVersion(java.lang.Integer processDefinitionVersion)Only select executions which have the given process definition version.ExecutionQueryprocessInstanceBusinessKey(java.lang.String businessKey)Only executions with the given business key.ExecutionQueryprocessInstanceBusinessKey(java.lang.String processInstanceBusinessKey, boolean includeChildExecutions)Only executions with the given business key.ExecutionQueryImplprocessInstanceId(java.lang.String processInstanceId)Only select executions which have the given process instance id.ExecutionQueryprocessVariableValueEquals(java.lang.Object variableValue)Only select executions which are part of a process that have at least one variable with the given value.ExecutionQueryprocessVariableValueEquals(java.lang.String variableName, java.lang.Object variableValue)Only select executions which are part of a process that have a variable with the given name set to the given value.ExecutionQueryprocessVariableValueEqualsIgnoreCase(java.lang.String name, java.lang.String value)Only select executions which are part of a process that have a local string variable with the given value, case insensitive.ExecutionQueryprocessVariableValueLike(java.lang.String name, java.lang.String value)Only select executions which are part of a process that have at least one variable like the given value.ExecutionQueryprocessVariableValueLikeIgnoreCase(java.lang.String name, java.lang.String value)Only select executions which are part of a process that have at least one variable like the given value (case insensitive).ExecutionQueryprocessVariableValueNotEquals(java.lang.String variableName, java.lang.Object variableValue)Only select executions which are part of a process that have a variable with the given name, but with a different value than the passed value.ExecutionQueryprocessVariableValueNotEqualsIgnoreCase(java.lang.String name, java.lang.String value)Only select executions which are part of a process that have a local string variable which is not the given value, case insensitive.ExecutionQueryImplrootProcessInstanceId(java.lang.String rootProcessInstanceId)Only select executions which have the given root process instance id.voidsetEventSubscriptions(java.util.List<EventSubscriptionQueryValue> eventSubscriptions)voidsetInvolvedUser(java.lang.String involvedUser)voidsetName(java.lang.String name)voidsetNameLike(java.lang.String nameLike)voidsetNameLikeIgnoreCase(java.lang.String nameLikeIgnoreCase)voidsetStartedAfter(java.util.Date startedAfter)voidsetStartedBefore(java.util.Date startedBefore)voidsetStartedBy(java.lang.String startedBy)voidsetSuspensionState(SuspensionState suspensionState)ExecutionQuerysignalEventSubscription(java.lang.String signalName)ExecutionQuerysignalEventSubscriptionName(java.lang.String signalName)Only select executions which have a signal event subscription for the given signal name.ExecutionQuerystartedAfter(java.util.Date afterTime)Only select executions that were started after the given start time.ExecutionQuerystartedBefore(java.util.Date beforeTime)Only select executions that were started before the given start time.ExecutionQuerystartedBy(java.lang.String userId)Only select executions that were started after by the given user id.ExecutionQuerywithLocalizationFallback()Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.-
Methods inherited from class org.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, variableValueNotEqualsIgnoreCase
-
Methods 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, singleResult
-
Methods inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.activiti.engine.runtime.ExecutionQuery
variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEqualsIgnoreCase
-
-
-
-
Field Detail
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
processDefinitionCategory
protected java.lang.String processDefinitionCategory
-
processDefinitionName
protected java.lang.String processDefinitionName
-
processDefinitionVersion
protected java.lang.Integer processDefinitionVersion
-
activityId
protected java.lang.String activityId
-
executionId
protected java.lang.String executionId
-
parentId
protected java.lang.String parentId
-
onlyChildExecutions
protected boolean onlyChildExecutions
-
onlySubProcessExecutions
protected boolean onlySubProcessExecutions
-
onlyProcessInstanceExecutions
protected boolean onlyProcessInstanceExecutions
-
processInstanceId
protected java.lang.String processInstanceId
-
rootProcessInstanceId
protected java.lang.String rootProcessInstanceId
-
eventSubscriptions
protected java.util.List<EventSubscriptionQueryValue> eventSubscriptions
-
tenantId
protected java.lang.String tenantId
-
tenantIdLike
protected java.lang.String tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
locale
protected java.lang.String locale
-
withLocalizationFallback
protected boolean withLocalizationFallback
-
startedBefore
protected java.util.Date startedBefore
-
startedAfter
protected java.util.Date startedAfter
-
startedBy
protected java.lang.String startedBy
-
superProcessInstanceId
protected java.lang.String superProcessInstanceId
-
subProcessInstanceId
protected java.lang.String subProcessInstanceId
-
excludeSubprocesses
protected boolean excludeSubprocesses
-
suspensionState
protected SuspensionState suspensionState
-
businessKey
protected java.lang.String businessKey
-
includeChildExecutionsWithBusinessKeyQuery
protected boolean includeChildExecutionsWithBusinessKeyQuery
-
isActive
protected boolean isActive
-
involvedUser
protected java.lang.String involvedUser
-
processDefinitionKeys
protected java.util.Set<java.lang.String> processDefinitionKeys
-
processDefinitionIds
protected java.util.Set<java.lang.String> processDefinitionIds
-
name
protected java.lang.String name
-
nameLike
protected java.lang.String nameLike
-
nameLikeIgnoreCase
protected java.lang.String nameLikeIgnoreCase
-
deploymentId
protected java.lang.String deploymentId
-
deploymentIds
protected java.util.List<java.lang.String> deploymentIds
-
orQueryObjects
protected java.util.List<ExecutionQueryImpl> orQueryObjects
-
-
Constructor Detail
-
ExecutionQueryImpl
public ExecutionQueryImpl()
-
ExecutionQueryImpl
public ExecutionQueryImpl(CommandContext commandContext)
-
ExecutionQueryImpl
public ExecutionQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
isProcessInstancesOnly
public boolean isProcessInstancesOnly()
-
processDefinitionId
public ExecutionQueryImpl processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition id.- Specified by:
processDefinitionIdin interfaceExecutionQuery
-
processDefinitionKey
public ExecutionQueryImpl processDefinitionKey(java.lang.String processDefinitionKey)
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition key.- Specified by:
processDefinitionKeyin interfaceExecutionQuery
-
processDefinitionCategory
public ExecutionQuery processDefinitionCategory(java.lang.String processDefinitionCategory)
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition category.- Specified by:
processDefinitionCategoryin interfaceExecutionQuery
-
processDefinitionName
public ExecutionQuery processDefinitionName(java.lang.String processDefinitionName)
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition name.- Specified by:
processDefinitionNamein interfaceExecutionQuery
-
processDefinitionVersion
public ExecutionQuery processDefinitionVersion(java.lang.Integer 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
public ExecutionQueryImpl processInstanceId(java.lang.String processInstanceId)
Description copied from interface:ExecutionQueryOnly select executions which have the given process instance id.- Specified by:
processInstanceIdin interfaceExecutionQuery
-
rootProcessInstanceId
public ExecutionQueryImpl rootProcessInstanceId(java.lang.String rootProcessInstanceId)
Description copied from interface:ExecutionQueryOnly select executions which have the given root process instance id.- Specified by:
rootProcessInstanceIdin interfaceExecutionQuery
-
processInstanceBusinessKey
public ExecutionQuery processInstanceBusinessKey(java.lang.String businessKey)
Description copied from interface:ExecutionQueryOnly executions with the given business key. Note that only process instances have a business key and as such, child executions will NOT be returned. If you want to return child executions of the process instance with the given business key too, use theExecutionQuery.processInstanceBusinessKey(String, boolean)method with a boolean value of true instead.- Specified by:
processInstanceBusinessKeyin interfaceExecutionQuery
-
processInstanceBusinessKey
public ExecutionQuery processInstanceBusinessKey(java.lang.String processInstanceBusinessKey, boolean includeChildExecutions)
Description copied from interface:ExecutionQueryOnly executions with the given business key. Similar toExecutionQuery.processInstanceBusinessKey(String), but allows to choose whether child executions are returned or not.- Specified by:
processInstanceBusinessKeyin interfaceExecutionQuery
-
processDefinitionKeys
public ExecutionQuery processDefinitionKeys(java.util.Set<java.lang.String> processDefinitionKeys)
Description copied from interface:ExecutionQueryOnly select executions which have process definitions with the given keys.- Specified by:
processDefinitionKeysin interfaceExecutionQuery
-
executionId
public ExecutionQueryImpl executionId(java.lang.String executionId)
Description copied from interface:ExecutionQueryOnly select executions with the given id.- Specified by:
executionIdin interfaceExecutionQuery
-
activityId
public ExecutionQueryImpl activityId(java.lang.String activityId)
Description copied from interface:ExecutionQueryOnly select executions which contain an activity with the given id.- Specified by:
activityIdin interfaceExecutionQuery
-
parentId
public ExecutionQueryImpl parentId(java.lang.String parentId)
Description copied from interface:ExecutionQueryOnly select executions which are a direct child-execution of the execution with the given id.- Specified by:
parentIdin interfaceExecutionQuery
-
onlyChildExecutions
public ExecutionQuery onlyChildExecutions()
Description copied from interface:ExecutionQueryOnly selects executions that have a parent id set, ie non-processinstance executions.- Specified by:
onlyChildExecutionsin interfaceExecutionQuery
-
onlySubProcessExecutions
public ExecutionQuery onlySubProcessExecutions()
Description copied from interface:ExecutionQueryOnly selects executions that are a subprocess.- Specified by:
onlySubProcessExecutionsin interfaceExecutionQuery
-
onlyProcessInstanceExecutions
public ExecutionQuery onlyProcessInstanceExecutions()
Description copied from interface:ExecutionQueryOnly selects executions that have no parent id set, ie process instance executions- Specified by:
onlyProcessInstanceExecutionsin interfaceExecutionQuery
-
executionTenantId
public ExecutionQueryImpl executionTenantId(java.lang.String tenantId)
Description copied from interface:ExecutionQueryOnly select process instances that have the given tenant id.- Specified by:
executionTenantIdin interfaceExecutionQuery
-
executionTenantIdLike
public ExecutionQueryImpl executionTenantIdLike(java.lang.String tenantIdLike)
Description copied from interface:ExecutionQueryOnly select process instances with a tenant id like the given one.- Specified by:
executionTenantIdLikein interfaceExecutionQuery
-
executionWithoutTenantId
public ExecutionQueryImpl executionWithoutTenantId()
Description copied from interface:ExecutionQueryOnly select process instances that do not have a tenant id.- Specified by:
executionWithoutTenantIdin interfaceExecutionQuery
-
signalEventSubscription
public ExecutionQuery signalEventSubscription(java.lang.String signalName)
-
signalEventSubscriptionName
public ExecutionQuery signalEventSubscriptionName(java.lang.String signalName)
Description copied from interface:ExecutionQueryOnly select executions which have a signal event subscription for the given signal name. (The signalName is specified using the 'name' attribute of the signal element in the BPMN 2.0 XML.)- Specified by:
signalEventSubscriptionNamein interfaceExecutionQuery- Parameters:
signalName- the name of the signal the execution has subscribed to
-
messageEventSubscriptionName
public ExecutionQuery messageEventSubscriptionName(java.lang.String messageName)
Description copied from interface:ExecutionQueryOnly select executions which have a message event subscription for the given messageName. (The messageName is specified using the 'name' attribute of the message element in the BPMN 2.0 XML.)- Specified by:
messageEventSubscriptionNamein interfaceExecutionQuery- Parameters:
messageName- the name of the message the execution has subscribed to
-
eventSubscription
public ExecutionQuery eventSubscription(java.lang.String eventType, java.lang.String eventName)
-
processVariableValueEquals
public ExecutionQuery processVariableValueEquals(java.lang.String variableName, java.lang.Object variableValue)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have a variable with the given name set to the given value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueEqualsin interfaceExecutionQuery
-
processVariableValueEquals
public ExecutionQuery processVariableValueEquals(java.lang.Object variableValue)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have at least one variable with the given value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueEqualsin interfaceExecutionQuery
-
processVariableValueNotEquals
public ExecutionQuery processVariableValueNotEquals(java.lang.String variableName, java.lang.Object variableValue)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have a variable with the given name, but with a different value than the passed value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueNotEqualsin interfaceExecutionQuery
-
processVariableValueEqualsIgnoreCase
public ExecutionQuery processVariableValueEqualsIgnoreCase(java.lang.String name, java.lang.String value)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have a local string variable with the given value, case insensitive.This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).
- Specified by:
processVariableValueEqualsIgnoreCasein interfaceExecutionQuery- Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
processVariableValueNotEqualsIgnoreCase
public ExecutionQuery processVariableValueNotEqualsIgnoreCase(java.lang.String name, java.lang.String value)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have a local string variable which is not the given value, case insensitive.This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).
- Specified by:
processVariableValueNotEqualsIgnoreCasein interfaceExecutionQuery- Parameters:
name- name of the variable, cannot be null.value- value of the variable, cannot be null.
-
processVariableValueLike
public ExecutionQuery processVariableValueLike(java.lang.String name, java.lang.String value)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have at least one variable like the given value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueLikein interfaceExecutionQuery
-
processVariableValueLikeIgnoreCase
public ExecutionQuery processVariableValueLikeIgnoreCase(java.lang.String name, java.lang.String value)
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have at least one variable like the given value (case insensitive). Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueLikeIgnoreCasein interfaceExecutionQuery
-
locale
public ExecutionQuery locale(java.lang.String locale)
Description copied from interface:ExecutionQueryLocalize execution name and description to specified locale.- Specified by:
localein interfaceExecutionQuery
-
withLocalizationFallback
public ExecutionQuery withLocalizationFallback()
Description copied from interface:ExecutionQueryInstruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.- Specified by:
withLocalizationFallbackin interfaceExecutionQuery
-
startedBefore
public ExecutionQuery startedBefore(java.util.Date beforeTime)
Description copied from interface:ExecutionQueryOnly select executions that were started before the given start time.- Specified by:
startedBeforein interfaceExecutionQuery- Parameters:
beforeTime- executions started before this time will be returned (cannot be null)
-
startedAfter
public ExecutionQuery startedAfter(java.util.Date afterTime)
Description copied from interface:ExecutionQueryOnly select executions that were started after the given start time.- Specified by:
startedAfterin interfaceExecutionQuery- Parameters:
afterTime- executions started after this time will be returned (cannot be null)
-
startedBy
public ExecutionQuery startedBy(java.lang.String userId)
Description copied from interface:ExecutionQueryOnly select executions that were started after by the given user id.- Specified by:
startedByin interfaceExecutionQuery- Parameters:
userId- the user id of the authenticated user that started the execution (cannot be null)
-
orderByProcessInstanceId
public ExecutionQueryImpl orderByProcessInstanceId()
Description copied from interface:ExecutionQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceExecutionQuery
-
orderByProcessDefinitionId
public ExecutionQueryImpl orderByProcessDefinitionId()
Description copied from interface:ExecutionQueryOrder by process definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceExecutionQuery
-
orderByProcessDefinitionKey
public ExecutionQueryImpl orderByProcessDefinitionKey()
Description copied from interface:ExecutionQueryOrder by process definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionKeyin interfaceExecutionQuery
-
orderByTenantId
public ExecutionQueryImpl orderByTenantId()
Description copied from interface:ExecutionQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceExecutionQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractVariableQueryImpl<ExecutionQuery,Execution>
-
executeList
public java.util.List<Execution> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<ExecutionQuery,Execution>page- used if the results must be paged. If null, no paging will be applied.
-
localize
protected void localize(Execution execution, java.lang.String activityId)
-
getOnlyProcessInstances
public boolean getOnlyProcessInstances()
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
getProcessDefinitionCategory
public java.lang.String getProcessDefinitionCategory()
-
getProcessDefinitionName
public java.lang.String getProcessDefinitionName()
-
getProcessDefinitionVersion
public java.lang.Integer getProcessDefinitionVersion()
-
getActivityId
public java.lang.String getActivityId()
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
-
getRootProcessInstanceId
public java.lang.String getRootProcessInstanceId()
-
getProcessInstanceIds
public java.lang.String getProcessInstanceIds()
-
getBusinessKey
public java.lang.String getBusinessKey()
-
getExecutionId
public java.lang.String getExecutionId()
-
getSuperProcessInstanceId
public java.lang.String getSuperProcessInstanceId()
-
getSubProcessInstanceId
public java.lang.String getSubProcessInstanceId()
-
isExcludeSubprocesses
public boolean isExcludeSubprocesses()
-
getSuspensionState
public SuspensionState getSuspensionState()
-
setSuspensionState
public void setSuspensionState(SuspensionState suspensionState)
-
getEventSubscriptions
public java.util.List<EventSubscriptionQueryValue> getEventSubscriptions()
-
isIncludeChildExecutionsWithBusinessKeyQuery
public boolean isIncludeChildExecutionsWithBusinessKeyQuery()
-
setEventSubscriptions
public void setEventSubscriptions(java.util.List<EventSubscriptionQueryValue> eventSubscriptions)
-
isActive
public boolean isActive()
-
getInvolvedUser
public java.lang.String getInvolvedUser()
-
setInvolvedUser
public void setInvolvedUser(java.lang.String involvedUser)
-
getProcessDefinitionIds
public java.util.Set<java.lang.String> getProcessDefinitionIds()
-
getProcessDefinitionKeys
public java.util.Set<java.lang.String> getProcessDefinitionKeys()
-
getParentId
public java.lang.String getParentId()
-
isOnlyChildExecutions
public boolean isOnlyChildExecutions()
-
isOnlySubProcessExecutions
public boolean isOnlySubProcessExecutions()
-
isOnlyProcessInstanceExecutions
public boolean isOnlyProcessInstanceExecutions()
-
getTenantId
public java.lang.String getTenantId()
-
getTenantIdLike
public java.lang.String getTenantIdLike()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
getName
public java.lang.String getName()
-
getNameLike
public java.lang.String getNameLike()
-
setName
public void setName(java.lang.String name)
-
setNameLike
public void setNameLike(java.lang.String nameLike)
-
getNameLikeIgnoreCase
public java.lang.String getNameLikeIgnoreCase()
-
setNameLikeIgnoreCase
public void setNameLikeIgnoreCase(java.lang.String nameLikeIgnoreCase)
-
getStartedBefore
public java.util.Date getStartedBefore()
-
setStartedBefore
public void setStartedBefore(java.util.Date startedBefore)
-
getStartedAfter
public java.util.Date getStartedAfter()
-
setStartedAfter
public void setStartedAfter(java.util.Date startedAfter)
-
getStartedBy
public java.lang.String getStartedBy()
-
setStartedBy
public void setStartedBy(java.lang.String startedBy)
-
-