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 |
incidentId |
protected String |
incidentMessage |
protected String |
incidentMessageLike |
protected String |
incidentType |
protected String |
processDefinitionId |
protected String |
processDefinitionKey |
protected Set<String> |
processInstanceIds |
protected String |
subProcessInstanceId |
protected String |
superProcessInstanceId |
protected SuspensionState |
suspensionState |
queryVariableValues
commandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
databaseType, firstResult, maxResults, parameter
authDefaultPerm, 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() |
String |
getIncidentId() |
String |
getIncidentMessage() |
String |
getIncidentMessageLike() |
String |
getIncidentType() |
boolean |
getOnlyProcessInstances() |
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
String |
getProcessInstanceId() |
Set<String> |
getProcessInstanceIds() |
String |
getSubProcessInstanceId() |
String |
getSuperProcessInstanceId() |
SuspensionState |
getSuspensionState() |
ProcessInstanceQuery |
incidentId(String incidentId)
Only selects process instances with the given incident id.
|
ProcessInstanceQuery |
incidentMessage(String incidentMessage)
Only selects process instances with the given incident message.
|
ProcessInstanceQuery |
incidentMessageLike(String incidentMessageLike)
Only selects process instances with an incident message like the given.
|
ProcessInstanceQuery |
incidentType(String incidentType)
Only selects process instances with the given incident type.
|
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, variableValueNotEquals
addOrder, asc, assertParamNotNull, assertParamNotNull, checkQueryOk, count, desc, direction, execute, executeSingleResult, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResult
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter
getAuthDefaultPerm, getAuthGroupIds, getAuthPerms, getAuthResourceId, getAuthResourceIdQueryParam, getAuthResourceType, getAuthUserId, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthPerms, setAuthResourceId, setAuthResourceIdQueryParam, setAuthResourceType, setAuthUserId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals
protected String executionId
protected String businessKey
protected String processDefinitionId
protected String processDefinitionKey
protected String superProcessInstanceId
protected String subProcessInstanceId
protected SuspensionState suspensionState
protected String incidentType
protected String incidentId
protected String incidentMessage
protected String incidentMessageLike
protected String activityId
protected List<EventSubscriptionQueryValue> eventSubscriptions
public ProcessInstanceQueryImpl()
public ProcessInstanceQueryImpl(CommandContext commandContext)
public ProcessInstanceQueryImpl(CommandExecutor commandExecutor)
public ProcessInstanceQueryImpl processInstanceId(String processInstanceId)
ProcessInstanceQuery
processInstanceId
in interface ProcessInstanceQuery
public ProcessInstanceQuery processInstanceIds(Set<String> processInstanceIds)
ProcessInstanceQuery
processInstanceIds
in interface ProcessInstanceQuery
public ProcessInstanceQuery processInstanceBusinessKey(String businessKey)
ProcessInstanceQuery
processInstanceBusinessKey
in interface ProcessInstanceQuery
public ProcessInstanceQuery processInstanceBusinessKey(String businessKey, String processDefinitionKey)
ProcessInstanceQuery
processInstanceBusinessKey
in interface ProcessInstanceQuery
public ProcessInstanceQueryImpl processDefinitionId(String processDefinitionId)
ProcessInstanceQuery
processDefinitionId
in interface ProcessInstanceQuery
public ProcessInstanceQueryImpl processDefinitionKey(String processDefinitionKey)
ProcessInstanceQuery
processDefinitionKey
in interface ProcessInstanceQuery
public ProcessInstanceQuery superProcessInstanceId(String superProcessInstanceId)
ProcessInstanceQuery
superProcessInstanceId
in interface ProcessInstanceQuery
public ProcessInstanceQuery subProcessInstanceId(String subProcessInstanceId)
ProcessInstanceQuery
subProcessInstanceId
in interface ProcessInstanceQuery
public ProcessInstanceQuery orderByProcessInstanceId()
ProcessInstanceQuery
Query.asc()
or Query.desc()
).orderByProcessInstanceId
in interface ProcessInstanceQuery
public ProcessInstanceQuery orderByProcessDefinitionId()
ProcessInstanceQuery
Query.asc()
or Query.desc()
).orderByProcessDefinitionId
in interface ProcessInstanceQuery
public ProcessInstanceQuery orderByProcessDefinitionKey()
ProcessInstanceQuery
Query.asc()
or Query.desc()
).orderByProcessDefinitionKey
in interface ProcessInstanceQuery
public ProcessInstanceQuery active()
ProcessInstanceQuery
active
in interface ProcessInstanceQuery
public ProcessInstanceQuery suspended()
ProcessInstanceQuery
suspended
in interface ProcessInstanceQuery
public ProcessInstanceQuery incidentType(String incidentType)
ProcessInstanceQuery
incidentType
in interface ProcessInstanceQuery
public ProcessInstanceQuery incidentId(String incidentId)
ProcessInstanceQuery
incidentId
in interface ProcessInstanceQuery
public ProcessInstanceQuery incidentMessage(String incidentMessage)
ProcessInstanceQuery
incidentMessage
in interface ProcessInstanceQuery
public ProcessInstanceQuery incidentMessageLike(String incidentMessageLike)
ProcessInstanceQuery
incidentMessageLike
in interface ProcessInstanceQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
public List<ProcessInstance> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
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)
public String getIncidentId()
public String getIncidentType()
public String getIncidentMessage()
public String getIncidentMessageLike()
Copyright © 2015. All rights reserved.