public class HistoricActivityInstanceQueryImpl extends AbstractQuery<HistoricActivityInstanceQuery,HistoricActivityInstance> implements HistoricActivityInstanceQuery
AbstractQuery.ResultType
Modifier and Type | Field and Description |
---|---|
protected String |
activityId |
protected String |
activityInstanceId |
protected ActivityInstanceState |
activityInstanceState |
protected String |
activityName |
protected String |
activityType |
protected String |
assignee |
protected String |
executionId |
protected boolean |
finished |
protected Date |
finishedAfter |
protected Date |
finishedBefore |
protected String |
processDefinitionId |
protected String |
processInstanceId |
protected Date |
startedAfter |
protected Date |
startedBefore |
protected String[] |
tenantIds |
protected boolean |
unfinished |
commandExecutor, expressions, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
Constructor and Description |
---|
HistoricActivityInstanceQueryImpl() |
HistoricActivityInstanceQueryImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
HistoricActivityInstanceQueryImpl |
activityId(String activityId)
Only select historic activity instances for the given activity (id from BPMN 2.0 XML)
|
HistoricActivityInstanceQueryImpl |
activityInstanceId(String activityInstanceId)
Only select historic activity instances with the given id (primary key within history tables).
|
HistoricActivityInstanceQueryImpl |
activityName(String activityName)
Only select historic activity instances for activities with the given name
|
HistoricActivityInstanceQueryImpl |
activityType(String activityType)
Only select historic activity instances for activities with the given activity type
|
HistoricActivityInstanceQueryImpl |
canceled()
Only select historic activity instances that got canceled
|
HistoricActivityInstanceQueryImpl |
completeScope()
Only select historic activity instances that complete a BPMN scope
|
long |
executeCount(CommandContext commandContext) |
List<HistoricActivityInstance> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
HistoricActivityInstanceQueryImpl |
executionId(String executionId)
Only select historic activity instances for the given execution
|
HistoricActivityInstanceQueryImpl |
finished()
Only select historic activity instances that are finished.
|
HistoricActivityInstanceQueryImpl |
finishedAfter(Date date)
Only select historic activity instances that were started after the given date.
|
HistoricActivityInstanceQueryImpl |
finishedBefore(Date date)
Only select historic activity instances that were started before the given date.
|
String |
getActivityId() |
String |
getActivityInstanceId() |
ActivityInstanceState |
getActivityInstanceState() |
String |
getActivityName() |
String |
getActivityType() |
String |
getAssignee() |
String |
getExecutionId() |
Date |
getFinishedAfter() |
Date |
getFinishedBefore() |
String |
getProcessDefinitionId() |
String |
getProcessInstanceId() |
Date |
getStartedAfter() |
Date |
getStartedBefore() |
protected boolean |
hasExcludingConditions()
Whether or not the query has excluding conditions.
|
boolean |
isFinished() |
boolean |
isUnfinished() |
HistoricActivityInstanceQuery |
orderByActivityId()
Order by activityId (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricActivityInstanceQueryImpl |
orderByActivityName()
Order by activityName (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricActivityInstanceQueryImpl |
orderByActivityType()
Order by activityType (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricActivityInstanceQueryImpl |
orderByExecutionId()
Order by executionId (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricActivityInstanceQueryImpl |
orderByHistoricActivityInstanceDuration()
Order by duration (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricActivityInstanceQueryImpl |
orderByHistoricActivityInstanceEndTime()
Order by end (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricActivityInstanceQueryImpl |
orderByHistoricActivityInstanceId()
Order by id (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricActivityInstanceQueryImpl |
orderByHistoricActivityInstanceStartTime()
Order by start (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricActivityInstanceQueryImpl |
orderByProcessDefinitionId()
Order by processDefinitionId (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricActivityInstanceQueryImpl |
orderByProcessInstanceId()
Order by processInstanceId (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricActivityInstanceQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricActivityInstanceQuery |
orderPartiallyByOccurrence()
Sort the
activity instances in the order in which
they occurred (ie. |
HistoricActivityInstanceQueryImpl |
processDefinitionId(String processDefinitionId)
Only select historic activity instances for the given process definition
|
HistoricActivityInstanceQueryImpl |
processInstanceId(String processInstanceId)
Only select historic activity instances with the given process instance.
|
HistoricActivityInstanceQueryImpl |
startedAfter(Date date)
Only select historic activity instances that were started after the given date.
|
HistoricActivityInstanceQueryImpl |
startedBefore(Date date)
Only select historic activity instances that were started before the given date.
|
HistoricActivityInstanceQueryImpl |
taskAssignee(String assignee)
Only select historic activity instances for userTask activities assigned to the given user
|
HistoricActivityInstanceQuery |
tenantIdIn(String... tenantIds)
Only select historic activity instances with one of the given tenant ids.
|
HistoricActivityInstanceQueryImpl |
unfinished()
Only select historic activity instances that are not finished yet.
|
addExpression, addValidator, asc, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeIdsList, executeSingleResult, extend, getExpressions, getMethod, list, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, validate, validate
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
protected String activityInstanceId
protected String processInstanceId
protected String executionId
protected String processDefinitionId
protected String activityId
protected String activityName
protected String activityType
protected String assignee
protected boolean finished
protected boolean unfinished
protected Date startedBefore
protected Date startedAfter
protected Date finishedBefore
protected Date finishedAfter
protected ActivityInstanceState activityInstanceState
protected String[] tenantIds
public HistoricActivityInstanceQueryImpl()
public HistoricActivityInstanceQueryImpl(CommandExecutor commandExecutor)
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<HistoricActivityInstanceQuery,HistoricActivityInstance>
public List<HistoricActivityInstance> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractQuery<HistoricActivityInstanceQuery,HistoricActivityInstance>
page
- used if the results must be paged. If null, no paging will be applied.public HistoricActivityInstanceQueryImpl processInstanceId(String processInstanceId)
HistoricActivityInstanceQuery
processInstanceId
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl executionId(String executionId)
HistoricActivityInstanceQuery
executionId
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl processDefinitionId(String processDefinitionId)
HistoricActivityInstanceQuery
processDefinitionId
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl activityId(String activityId)
HistoricActivityInstanceQuery
activityId
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl activityName(String activityName)
HistoricActivityInstanceQuery
activityName
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl activityType(String activityType)
HistoricActivityInstanceQuery
activityType
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl taskAssignee(String assignee)
HistoricActivityInstanceQuery
taskAssignee
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl finished()
HistoricActivityInstanceQuery
finished
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl unfinished()
HistoricActivityInstanceQuery
unfinished
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl completeScope()
HistoricActivityInstanceQuery
completeScope
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl canceled()
HistoricActivityInstanceQuery
canceled
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl startedAfter(Date date)
HistoricActivityInstanceQuery
startedAfter
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl startedBefore(Date date)
HistoricActivityInstanceQuery
startedBefore
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl finishedAfter(Date date)
HistoricActivityInstanceQuery
finishedAfter
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl finishedBefore(Date date)
HistoricActivityInstanceQuery
finishedBefore
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQuery tenantIdIn(String... tenantIds)
HistoricActivityInstanceQuery
tenantIdIn
in interface HistoricActivityInstanceQuery
protected boolean hasExcludingConditions()
AbstractQuery
hasExcludingConditions
in class AbstractQuery<HistoricActivityInstanceQuery,HistoricActivityInstance>
true
if the query does have excluding conditions, false
otherwisepublic HistoricActivityInstanceQueryImpl orderByHistoricActivityInstanceDuration()
HistoricActivityInstanceQuery
Query.asc()
or Query.desc()
).orderByHistoricActivityInstanceDuration
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl orderByHistoricActivityInstanceEndTime()
HistoricActivityInstanceQuery
Query.asc()
or Query.desc()
).orderByHistoricActivityInstanceEndTime
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl orderByExecutionId()
HistoricActivityInstanceQuery
Query.asc()
or Query.desc()
).orderByExecutionId
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl orderByHistoricActivityInstanceId()
HistoricActivityInstanceQuery
Query.asc()
or Query.desc()
).orderByHistoricActivityInstanceId
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl orderByProcessDefinitionId()
HistoricActivityInstanceQuery
Query.asc()
or Query.desc()
).orderByProcessDefinitionId
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl orderByProcessInstanceId()
HistoricActivityInstanceQuery
Query.asc()
or Query.desc()
).orderByProcessInstanceId
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl orderByHistoricActivityInstanceStartTime()
HistoricActivityInstanceQuery
Query.asc()
or Query.desc()
).orderByHistoricActivityInstanceStartTime
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQuery orderByActivityId()
HistoricActivityInstanceQuery
Query.asc()
or Query.desc()
).orderByActivityId
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl orderByActivityName()
HistoricActivityInstanceQuery
Query.asc()
or Query.desc()
).orderByActivityName
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl orderByActivityType()
HistoricActivityInstanceQuery
Query.asc()
or Query.desc()
).orderByActivityType
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQuery orderPartiallyByOccurrence()
HistoricActivityInstanceQuery
Sort the activity instances
in the order in which
they occurred (ie. started) and needs to be followed by Query.asc()
or Query.desc()
.
The set of all activity instances
is a partially
ordered set. At a BPMN level this means that instances of concurrent activities (example:
activities on different parallel branched after a parallel gateway) cannot be compared to each other.
Instances of activities which are part of happens-before relation at the BPMN level will be ordered
in respect to that relation.
Technically this means that activity instances
with different execution ids
are
incomparable. Only activity instances
with
the same execution id
can be totally
ordered by using HistoricActivityInstanceQuery.executionId(String)
and HistoricActivityInstanceQuery.orderPartiallyByOccurrence()
which will return a result set ordered by its occurrence.
orderPartiallyByOccurrence
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQuery orderByTenantId()
HistoricActivityInstanceQuery
Query.asc()
or Query.desc()
).
Note that the ordering of historic activity instances without tenant id is database-specific.orderByTenantId
in interface HistoricActivityInstanceQuery
public HistoricActivityInstanceQueryImpl activityInstanceId(String activityInstanceId)
HistoricActivityInstanceQuery
activityInstanceId
in interface HistoricActivityInstanceQuery
public String getProcessInstanceId()
public String getExecutionId()
public String getProcessDefinitionId()
public String getActivityId()
public String getActivityName()
public String getActivityType()
public String getAssignee()
public boolean isFinished()
public boolean isUnfinished()
public String getActivityInstanceId()
public Date getStartedAfter()
public Date getStartedBefore()
public Date getFinishedAfter()
public Date getFinishedBefore()
public ActivityInstanceState getActivityInstanceState()
Copyright © 2018. All rights reserved.