Interface HistoricActivityInstanceQuery
-
- All Superinterfaces:
Query<HistoricActivityInstanceQuery,HistoricActivityInstance>
- All Known Implementing Classes:
HistoricActivityInstanceQueryImpl
public interface HistoricActivityInstanceQuery extends Query<HistoricActivityInstanceQuery,HistoricActivityInstance>
Programmatic querying forHistoricActivityInstance
s.- Author:
- Tom Baeyens
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HistoricActivityInstanceQuery
activityId(java.lang.String activityId)
Only select historic activity instances for the given activity (id from BPMN 2.0 XML)HistoricActivityInstanceQuery
activityInstanceId(java.lang.String activityInstanceId)
Only select historic activity instances with the given id (primary key within history tables).HistoricActivityInstanceQuery
activityName(java.lang.String activityName)
Only select historic activity instances for activities with the given nameHistoricActivityInstanceQuery
activityNameLike(java.lang.String activityNameLike)
Only select historic activity instances for activities which activityName is like the given value.HistoricActivityInstanceQuery
activityType(java.lang.String activityType)
Only select historic activity instances for activities with the given activity typeHistoricActivityInstanceQuery
canceled()
Only select historic activity instances that got canceledHistoricActivityInstanceQuery
completeScope()
Only select historic activity instances that complete a BPMN scopeHistoricActivityInstanceQuery
executionId(java.lang.String executionId)
Only select historic activity instances for the given executionHistoricActivityInstanceQuery
finished()
Only select historic activity instances that are finished.HistoricActivityInstanceQuery
finishedAfter(java.util.Date date)
Only select historic activity instances that were started after the given date.HistoricActivityInstanceQuery
finishedBefore(java.util.Date date)
Only select historic activity instances that were started before the given date.HistoricActivityInstanceQuery
orderByActivityId()
Order by activityId (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQuery
orderByActivityName()
Order by activityName (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQuery
orderByActivityType()
Order by activityType (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQuery
orderByExecutionId()
Order by executionId (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQuery
orderByHistoricActivityInstanceDuration()
Order by duration (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQuery
orderByHistoricActivityInstanceEndTime()
Order by end (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQuery
orderByHistoricActivityInstanceId()
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQuery
orderByHistoricActivityInstanceStartTime()
Order by start (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQuery
orderByProcessDefinitionId()
Order by processDefinitionId (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQuery
orderByProcessInstanceId()
Order by processInstanceId (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQuery
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQuery
orderPartiallyByOccurrence()
Sort theactivity instances
in the order in which they occurred (ie.HistoricActivityInstanceQuery
processDefinitionId(java.lang.String processDefinitionId)
Only select historic activity instances for the given process definitionHistoricActivityInstanceQuery
processInstanceId(java.lang.String processInstanceId)
Only select historic activity instances with the given process instance.HistoricActivityInstanceQuery
startedAfter(java.util.Date date)
Only select historic activity instances that were started after the given date.HistoricActivityInstanceQuery
startedBefore(java.util.Date date)
Only select historic activity instances that were started before the given date.HistoricActivityInstanceQuery
taskAssignee(java.lang.String userId)
Only select historic activity instances for userTask activities assigned to the given userHistoricActivityInstanceQuery
tenantIdIn(java.lang.String... tenantIds)
Only select historic activity instances with one of the given tenant ids.HistoricActivityInstanceQuery
unfinished()
Only select historic activity instances that are not finished yet.HistoricActivityInstanceQuery
withoutTenantId()
Only selects historic activity instances that have no tenant id.-
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
-
-
-
Method Detail
-
activityInstanceId
HistoricActivityInstanceQuery activityInstanceId(java.lang.String activityInstanceId)
Only select historic activity instances with the given id (primary key within history tables).
-
processInstanceId
HistoricActivityInstanceQuery processInstanceId(java.lang.String processInstanceId)
Only select historic activity instances with the given process instance.) ids and {@link HistoricProcessInstance} ids match.
-
processDefinitionId
HistoricActivityInstanceQuery processDefinitionId(java.lang.String processDefinitionId)
Only select historic activity instances for the given process definition
-
executionId
HistoricActivityInstanceQuery executionId(java.lang.String executionId)
Only select historic activity instances for the given execution
-
activityId
HistoricActivityInstanceQuery activityId(java.lang.String activityId)
Only select historic activity instances for the given activity (id from BPMN 2.0 XML)
-
activityName
HistoricActivityInstanceQuery activityName(java.lang.String activityName)
Only select historic activity instances for activities with the given name
-
activityNameLike
HistoricActivityInstanceQuery activityNameLike(java.lang.String activityNameLike)
Only select historic activity instances for activities which activityName is like the given value.- Parameters:
activityNameLike
- The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
activityType
HistoricActivityInstanceQuery activityType(java.lang.String activityType)
Only select historic activity instances for activities with the given activity type
-
taskAssignee
HistoricActivityInstanceQuery taskAssignee(java.lang.String userId)
Only select historic activity instances for userTask activities assigned to the given user
-
finished
HistoricActivityInstanceQuery finished()
Only select historic activity instances that are finished.
-
unfinished
HistoricActivityInstanceQuery unfinished()
Only select historic activity instances that are not finished yet.
-
completeScope
HistoricActivityInstanceQuery completeScope()
Only select historic activity instances that complete a BPMN scope
-
canceled
HistoricActivityInstanceQuery canceled()
Only select historic activity instances that got canceled
-
startedBefore
HistoricActivityInstanceQuery startedBefore(java.util.Date date)
Only select historic activity instances that were started before the given date.
-
startedAfter
HistoricActivityInstanceQuery startedAfter(java.util.Date date)
Only select historic activity instances that were started after the given date.
-
finishedBefore
HistoricActivityInstanceQuery finishedBefore(java.util.Date date)
Only select historic activity instances that were started before the given date.
-
finishedAfter
HistoricActivityInstanceQuery finishedAfter(java.util.Date date)
Only select historic activity instances that were started after the given date.
-
orderByHistoricActivityInstanceId
HistoricActivityInstanceQuery orderByHistoricActivityInstanceId()
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).
-
orderByProcessInstanceId
HistoricActivityInstanceQuery orderByProcessInstanceId()
Order by processInstanceId (needs to be followed byQuery.asc()
orQuery.desc()
).
-
orderByExecutionId
HistoricActivityInstanceQuery orderByExecutionId()
Order by executionId (needs to be followed byQuery.asc()
orQuery.desc()
).
-
orderByActivityId
HistoricActivityInstanceQuery orderByActivityId()
Order by activityId (needs to be followed byQuery.asc()
orQuery.desc()
).
-
orderByActivityName
HistoricActivityInstanceQuery orderByActivityName()
Order by activityName (needs to be followed byQuery.asc()
orQuery.desc()
).
-
orderByActivityType
HistoricActivityInstanceQuery orderByActivityType()
Order by activityType (needs to be followed byQuery.asc()
orQuery.desc()
).
-
orderByHistoricActivityInstanceStartTime
HistoricActivityInstanceQuery orderByHistoricActivityInstanceStartTime()
Order by start (needs to be followed byQuery.asc()
orQuery.desc()
).
-
orderByHistoricActivityInstanceEndTime
HistoricActivityInstanceQuery orderByHistoricActivityInstanceEndTime()
Order by end (needs to be followed byQuery.asc()
orQuery.desc()
).
-
orderByHistoricActivityInstanceDuration
HistoricActivityInstanceQuery orderByHistoricActivityInstanceDuration()
Order by duration (needs to be followed byQuery.asc()
orQuery.desc()
).
-
orderByProcessDefinitionId
HistoricActivityInstanceQuery orderByProcessDefinitionId()
Order by processDefinitionId (needs to be followed byQuery.asc()
orQuery.desc()
).
-
orderPartiallyByOccurrence
HistoricActivityInstanceQuery orderPartiallyByOccurrence()
Sort the
activity instances
in the order in which they occurred (ie. started) and needs to be followed byQuery.asc()
orQuery.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 differentexecution ids
are incomparable. Onlyactivity instances
with the sameexecution id
can be totally ordered by usingexecutionId(String)
andorderPartiallyByOccurrence()
which will return a result set ordered by its occurrence.- Since:
- 7.3
-
tenantIdIn
HistoricActivityInstanceQuery tenantIdIn(java.lang.String... tenantIds)
Only select historic activity instances with one of the given tenant ids.
-
withoutTenantId
HistoricActivityInstanceQuery withoutTenantId()
Only selects historic activity instances that have no tenant id.
-
orderByTenantId
HistoricActivityInstanceQuery orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of historic activity instances without tenant id is database-specific.
-
-