|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<T,U>
org.camunda.bpm.engine.impl.AbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
org.camunda.bpm.engine.impl.ProcessInstanceQueryImpl
public class ProcessInstanceQueryImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery |
|---|
AbstractQuery.ResultType |
| Field Summary | |
|---|---|
protected String |
activityId
|
protected String |
businessKey
|
protected String |
caseInstanceId
|
protected String |
deploymentId
|
protected List<EventSubscriptionQueryValue> |
eventSubscriptions
|
protected String |
executionId
|
protected String |
incidentId
|
protected String |
incidentMessage
|
protected String |
incidentMessageLike
|
protected String |
incidentType
|
protected boolean |
isTenantIdSet
|
protected String |
processDefinitionId
|
protected String |
processDefinitionKey
|
protected Set<String> |
processInstanceIds
|
protected String |
subCaseInstanceId
|
protected String |
subProcessInstanceId
|
protected String |
superCaseInstanceId
|
protected String |
superProcessInstanceId
|
protected SuspensionState |
suspensionState
|
protected String[] |
tenantIds
|
| Fields inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl |
|---|
queryVariableValues |
| Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery |
|---|
commandExecutor, expressions, orderingProperties, resultType, SORTORDER_ASC, SORTORDER_DESC, validators |
| Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject |
|---|
authCheck, databaseType, DEFAULT_ORDER_BY, firstResult, maxResults, orderBy, parameter, tenantCheck |
| Constructor Summary | |
|---|---|
ProcessInstanceQueryImpl()
|
|
ProcessInstanceQueryImpl(CommandExecutor commandExecutor)
|
|
| Method Summary | |
|---|---|
ProcessInstanceQuery |
active()
Only selects process instances which are active, which means that neither the process instance nor the corresponding process definition are suspended. |
ProcessInstanceQuery |
caseInstanceId(String caseInstanceId)
Selects the process instances which are associated with the given case instance id. |
ProcessInstanceQuery |
deploymentId(String deploymentId)
Selects the process instances which belong to the given deployment id. |
List<String> |
evaluateExpressionsAndExecuteIdsList(CommandContext commandContext)
|
long |
executeCount(CommandContext commandContext)
|
List<String> |
executeIdsList(CommandContext commandContext)
|
List<ProcessInstance> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results. |
String |
getActivityId()
|
String |
getBusinessKey()
|
String |
getCaseInstanceId()
|
String |
getDeploymentId()
|
List<EventSubscriptionQueryValue> |
getEventSubscriptions()
|
String |
getIncidentId()
|
String |
getIncidentMessage()
|
String |
getIncidentMessageLike()
|
String |
getIncidentType()
|
boolean |
getOnlyProcessInstances()
|
String |
getProcessDefinitionId()
|
String |
getProcessDefinitionKey()
|
String |
getProcessInstanceId()
|
Set<String> |
getProcessInstanceIds()
|
String |
getSubCaseInstanceId()
|
String |
getSubProcessInstanceId()
|
String |
getSuperCaseInstanceId()
|
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. |
List<String> |
listIds()
|
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()). |
ProcessInstanceQuery |
orderByTenantId()
Order by tenant 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 |
subCaseInstanceId(String subCaseInstanceId)
Select the process instance that has as sub case instance the given case instance. |
ProcessInstanceQuery |
subProcessInstanceId(String subProcessInstanceId)
Select the process instance that have as sub process instance the given process instance. |
ProcessInstanceQuery |
superCaseInstanceId(String superCaseInstanceId)
Select the process instances which are a sub process instance of the given super case 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 |
ProcessInstanceQuery |
tenantIdIn(String... tenantIds)
Only select process instances with one of the given tenant ids. |
ProcessInstanceQuery |
withoutTenantId()
Only selects process instances which have no tenant id. |
| 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 |
|---|
addExpression, addValidator, asc, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteList, execute, executeSingleResult, extend, getExpressions, getMethod, getOrderBy, getOrderingProperties, hasExcludingConditions, list, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, setOrderingProperties, singleResult, validate, validate |
| Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject |
|---|
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter, setTenantCheck |
| 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.ProcessInstanceQuery |
|---|
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 executionId
protected String businessKey
protected String processDefinitionId
protected Set<String> processInstanceIds
protected String processDefinitionKey
protected String deploymentId
protected String superProcessInstanceId
protected String subProcessInstanceId
protected SuspensionState suspensionState
protected String incidentType
protected String incidentId
protected String incidentMessage
protected String incidentMessageLike
protected String caseInstanceId
protected String superCaseInstanceId
protected String subCaseInstanceId
protected boolean isTenantIdSet
protected String[] tenantIds
protected String activityId
protected List<EventSubscriptionQueryValue> eventSubscriptions
| Constructor Detail |
|---|
public ProcessInstanceQueryImpl()
public ProcessInstanceQueryImpl(CommandExecutor commandExecutor)
| Method Detail |
|---|
public ProcessInstanceQueryImpl processInstanceId(String processInstanceId)
ProcessInstanceQuery
processInstanceId in interface ProcessInstanceQuerypublic ProcessInstanceQuery processInstanceIds(Set<String> processInstanceIds)
ProcessInstanceQuery
processInstanceIds in interface ProcessInstanceQuerypublic ProcessInstanceQuery processInstanceBusinessKey(String businessKey)
ProcessInstanceQuery
processInstanceBusinessKey in interface ProcessInstanceQuery
public ProcessInstanceQuery processInstanceBusinessKey(String businessKey,
String processDefinitionKey)
ProcessInstanceQuery
processInstanceBusinessKey in interface ProcessInstanceQuerypublic ProcessInstanceQueryImpl processDefinitionId(String processDefinitionId)
ProcessInstanceQuery
processDefinitionId in interface ProcessInstanceQuerypublic ProcessInstanceQueryImpl processDefinitionKey(String processDefinitionKey)
ProcessInstanceQuery
processDefinitionKey in interface ProcessInstanceQuerypublic ProcessInstanceQuery deploymentId(String deploymentId)
ProcessInstanceQuery
deploymentId in interface ProcessInstanceQuerypublic ProcessInstanceQuery superProcessInstanceId(String superProcessInstanceId)
ProcessInstanceQuery
superProcessInstanceId in interface ProcessInstanceQuerypublic ProcessInstanceQuery subProcessInstanceId(String subProcessInstanceId)
ProcessInstanceQuery
subProcessInstanceId in interface ProcessInstanceQuerypublic ProcessInstanceQuery caseInstanceId(String caseInstanceId)
ProcessInstanceQuery
caseInstanceId in interface ProcessInstanceQuerypublic ProcessInstanceQuery superCaseInstanceId(String superCaseInstanceId)
ProcessInstanceQuery
superCaseInstanceId in interface ProcessInstanceQuerypublic ProcessInstanceQuery subCaseInstanceId(String subCaseInstanceId)
ProcessInstanceQuery
subCaseInstanceId 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 orderByTenantId()
ProcessInstanceQueryQuery.asc() or Query.desc()).
Note that the ordering of process instances without tenant id is database-specific.
orderByTenantId in interface ProcessInstanceQuerypublic ProcessInstanceQuery active()
ProcessInstanceQuery
active in interface ProcessInstanceQuerypublic ProcessInstanceQuery suspended()
ProcessInstanceQuery
suspended in interface ProcessInstanceQuerypublic ProcessInstanceQuery incidentType(String incidentType)
ProcessInstanceQuery
incidentType in interface ProcessInstanceQuerypublic ProcessInstanceQuery incidentId(String incidentId)
ProcessInstanceQuery
incidentId in interface ProcessInstanceQuerypublic ProcessInstanceQuery incidentMessage(String incidentMessage)
ProcessInstanceQuery
incidentMessage in interface ProcessInstanceQuerypublic ProcessInstanceQuery incidentMessageLike(String incidentMessageLike)
ProcessInstanceQuery
incidentMessageLike in interface ProcessInstanceQuerypublic ProcessInstanceQuery tenantIdIn(String... tenantIds)
ProcessInstanceQuery
tenantIdIn in interface ProcessInstanceQuerypublic ProcessInstanceQuery withoutTenantId()
ProcessInstanceQuery
withoutTenantId in interface ProcessInstanceQuerypublic 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 List<String> listIds()
public List<String> evaluateExpressionsAndExecuteIdsList(CommandContext commandContext)
public List<String> executeIdsList(CommandContext commandContext)
public boolean getOnlyProcessInstances()
public String getProcessInstanceId()
public Set<String> getProcessInstanceIds()
public String getBusinessKey()
public String getProcessDefinitionId()
public String getProcessDefinitionKey()
public String getDeploymentId()
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()
public String getCaseInstanceId()
public String getSuperCaseInstanceId()
public String getSubCaseInstanceId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||