|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.db.AuthorizationCheck
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<T,U>
org.camunda.bpm.engine.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
org.camunda.bpm.engine.impl.ExecutionQueryImpl
public class ExecutionQueryImpl
| Field Summary | |
|---|---|
protected String |
activityId
|
protected List<EventSubscriptionQueryValue> |
eventSubscriptions
|
protected String |
executionId
|
protected String |
processDefinitionId
|
protected String |
processDefinitionKey
|
protected String |
processInstanceId
|
protected String |
subProcessInstanceId
|
protected String |
superProcessInstanceId
|
protected SuspensionState |
suspensionState
|
| Fields inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl |
|---|
queryVariableValues |
| Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery |
|---|
commandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC |
| Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject |
|---|
databaseType, firstResult, maxResults, parameter |
| Fields inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck |
|---|
authDefaultPerm, authGroupIds, authPerms, authResourceId, authResourceIdQueryParam, authResourceType, authUserId, isAuthorizationCheckEnabled |
| Constructor Summary | |
|---|---|
ExecutionQueryImpl()
|
|
ExecutionQueryImpl(CommandContext commandContext)
|
|
ExecutionQueryImpl(CommandExecutor commandExecutor)
|
|
| Method Summary | |
|---|---|
ExecutionQuery |
active()
Only selects executions which are active (i.e. |
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. |
String |
getActivityId()
|
String |
getBusinessKey()
|
List<EventSubscriptionQueryValue> |
getEventSubscriptions()
|
String |
getExecutionId()
|
boolean |
getOnlyProcessInstances()
|
String |
getProcessDefinitionId()
|
String |
getProcessDefinitionKey()
|
String |
getProcessInstanceId()
|
String |
getProcessInstanceIds()
|
String |
getSubProcessInstanceId()
|
String |
getSuperProcessInstanceId()
|
SuspensionState |
getSuspensionState()
|
boolean |
isProcessInstancesOnly()
|
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 |
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 |
processInstanceBusinessKey(String businessKey)
Only select executions that belong to a process instance with the given business key |
ExecutionQueryImpl |
processInstanceId(String processInstanceId)
Only select executions which have the given process instance id. |
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 |
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. |
void |
setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions)
|
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 |
suspended()
Only selects executions which are suspended, because their process instance is suspended. |
| Methods inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl |
|---|
addVariable, ensureVariablesInitialized, getQueryVariableValues, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals |
| Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery |
|---|
addOrder, asc, assertParamNotNull, assertParamNotNull, checkQueryOk, count, desc, direction, execute, executeSingleResult, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResult |
| Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject |
|---|
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setParameter |
| Methods inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck |
|---|
getAuthDefaultPerm, getAuthGroupIds, getAuthPerms, getAuthResourceId, getAuthResourceIdQueryParam, getAuthResourceType, getAuthUserId, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthPerms, setAuthResourceId, setAuthResourceIdQueryParam, setAuthResourceType, setAuthUserId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.camunda.bpm.engine.runtime.ExecutionQuery |
|---|
variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals |
| Methods inherited from interface org.camunda.bpm.engine.query.Query |
|---|
asc, count, desc, list, listPage, singleResult |
| Field Detail |
|---|
protected String processDefinitionId
protected String processDefinitionKey
protected String activityId
protected String executionId
protected String processInstanceId
protected List<EventSubscriptionQueryValue> eventSubscriptions
protected SuspensionState suspensionState
protected String superProcessInstanceId
protected String subProcessInstanceId
| Constructor Detail |
|---|
public ExecutionQueryImpl()
public ExecutionQueryImpl(CommandContext commandContext)
public ExecutionQueryImpl(CommandExecutor commandExecutor)
| Method Detail |
|---|
public boolean isProcessInstancesOnly()
public ExecutionQueryImpl processDefinitionId(String processDefinitionId)
ExecutionQuery
processDefinitionId in interface ExecutionQuerypublic ExecutionQueryImpl processDefinitionKey(String processDefinitionKey)
ExecutionQuery
processDefinitionKey in interface ExecutionQuerypublic ExecutionQueryImpl processInstanceId(String processInstanceId)
ExecutionQuery
processInstanceId in interface ExecutionQuerypublic ExecutionQuery processInstanceBusinessKey(String businessKey)
ExecutionQuery
processInstanceBusinessKey in interface ExecutionQuerypublic ExecutionQueryImpl executionId(String executionId)
ExecutionQuery
executionId in interface ExecutionQuerypublic ExecutionQueryImpl activityId(String activityId)
ExecutionQuery
activityId in interface ExecutionQuerypublic ExecutionQuery signalEventSubscription(String signalName)
signalEventSubscription in interface ExecutionQueryExecutionQuery.signalEventSubscriptionName(String)public ExecutionQuery signalEventSubscriptionName(String signalName)
ExecutionQuery
signalEventSubscriptionName in interface ExecutionQuerysignalName - the name of the signal the execution has subscribed topublic ExecutionQuery messageEventSubscriptionName(String messageName)
ExecutionQuery
messageEventSubscriptionName in interface ExecutionQuerymessageName - the name of the message the execution has subscribed to
public ExecutionQuery eventSubscription(String eventType,
String eventName)
public ExecutionQuery suspended()
ExecutionQuery
suspended in interface ExecutionQuerypublic ExecutionQuery active()
ExecutionQuery
active in interface ExecutionQuery
public ExecutionQuery processVariableValueEquals(String variableName,
Object variableValue)
ExecutionQuery
processVariableValueEquals in interface ExecutionQuery
public ExecutionQuery processVariableValueNotEquals(String variableName,
Object variableValue)
ExecutionQuerySerializable objects (which are not primitive type wrappers)
are not supported.
processVariableValueNotEquals 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 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 getActivityId()
public String getProcessInstanceId()
public String getProcessInstanceIds()
public String getBusinessKey()
public String getExecutionId()
public String getSuperProcessInstanceId()
public String getSubProcessInstanceId()
public SuspensionState getSuspensionState()
public void setSuspensionState(SuspensionState suspensionState)
public List<EventSubscriptionQueryValue> getEventSubscriptions()
public void setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||