public class ProcessInstanceQueryImpl extends AbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance> implements ProcessInstanceQuery, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
activityId |
protected String |
businessKey |
protected List<EventSubscriptionQueryValue> |
eventSubscriptions |
protected String |
executionId |
protected String |
processDefinitionId |
protected String |
processDefinitionKey |
protected Set<String> |
processInstanceIds |
protected String |
subProcessInstanceId |
protected String |
superProcessInstanceId |
protected SuspensionState |
suspensionState |
queryVariableValuescommandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESCdatabaseType, firstResult, maxResults, parameterauthDefaultPerm, authGroupIds, authPerms, authResourceId, authResourceIdQueryParam, authResourceType, authUserId, isAuthorizationCheckEnabled| Constructor and Description |
|---|
ProcessInstanceQueryImpl() |
ProcessInstanceQueryImpl(CommandContext commandContext) |
ProcessInstanceQueryImpl(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
ProcessInstanceQuery |
active()
Only selects process instances which are active, which means that
neither the process instance nor the corresponding process definition
are suspended.
|
long |
executeCount(CommandContext commandContext) |
List<ProcessInstance> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
String |
getActivityId() |
String |
getBusinessKey() |
List<EventSubscriptionQueryValue> |
getEventSubscriptions() |
boolean |
getOnlyProcessInstances() |
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
String |
getProcessInstanceId() |
Set<String> |
getProcessInstanceIds() |
String |
getSubProcessInstanceId() |
String |
getSuperProcessInstanceId() |
SuspensionState |
getSuspensionState() |
ProcessInstanceQuery |
orderByProcessDefinitionId()
Order by process definition id (needs to be followed by
Query.asc() or Query.desc()). |
ProcessInstanceQuery |
orderByProcessDefinitionKey()
Order by process definition key (needs to be followed by
Query.asc() or Query.desc()). |
ProcessInstanceQuery |
orderByProcessInstanceId()
Order by id (needs to be followed by
Query.asc() or Query.desc()). |
ProcessInstanceQueryImpl |
processDefinitionId(String processDefinitionId)
Selects the process instances which are defined by a process definition
with the given id.
|
ProcessInstanceQueryImpl |
processDefinitionKey(String processDefinitionKey)
Select the process instances which are defined by a process definition with
the given key.
|
ProcessInstanceQuery |
processInstanceBusinessKey(String businessKey)
Select process instances with the given business key
|
ProcessInstanceQuery |
processInstanceBusinessKey(String businessKey,
String processDefinitionKey)
Select process instance with the given business key, unique for the given process definition
|
ProcessInstanceQueryImpl |
processInstanceId(String processInstanceId)
Select the process instance with the given id
|
ProcessInstanceQuery |
processInstanceIds(Set<String> processInstanceIds)
Select process instances whose id is in the given set of ids
|
void |
setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions) |
void |
setSuspensionState(SuspensionState suspensionState) |
ProcessInstanceQuery |
subProcessInstanceId(String subProcessInstanceId)
Select the process instance that have as sub process instance the given
process instance.
|
ProcessInstanceQuery |
superProcessInstanceId(String superProcessInstanceId)
Select the process instances which are a sub process instance of the given
super process instance.
|
ProcessInstanceQuery |
suspended()
Only selects process instances which are suspended, either because the
process instance itself is suspended or because the corresponding process
definition is suspended
|
addVariable, ensureVariablesInitialized, getQueryVariableValues, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEqualsaddOrder, asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResultgetDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setParametergetAuthDefaultPerm, getAuthGroupIds, getAuthPerms, getAuthResourceId, getAuthResourceIdQueryParam, getAuthResourceType, getAuthUserId, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthPerms, setAuthResourceId, setAuthResourceIdQueryParam, setAuthResourceType, setAuthUserIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvariableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEqualsprotected String executionId
protected String businessKey
protected String processDefinitionId
protected String processDefinitionKey
protected String superProcessInstanceId
protected String subProcessInstanceId
protected SuspensionState suspensionState
protected String activityId
protected List<EventSubscriptionQueryValue> eventSubscriptions
public ProcessInstanceQueryImpl()
public ProcessInstanceQueryImpl(CommandContext commandContext)
public ProcessInstanceQueryImpl(CommandExecutor commandExecutor)
public ProcessInstanceQueryImpl processInstanceId(String processInstanceId)
ProcessInstanceQueryprocessInstanceId in interface ProcessInstanceQuerypublic ProcessInstanceQuery processInstanceIds(Set<String> processInstanceIds)
ProcessInstanceQueryprocessInstanceIds in interface ProcessInstanceQuerypublic ProcessInstanceQuery processInstanceBusinessKey(String businessKey)
ProcessInstanceQueryprocessInstanceBusinessKey in interface ProcessInstanceQuerypublic ProcessInstanceQuery processInstanceBusinessKey(String businessKey, String processDefinitionKey)
ProcessInstanceQueryprocessInstanceBusinessKey in interface ProcessInstanceQuerypublic ProcessInstanceQueryImpl processDefinitionId(String processDefinitionId)
ProcessInstanceQueryprocessDefinitionId in interface ProcessInstanceQuerypublic ProcessInstanceQueryImpl processDefinitionKey(String processDefinitionKey)
ProcessInstanceQueryprocessDefinitionKey in interface ProcessInstanceQuerypublic ProcessInstanceQuery superProcessInstanceId(String superProcessInstanceId)
ProcessInstanceQuerysuperProcessInstanceId in interface ProcessInstanceQuerypublic ProcessInstanceQuery subProcessInstanceId(String subProcessInstanceId)
ProcessInstanceQuerysubProcessInstanceId in interface ProcessInstanceQuerypublic ProcessInstanceQuery orderByProcessInstanceId()
ProcessInstanceQueryQuery.asc() or Query.desc()).orderByProcessInstanceId in interface ProcessInstanceQuerypublic ProcessInstanceQuery orderByProcessDefinitionId()
ProcessInstanceQueryQuery.asc() or Query.desc()).orderByProcessDefinitionId in interface ProcessInstanceQuerypublic ProcessInstanceQuery orderByProcessDefinitionKey()
ProcessInstanceQueryQuery.asc() or Query.desc()).orderByProcessDefinitionKey in interface ProcessInstanceQuerypublic ProcessInstanceQuery active()
ProcessInstanceQueryactive in interface ProcessInstanceQuerypublic ProcessInstanceQuery suspended()
ProcessInstanceQuerysuspended in interface ProcessInstanceQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>public List<ProcessInstance> executeList(CommandContext commandContext, Page page)
AbstractQueryexecuteList in class AbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>page - used if the results must be paged. If null, no paging will be applied.public boolean getOnlyProcessInstances()
public String getProcessInstanceId()
public String getBusinessKey()
public String getProcessDefinitionId()
public String getProcessDefinitionKey()
public String getActivityId()
public String getSuperProcessInstanceId()
public String getSubProcessInstanceId()
public SuspensionState getSuspensionState()
public void setSuspensionState(SuspensionState suspensionState)
public List<EventSubscriptionQueryValue> getEventSubscriptions()
public void setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions)
Copyright © 2015. All rights reserved.