public class HistoricProcessInstanceQueryImpl extends AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance> implements HistoricProcessInstanceQuery
| Modifier and Type | Field and Description |
|---|---|
protected String |
businessKey |
protected boolean |
excludeSubprocesses |
protected boolean |
finished |
protected Date |
finishedAfter |
protected Date |
finishedBefore |
protected boolean |
includeProcessVariables |
protected String |
involvedUser |
protected String |
processDefinitionId |
protected String |
processDefinitionKey |
protected String |
processInstanceId |
protected Set<String> |
processInstanceIds |
protected List<String> |
processKeyNotIn |
protected Date |
startedAfter |
protected Date |
startedBefore |
protected String |
startedBy |
protected String |
superProcessInstanceId |
protected String |
tenantId |
protected String |
tenantIdLike |
protected boolean |
unfinished |
protected boolean |
withoutTenantId |
queryVariableValuescommandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESCdatabaseType, firstResult, maxResults, parameter| Constructor and Description |
|---|
HistoricProcessInstanceQueryImpl() |
HistoricProcessInstanceQueryImpl(CommandContext commandContext) |
HistoricProcessInstanceQueryImpl(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkQueryOk() |
HistoricProcessInstanceQuery |
excludeSubprocesses(boolean excludeSubprocesses)
Exclude sub processes from the query result;
|
long |
executeCount(CommandContext commandContext) |
List<HistoricProcessInstance> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
HistoricProcessInstanceQuery |
finished()
Only select historic process instances that are completely finished.
|
HistoricProcessInstanceQuery |
finishedAfter(Date date)
Only select historic process instances that were started after the given date.
|
HistoricProcessInstanceQuery |
finishedBefore(Date date)
Only select historic process instances that were started before the given date.
|
String |
getBusinessKey() |
Date |
getFinishedAfter() |
Date |
getFinishedBefore() |
String |
getInvolvedUser() |
String |
getMssqlOrDB2OrderBy() |
String |
getProcessDefinitionId() |
String |
getProcessDefinitionIdLike() |
String |
getProcessDefinitionKey() |
String |
getProcessInstanceId() |
Set<String> |
getProcessInstanceIds() |
List<String> |
getProcessKeyNotIn() |
Date |
getStartedAfter() |
Date |
getStartedBefore() |
String |
getStartedBy() |
String |
getSuperProcessInstanceId() |
HistoricProcessInstanceQuery |
includeProcessVariables()
Include process variables in the process query result
|
HistoricProcessInstanceQuery |
involvedUser(String userId)
Only select the historic process instances with which the user with the given id is involved.
|
boolean |
isExcludeSubprocesses() |
boolean |
isOpen() |
HistoricProcessInstanceQuery |
orderByProcessDefinitionId()
Order by the process definition id (needs to be followed by
Query.asc() or Query.desc()). |
HistoricProcessInstanceQuery |
orderByProcessInstanceBusinessKey()
Order by the business key (needs to be followed by
Query.asc() or Query.desc()). |
HistoricProcessInstanceQuery |
orderByProcessInstanceDuration()
Order by the duration of the process instance (needs to be followed by
Query.asc() or Query.desc()). |
HistoricProcessInstanceQuery |
orderByProcessInstanceEndTime()
Order by the end time (needs to be followed by
Query.asc() or Query.desc()). |
HistoricProcessInstanceQuery |
orderByProcessInstanceId()
Order by the process instance id (needs to be followed by
Query.asc() or Query.desc()). |
HistoricProcessInstanceQuery |
orderByProcessInstanceStartTime()
Order by the start time (needs to be followed by
Query.asc() or Query.desc()). |
HistoricProcessInstanceQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc()). |
HistoricProcessInstanceQueryImpl |
processDefinitionId(String processDefinitionId)
Only select historic process instances for the given process definition
|
HistoricProcessInstanceQuery |
processDefinitionKey(String processDefinitionKey)
Only select historic process instances that are defined by a process
definition with the given key.
|
HistoricProcessInstanceQuery |
processDefinitionKeyNotIn(List<String> processDefinitionKeys)
Only select historic process instances that don't have a process-definition of which the key is present in the given list
|
HistoricProcessInstanceQuery |
processInstanceBusinessKey(String businessKey)
Only select historic process instances with the given business key
|
HistoricProcessInstanceQueryImpl |
processInstanceId(String processInstanceId)
Only select historic process instances with the given process instance.
|
HistoricProcessInstanceQuery |
processInstanceIds(Set<String> processInstanceIds)
Only select historic process instances whose id is in the given set of ids.
|
HistoricProcessInstanceQuery |
processInstanceTenantId(String tenantId)
Only select process instances that have the given tenant id.
|
HistoricProcessInstanceQuery |
processInstanceTenantIdLike(String tenantIdLike)
Only select process instances with a tenant id like the given one.
|
HistoricProcessInstanceQuery |
processInstanceWithoutTenantId()
Only select process instances that do not have a tenant id.
|
HistoricProcessInstanceQuery |
startedAfter(Date date)
Only select historic process instances that were started after the given date.
|
HistoricProcessInstanceQuery |
startedBefore(Date date)
Only select historic process instances that were started before the given date.
|
HistoricProcessInstanceQuery |
startedBy(String userId)
Only select historic process instance that are started by the given user.
|
HistoricProcessInstanceQuery |
superProcessInstanceId(String superProcessInstanceId)
Only select historic process instances started by the given process
instance.
|
HistoricProcessInstanceQuery |
unfinished()
Only select historic process instance that are not yet finished.
|
ensureVariablesInitialized, getQueryVariableValues, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThan, variableValueLessThanOrEqual, variableValueLessThanOrEqual, variableValueLike, variableValueLike, variableValueNotEquals, variableValueNotEquals, variableValueNotEqualsIgnoreCase, variableValueNotEqualsIgnoreCaseaddOrder, asc, count, desc, direction, execute, executeSingleResult, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResultgetDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setParameterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvariableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEqualsprotected String processInstanceId
protected String processDefinitionId
protected String businessKey
protected boolean finished
protected boolean unfinished
protected String startedBy
protected String superProcessInstanceId
protected boolean excludeSubprocesses
protected Date startedBefore
protected Date startedAfter
protected Date finishedBefore
protected Date finishedAfter
protected String processDefinitionKey
protected String involvedUser
protected boolean includeProcessVariables
protected String tenantId
protected String tenantIdLike
protected boolean withoutTenantId
public HistoricProcessInstanceQueryImpl()
public HistoricProcessInstanceQueryImpl(CommandContext commandContext)
public HistoricProcessInstanceQueryImpl(CommandExecutor commandExecutor)
public HistoricProcessInstanceQueryImpl processInstanceId(String processInstanceId)
HistoricProcessInstanceQueryprocessInstanceId in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery processInstanceIds(Set<String> processInstanceIds)
HistoricProcessInstanceQueryprocessInstanceIds in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQueryImpl processDefinitionId(String processDefinitionId)
HistoricProcessInstanceQueryprocessDefinitionId in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery processDefinitionKey(String processDefinitionKey)
HistoricProcessInstanceQueryprocessDefinitionKey in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery processInstanceBusinessKey(String businessKey)
HistoricProcessInstanceQueryprocessInstanceBusinessKey in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery finished()
HistoricProcessInstanceQueryfinished in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery unfinished()
HistoricProcessInstanceQueryunfinished in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery startedBy(String userId)
HistoricProcessInstanceQuerystartedBy in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery processDefinitionKeyNotIn(List<String> processDefinitionKeys)
HistoricProcessInstanceQueryprocessDefinitionKeyNotIn in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery startedAfter(Date date)
HistoricProcessInstanceQuerystartedAfter in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery startedBefore(Date date)
HistoricProcessInstanceQuerystartedBefore in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery finishedAfter(Date date)
HistoricProcessInstanceQueryfinishedAfter in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery finishedBefore(Date date)
HistoricProcessInstanceQueryfinishedBefore in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery superProcessInstanceId(String superProcessInstanceId)
HistoricProcessInstanceQuerysuperProcessInstanceId in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery excludeSubprocesses(boolean excludeSubprocesses)
HistoricProcessInstanceQueryexcludeSubprocesses in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery involvedUser(String userId)
HistoricProcessInstanceQueryinvolvedUser in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery includeProcessVariables()
HistoricProcessInstanceQueryincludeProcessVariables in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery processInstanceTenantId(String tenantId)
HistoricProcessInstanceQueryprocessInstanceTenantId in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery processInstanceTenantIdLike(String tenantIdLike)
HistoricProcessInstanceQueryprocessInstanceTenantIdLike in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery processInstanceWithoutTenantId()
HistoricProcessInstanceQueryprocessInstanceWithoutTenantId in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery orderByProcessInstanceBusinessKey()
HistoricProcessInstanceQueryQuery.asc() or Query.desc()).orderByProcessInstanceBusinessKey in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery orderByProcessInstanceDuration()
HistoricProcessInstanceQueryQuery.asc() or Query.desc()).orderByProcessInstanceDuration in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery orderByProcessInstanceStartTime()
HistoricProcessInstanceQueryQuery.asc() or Query.desc()).orderByProcessInstanceStartTime in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery orderByProcessInstanceEndTime()
HistoricProcessInstanceQueryQuery.asc() or Query.desc()).orderByProcessInstanceEndTime in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery orderByProcessDefinitionId()
HistoricProcessInstanceQueryQuery.asc() or Query.desc()).orderByProcessDefinitionId in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery orderByProcessInstanceId()
HistoricProcessInstanceQueryQuery.asc() or Query.desc()).orderByProcessInstanceId in interface HistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery orderByTenantId()
HistoricProcessInstanceQueryQuery.asc() or Query.desc()).orderByTenantId in interface HistoricProcessInstanceQuerypublic String getMssqlOrDB2OrderBy()
public long executeCount(CommandContext commandContext)
executeCount in class AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>public List<HistoricProcessInstance> executeList(CommandContext commandContext, Page page)
AbstractQueryexecuteList in class AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>page - used if the results must be paged. If null, no paging will be applied.protected void checkQueryOk()
checkQueryOk in class AbstractQuery<HistoricProcessInstanceQuery,HistoricProcessInstance>public String getBusinessKey()
public boolean isOpen()
public String getProcessDefinitionId()
public String getProcessDefinitionKey()
public String getProcessDefinitionIdLike()
public String getProcessInstanceId()
public String getStartedBy()
public String getSuperProcessInstanceId()
public boolean isExcludeSubprocesses()
public Date getStartedAfter()
public Date getStartedBefore()
public Date getFinishedAfter()
public Date getFinishedBefore()
public String getInvolvedUser()
Copyright © 2014 Alfresco. All rights reserved.