public class ExecutionQueryImpl extends AbstractVariableQueryImpl<ExecutionQuery,Execution> implements ExecutionQuery
AbstractQuery.NullHandlingOnOrder
queryVariableValues
commandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
firstResult, 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, variableValueNotEqualsIgnoreCase
addOrder, asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getDatabaseType, getOrderBy, getOrderByColumns, list, listPage, orderBy, orderBy, setCommandExecutor, setDatabaseType, singleResult
getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEqualsIgnoreCase
protected 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)
ExecutionQuery
processDefinitionId
in interface ExecutionQuery
public ExecutionQueryImpl processDefinitionKey(String processDefinitionKey)
ExecutionQuery
processDefinitionKey
in interface ExecutionQuery
public ExecutionQuery processDefinitionCategory(String processDefinitionCategory)
ExecutionQuery
processDefinitionCategory
in interface ExecutionQuery
public ExecutionQuery processDefinitionName(String processDefinitionName)
ExecutionQuery
processDefinitionName
in interface ExecutionQuery
public ExecutionQuery processDefinitionVersion(Integer processDefinitionVersion)
ExecutionQuery
ExecutionQuery.processDefinitionKey(String)
processDefinitionVersion
in interface ExecutionQuery
public ExecutionQueryImpl processInstanceId(String processInstanceId)
ExecutionQuery
processInstanceId
in interface ExecutionQuery
public ExecutionQuery processInstanceBusinessKey(String businessKey)
ExecutionQuery
ExecutionQuery.processInstanceBusinessKey(String, boolean)
method
with a boolean value of true instead.processInstanceBusinessKey
in interface ExecutionQuery
public ExecutionQuery processInstanceBusinessKey(String processInstanceBusinessKey, boolean includeChildExecutions)
ExecutionQuery
ExecutionQuery.processInstanceBusinessKey(String)
, but allows to choose
whether child executions are returned or not.processInstanceBusinessKey
in interface ExecutionQuery
public ExecutionQuery processDefinitionKeys(Set<String> processDefinitionKeys)
ExecutionQuery
processDefinitionKeys
in interface ExecutionQuery
public ExecutionQueryImpl executionId(String executionId)
ExecutionQuery
executionId
in interface ExecutionQuery
public ExecutionQueryImpl activityId(String activityId)
ExecutionQuery
activityId
in interface ExecutionQuery
public ExecutionQueryImpl parentId(String parentId)
ExecutionQuery
parentId
in interface ExecutionQuery
public ExecutionQueryImpl executionTenantId(String tenantId)
ExecutionQuery
executionTenantId
in interface ExecutionQuery
public ExecutionQueryImpl executionTenantIdLike(String tenantIdLike)
ExecutionQuery
executionTenantIdLike
in interface ExecutionQuery
public ExecutionQueryImpl executionWithoutTenantId()
ExecutionQuery
executionWithoutTenantId
in interface ExecutionQuery
public ExecutionQuery signalEventSubscription(String signalName)
signalEventSubscription
in interface ExecutionQuery
ExecutionQuery.signalEventSubscriptionName(String)
public ExecutionQuery signalEventSubscriptionName(String signalName)
ExecutionQuery
signalEventSubscriptionName
in interface ExecutionQuery
signalName
- the name of the signal the execution has subscribed topublic ExecutionQuery messageEventSubscriptionName(String messageName)
ExecutionQuery
messageEventSubscriptionName
in interface ExecutionQuery
messageName
- the name of the message the execution has subscribed topublic ExecutionQuery eventSubscription(String eventType, String eventName)
public ExecutionQuery processVariableValueEquals(String variableName, Object variableValue)
ExecutionQuery
Serializable
objects (which are not primitive type wrappers)
are not supported.processVariableValueEquals
in interface ExecutionQuery
public ExecutionQuery processVariableValueEquals(Object variableValue)
ExecutionQuery
Serializable
objects (which are not primitive type wrappers)
are not supported.processVariableValueEquals
in interface ExecutionQuery
public ExecutionQuery processVariableValueNotEquals(String variableName, Object variableValue)
ExecutionQuery
Serializable
objects (which are not primitive type wrappers)
are not supported.processVariableValueNotEquals
in interface ExecutionQuery
public ExecutionQuery processVariableValueEqualsIgnoreCase(String name, String value)
ExecutionQuery
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).
processVariableValueEqualsIgnoreCase
in interface ExecutionQuery
name
- name of the variable, cannot be null.value
- value of the variable, cannot be null.public ExecutionQuery processVariableValueNotEqualsIgnoreCase(String name, String value)
ExecutionQuery
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).
processVariableValueNotEqualsIgnoreCase
in interface ExecutionQuery
name
- name of the variable, cannot be null.value
- value of the variable, cannot be null.public ExecutionQuery processVariableValueLike(String name, String value)
ExecutionQuery
Serializable
objects (which are not primitive type wrappers) are not supported.processVariableValueLike
in interface ExecutionQuery
public ExecutionQuery processVariableValueLikeIgnoreCase(String name, String value)
ExecutionQuery
Serializable
objects (which are not primitive type wrappers) are not supported.processVariableValueLikeIgnoreCase
in interface ExecutionQuery
public ExecutionQuery locale(String locale)
ExecutionQuery
locale
in interface ExecutionQuery
public ExecutionQuery withLocalizationFallback()
ExecutionQuery
withLocalizationFallback
in interface ExecutionQuery
public ExecutionQueryImpl orderByProcessInstanceId()
ExecutionQuery
Query.asc()
or Query.desc()
).orderByProcessInstanceId
in interface ExecutionQuery
public ExecutionQueryImpl orderByProcessDefinitionId()
ExecutionQuery
Query.asc()
or Query.desc()
).orderByProcessDefinitionId
in interface ExecutionQuery
public ExecutionQueryImpl orderByProcessDefinitionKey()
ExecutionQuery
Query.asc()
or Query.desc()
).orderByProcessDefinitionKey
in interface ExecutionQuery
public ExecutionQueryImpl orderByTenantId()
ExecutionQuery
Query.asc()
or Query.desc()
).orderByTenantId
in interface ExecutionQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractVariableQueryImpl<ExecutionQuery,Execution>
public List<Execution> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
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.