public class ExecutionQueryImpl extends AbstractVariableQueryImpl<ExecutionQuery,Execution> implements ExecutionQuery
AbstractQuery.NullHandlingOnOrderqueryVariableValuescommandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESCfirstResult, maxResults, parameter| Constructor and Description |
|---|
ExecutionQueryImpl() |
ExecutionQueryImpl(CommandContext commandContext) |
ExecutionQueryImpl(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
ExecutionQueryImpl |
activityId(String activityId)
Only select executions which contain an activity with the given id.
|
ExecutionQuery |
eventSubscription(String eventType,
String eventName) |
long |
executeCount(CommandContext commandContext) |
List<Execution> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
ExecutionQueryImpl |
executionId(String executionId)
Only select executions with the given id.
|
ExecutionQueryImpl |
executionTenantId(String tenantId)
Only select process instances that have the given tenant id.
|
ExecutionQueryImpl |
executionTenantIdLike(String tenantIdLike)
Only select process instances with a tenant id like the given one.
|
ExecutionQueryImpl |
executionWithoutTenantId()
Only select process instances that do not have a tenant id.
|
String |
getActivityId() |
String |
getBusinessKey() |
List<EventSubscriptionQueryValue> |
getEventSubscriptions() |
String |
getExecutionId() |
String |
getInvolvedUser() |
String |
getName() |
String |
getNameLike() |
String |
getNameLikeIgnoreCase() |
boolean |
getOnlyProcessInstances() |
String |
getParentId() |
String |
getProcessDefinitionCategory() |
String |
getProcessDefinitionId() |
Set<String> |
getProcessDefinitionIds() |
String |
getProcessDefinitionKey() |
Set<String> |
getProcessDefinitionKeys() |
String |
getProcessDefinitionName() |
Integer |
getProcessDefinitionVersion() |
String |
getProcessInstanceId() |
String |
getProcessInstanceIds() |
String |
getSubProcessInstanceId() |
String |
getSuperProcessInstanceId() |
SuspensionState |
getSuspensionState() |
String |
getTenantId() |
String |
getTenantIdLike() |
boolean |
isActive() |
boolean |
isExcludeSubprocesses() |
boolean |
isIncludeChildExecutionsWithBusinessKeyQuery() |
boolean |
isProcessInstancesOnly() |
boolean |
isWithoutTenantId() |
ExecutionQuery |
locale(String locale)
Localize execution name and description to specified locale.
|
protected void |
localize(Execution execution,
String activityId) |
ExecutionQuery |
messageEventSubscriptionName(String messageName)
Only select executions which have a message event subscription
for the given messageName.
|
ExecutionQueryImpl |
orderByProcessDefinitionId()
Order by process definition id (needs to be followed by
Query.asc() or Query.desc()). |
ExecutionQueryImpl |
orderByProcessDefinitionKey()
Order by process definition key (needs to be followed by
Query.asc() or Query.desc()). |
ExecutionQueryImpl |
orderByProcessInstanceId()
Order by id (needs to be followed by
Query.asc() or Query.desc()). |
ExecutionQueryImpl |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc()). |
ExecutionQueryImpl |
parentId(String parentId)
Only select executions which are a direct child-execution of the execution with the given id.
|
ExecutionQuery |
processDefinitionCategory(String processDefinitionCategory)
Only select executions which have the given process definition category.
|
ExecutionQueryImpl |
processDefinitionId(String processDefinitionId)
Only select executions which have the given process definition id.
|
ExecutionQueryImpl |
processDefinitionKey(String processDefinitionKey)
Only select executions which have the given process definition key.
|
ExecutionQuery |
processDefinitionKeys(Set<String> processDefinitionKeys)
Only select executions which have process definitions with the given keys.
|
ExecutionQuery |
processDefinitionName(String processDefinitionName)
Only select executions which have the given process definition name.
|
ExecutionQuery |
processDefinitionVersion(Integer processDefinitionVersion)
Only select executions which have the given process definition version.
|
ExecutionQuery |
processInstanceBusinessKey(String businessKey)
Only executions with the given business key.
|
ExecutionQuery |
processInstanceBusinessKey(String processInstanceBusinessKey,
boolean includeChildExecutions)
Only executions with the given business key.
|
ExecutionQueryImpl |
processInstanceId(String processInstanceId)
Only select executions which have the given process instance id.
|
ExecutionQuery |
processVariableValueEquals(Object variableValue)
Only select executions which are part of a process that have at least one variable
with the given value.
|
ExecutionQuery |
processVariableValueEquals(String variableName,
Object variableValue)
Only select executions which are part of a process that have a variable
with the given name set to the given value.
|
ExecutionQuery |
processVariableValueEqualsIgnoreCase(String name,
String value)
Only select executions which are part of a process that have a local string variable with
the given value, case insensitive.
|
ExecutionQuery |
processVariableValueLike(String name,
String value)
Only select executions which are part of a process that have at least one variable like the given value.
|
ExecutionQuery |
processVariableValueLikeIgnoreCase(String name,
String value)
Only select executions which are part of a process that have at least one variable like the given value (case insensitive).
|
ExecutionQuery |
processVariableValueNotEquals(String variableName,
Object variableValue)
Only select executions which are part of a process that have a variable with the given name, but
with a different value than the passed value.
|
ExecutionQuery |
processVariableValueNotEqualsIgnoreCase(String name,
String value)
Only select executions which are part of a process that have a local string variable which is not
the given value, case insensitive.
|
void |
setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions) |
void |
setInvolvedUser(String involvedUser) |
void |
setName(String name) |
void |
setNameLike(String nameLike) |
void |
setNameLikeIgnoreCase(String nameLikeIgnoreCase) |
void |
setSuspensionState(SuspensionState suspensionState) |
ExecutionQuery |
signalEventSubscription(String signalName) |
ExecutionQuery |
signalEventSubscriptionName(String signalName)
Only select executions which have a signal event subscription
for the given signal name.
|
ExecutionQuery |
withLocalizationFallback()
Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.
|
addVariable, ensureVariablesInitialized, getQueryVariableValues, isBoolean, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThan, variableValueLessThanOrEqual, variableValueLessThanOrEqual, variableValueLike, variableValueLike, variableValueLikeIgnoreCase, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEquals, variableValueNotEqualsIgnoreCase, variableValueNotEqualsIgnoreCaseaddOrder, asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getDatabaseType, getOrderBy, getOrderByColumns, list, listPage, orderBy, orderBy, setCommandExecutor, setDatabaseType, singleResultgetFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvariableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEqualsIgnoreCaseprotected String processDefinitionId
protected String processDefinitionKey
protected String processDefinitionCategory
protected String processDefinitionName
protected Integer processDefinitionVersion
protected String activityId
protected String executionId
protected String parentId
protected String processInstanceId
protected List<EventSubscriptionQueryValue> eventSubscriptions
protected String tenantId
protected String tenantIdLike
protected boolean withoutTenantId
protected String locale
protected boolean withLocalizationFallback
protected String superProcessInstanceId
protected String subProcessInstanceId
protected boolean excludeSubprocesses
protected SuspensionState suspensionState
protected String businessKey
protected boolean includeChildExecutionsWithBusinessKeyQuery
protected boolean isActive
protected String involvedUser
protected String name
protected String nameLike
protected String nameLikeIgnoreCase
protected String deploymentId
protected List<ExecutionQueryImpl> orQueryObjects
public ExecutionQueryImpl()
public ExecutionQueryImpl(CommandContext commandContext)
public ExecutionQueryImpl(CommandExecutor commandExecutor)
public boolean isProcessInstancesOnly()
public ExecutionQueryImpl processDefinitionId(String processDefinitionId)
ExecutionQueryprocessDefinitionId in interface ExecutionQuerypublic ExecutionQueryImpl processDefinitionKey(String processDefinitionKey)
ExecutionQueryprocessDefinitionKey in interface ExecutionQuerypublic ExecutionQuery processDefinitionCategory(String processDefinitionCategory)
ExecutionQueryprocessDefinitionCategory in interface ExecutionQuerypublic ExecutionQuery processDefinitionName(String processDefinitionName)
ExecutionQueryprocessDefinitionName in interface ExecutionQuerypublic ExecutionQuery processDefinitionVersion(Integer processDefinitionVersion)
ExecutionQueryExecutionQuery.processDefinitionKey(String)processDefinitionVersion in interface ExecutionQuerypublic ExecutionQueryImpl processInstanceId(String processInstanceId)
ExecutionQueryprocessInstanceId in interface ExecutionQuerypublic ExecutionQuery processInstanceBusinessKey(String businessKey)
ExecutionQueryExecutionQuery.processInstanceBusinessKey(String, boolean) method
with a boolean value of true instead.processInstanceBusinessKey in interface ExecutionQuerypublic ExecutionQuery processInstanceBusinessKey(String processInstanceBusinessKey, boolean includeChildExecutions)
ExecutionQueryExecutionQuery.processInstanceBusinessKey(String), but allows to choose
whether child executions are returned or not.processInstanceBusinessKey in interface ExecutionQuerypublic ExecutionQuery processDefinitionKeys(Set<String> processDefinitionKeys)
ExecutionQueryprocessDefinitionKeys in interface ExecutionQuerypublic ExecutionQueryImpl executionId(String executionId)
ExecutionQueryexecutionId in interface ExecutionQuerypublic ExecutionQueryImpl activityId(String activityId)
ExecutionQueryactivityId in interface ExecutionQuerypublic ExecutionQueryImpl parentId(String parentId)
ExecutionQueryparentId in interface ExecutionQuerypublic ExecutionQueryImpl executionTenantId(String tenantId)
ExecutionQueryexecutionTenantId in interface ExecutionQuerypublic ExecutionQueryImpl executionTenantIdLike(String tenantIdLike)
ExecutionQueryexecutionTenantIdLike in interface ExecutionQuerypublic ExecutionQueryImpl executionWithoutTenantId()
ExecutionQueryexecutionWithoutTenantId in interface ExecutionQuerypublic ExecutionQuery signalEventSubscription(String signalName)
signalEventSubscription in interface ExecutionQueryExecutionQuery.signalEventSubscriptionName(String)public ExecutionQuery signalEventSubscriptionName(String signalName)
ExecutionQuerysignalEventSubscriptionName in interface ExecutionQuerysignalName - the name of the signal the execution has subscribed topublic ExecutionQuery messageEventSubscriptionName(String messageName)
ExecutionQuerymessageEventSubscriptionName in interface ExecutionQuerymessageName - the name of the message the execution has subscribed topublic ExecutionQuery eventSubscription(String eventType, String eventName)
public ExecutionQuery processVariableValueEquals(String variableName, Object variableValue)
ExecutionQuerySerializable objects (which are not primitive type wrappers)
are not supported.processVariableValueEquals in interface ExecutionQuerypublic ExecutionQuery processVariableValueEquals(Object variableValue)
ExecutionQuerySerializable objects (which are not primitive type wrappers)
are not supported.processVariableValueEquals in interface ExecutionQuerypublic ExecutionQuery processVariableValueNotEquals(String variableName, Object variableValue)
ExecutionQuerySerializable objects (which are not primitive type wrappers)
are not supported.processVariableValueNotEquals in interface ExecutionQuerypublic ExecutionQuery processVariableValueEqualsIgnoreCase(String name, String value)
ExecutionQueryThis 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).
processVariableValueEqualsIgnoreCase in interface ExecutionQueryname - name of the variable, cannot be null.value - value of the variable, cannot be null.public ExecutionQuery processVariableValueNotEqualsIgnoreCase(String name, String value)
ExecutionQueryThis 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).
processVariableValueNotEqualsIgnoreCase in interface ExecutionQueryname - name of the variable, cannot be null.value - value of the variable, cannot be null.public ExecutionQuery processVariableValueLike(String name, String value)
ExecutionQuerySerializable objects (which are not primitive type wrappers) are not supported.processVariableValueLike in interface ExecutionQuerypublic ExecutionQuery processVariableValueLikeIgnoreCase(String name, String value)
ExecutionQuerySerializable objects (which are not primitive type wrappers) are not supported.processVariableValueLikeIgnoreCase in interface ExecutionQuerypublic ExecutionQuery locale(String locale)
ExecutionQuerylocale in interface ExecutionQuerypublic ExecutionQuery withLocalizationFallback()
ExecutionQuerywithLocalizationFallback in interface ExecutionQuerypublic ExecutionQueryImpl orderByProcessInstanceId()
ExecutionQueryQuery.asc() or Query.desc()).orderByProcessInstanceId in interface ExecutionQuerypublic ExecutionQueryImpl orderByProcessDefinitionId()
ExecutionQueryQuery.asc() or Query.desc()).orderByProcessDefinitionId in interface ExecutionQuerypublic ExecutionQueryImpl orderByProcessDefinitionKey()
ExecutionQueryQuery.asc() or Query.desc()).orderByProcessDefinitionKey in interface ExecutionQuerypublic ExecutionQueryImpl orderByTenantId()
ExecutionQueryQuery.asc() or Query.desc()).orderByTenantId in interface ExecutionQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractVariableQueryImpl<ExecutionQuery,Execution>public List<Execution> executeList(CommandContext commandContext, Page page)
AbstractQueryexecuteList in class AbstractVariableQueryImpl<ExecutionQuery,Execution>page - used if the results must be paged. If null, no paging will be applied.public boolean getOnlyProcessInstances()
public String getProcessDefinitionKey()
public String getProcessDefinitionId()
public String getProcessDefinitionCategory()
public String getProcessDefinitionName()
public Integer getProcessDefinitionVersion()
public String getActivityId()
public String getProcessInstanceId()
public String getProcessInstanceIds()
public String getBusinessKey()
public String getExecutionId()
public String getSuperProcessInstanceId()
public String getSubProcessInstanceId()
public boolean isExcludeSubprocesses()
public SuspensionState getSuspensionState()
public void setSuspensionState(SuspensionState suspensionState)
public List<EventSubscriptionQueryValue> getEventSubscriptions()
public boolean isIncludeChildExecutionsWithBusinessKeyQuery()
public void setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions)
public boolean isActive()
public String getInvolvedUser()
public void setInvolvedUser(String involvedUser)
public String getParentId()
public String getTenantId()
public String getTenantIdLike()
public boolean isWithoutTenantId()
public String getName()
public String getNameLike()
public void setName(String name)
public void setNameLike(String nameLike)
public String getNameLikeIgnoreCase()
public void setNameLikeIgnoreCase(String nameLikeIgnoreCase)
Copyright © 2016 Alfresco. All rights reserved.