Interface HistoricActivityInstanceQuery
- 
- All Superinterfaces:
- Query<HistoricActivityInstanceQuery,HistoricActivityInstance>
 - All Known Implementing Classes:
- HistoricActivityInstanceQueryImpl
 
 public interface HistoricActivityInstanceQuery extends Query<HistoricActivityInstanceQuery,HistoricActivityInstance> Programmatic querying forHistoricActivityInstances.- Author:
- Tom Baeyens
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description HistoricActivityInstanceQueryactivityId(String activityId)Only select historic activity instances for the given activity (id from BPMN 2.0 XML)HistoricActivityInstanceQueryactivityInstanceId(String activityInstanceId)Only select historic activity instances with the given id (primary key within history tables).HistoricActivityInstanceQueryactivityName(String activityName)Only select historic activity instances for activities with the given nameHistoricActivityInstanceQueryactivityNameLike(String activityNameLike)Only select historic activity instances for activities which activityName is like the given value.HistoricActivityInstanceQueryactivityType(String activityType)Only select historic activity instances for activities with the given activity typeHistoricActivityInstanceQuerycanceled()Only select historic activity instances that got canceledHistoricActivityInstanceQuerycompleteScope()Only select historic activity instances that complete a BPMN scopeHistoricActivityInstanceQueryexecutionId(String executionId)Only select historic activity instances for the given executionHistoricActivityInstanceQueryfinished()Only select historic activity instances that are finished.HistoricActivityInstanceQueryfinishedAfter(Date date)Only select historic activity instances that were started after the given date.HistoricActivityInstanceQueryfinishedBefore(Date date)Only select historic activity instances that were started before the given date.HistoricActivityInstanceQueryorderByActivityId()Order by activityId (needs to be followed byQuery.asc()orQuery.desc()).HistoricActivityInstanceQueryorderByActivityName()Order by activityName (needs to be followed byQuery.asc()orQuery.desc()).HistoricActivityInstanceQueryorderByActivityType()Order by activityType (needs to be followed byQuery.asc()orQuery.desc()).HistoricActivityInstanceQueryorderByExecutionId()Order by executionId (needs to be followed byQuery.asc()orQuery.desc()).HistoricActivityInstanceQueryorderByHistoricActivityInstanceDuration()Order by duration (needs to be followed byQuery.asc()orQuery.desc()).HistoricActivityInstanceQueryorderByHistoricActivityInstanceEndTime()Order by end (needs to be followed byQuery.asc()orQuery.desc()).HistoricActivityInstanceQueryorderByHistoricActivityInstanceId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).HistoricActivityInstanceQueryorderByHistoricActivityInstanceStartTime()Order by start (needs to be followed byQuery.asc()orQuery.desc()).HistoricActivityInstanceQueryorderByProcessDefinitionId()Order by processDefinitionId (needs to be followed byQuery.asc()orQuery.desc()).HistoricActivityInstanceQueryorderByProcessInstanceId()Order by processInstanceId (needs to be followed byQuery.asc()orQuery.desc()).HistoricActivityInstanceQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).HistoricActivityInstanceQueryorderPartiallyByOccurrence()Sort theactivity instancesin the order in which they occurred (ie.HistoricActivityInstanceQueryprocessDefinitionId(String processDefinitionId)Only select historic activity instances for the given process definitionHistoricActivityInstanceQueryprocessInstanceId(String processInstanceId)Only select historic activity instances with the given process instance.HistoricActivityInstanceQuerystartedAfter(Date date)Only select historic activity instances that were started after the given date.HistoricActivityInstanceQuerystartedBefore(Date date)Only select historic activity instances that were started before the given date.HistoricActivityInstanceQuerytaskAssignee(String userId)Only select historic activity instances for userTask activities assigned to the given userHistoricActivityInstanceQuerytenantIdIn(String... tenantIds)Only select historic activity instances with one of the given tenant ids.HistoricActivityInstanceQueryunfinished()Only select historic activity instances that are not finished yet.HistoricActivityInstanceQuerywithoutTenantId()Only selects historic activity instances that have no tenant id.- 
Methods inherited from interface org.camunda.bpm.engine.query.Queryasc, count, desc, list, listPage, singleResult, unlimitedList
 
- 
 
- 
- 
- 
Method Detail- 
activityInstanceIdHistoricActivityInstanceQuery activityInstanceId(String activityInstanceId) Only select historic activity instances with the given id (primary key within history tables).
 - 
processInstanceIdHistoricActivityInstanceQuery processInstanceId(String processInstanceId) Only select historic activity instances with the given process instance.) ids and {@link HistoricProcessInstance} ids match.
 - 
processDefinitionIdHistoricActivityInstanceQuery processDefinitionId(String processDefinitionId) Only select historic activity instances for the given process definition
 - 
executionIdHistoricActivityInstanceQuery executionId(String executionId) Only select historic activity instances for the given execution
 - 
activityIdHistoricActivityInstanceQuery activityId(String activityId) Only select historic activity instances for the given activity (id from BPMN 2.0 XML)
 - 
activityNameHistoricActivityInstanceQuery activityName(String activityName) Only select historic activity instances for activities with the given name
 - 
activityNameLikeHistoricActivityInstanceQuery activityNameLike(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%).
 
 - 
activityTypeHistoricActivityInstanceQuery activityType(String activityType) Only select historic activity instances for activities with the given activity type
 - 
taskAssigneeHistoricActivityInstanceQuery taskAssignee(String userId) Only select historic activity instances for userTask activities assigned to the given user
 - 
finishedHistoricActivityInstanceQuery finished() Only select historic activity instances that are finished.
 - 
unfinishedHistoricActivityInstanceQuery unfinished() Only select historic activity instances that are not finished yet.
 - 
completeScopeHistoricActivityInstanceQuery completeScope() Only select historic activity instances that complete a BPMN scope
 - 
canceledHistoricActivityInstanceQuery canceled() Only select historic activity instances that got canceled
 - 
startedBeforeHistoricActivityInstanceQuery startedBefore(Date date) Only select historic activity instances that were started before the given date.
 - 
startedAfterHistoricActivityInstanceQuery startedAfter(Date date) Only select historic activity instances that were started after the given date.
 - 
finishedBeforeHistoricActivityInstanceQuery finishedBefore(Date date) Only select historic activity instances that were started before the given date.
 - 
finishedAfterHistoricActivityInstanceQuery finishedAfter(Date date) Only select historic activity instances that were started after the given date.
 - 
orderByHistoricActivityInstanceIdHistoricActivityInstanceQuery orderByHistoricActivityInstanceId() Order by id (needs to be followed byQuery.asc()orQuery.desc()).
 - 
orderByProcessInstanceIdHistoricActivityInstanceQuery orderByProcessInstanceId() Order by processInstanceId (needs to be followed byQuery.asc()orQuery.desc()).
 - 
orderByExecutionIdHistoricActivityInstanceQuery orderByExecutionId() Order by executionId (needs to be followed byQuery.asc()orQuery.desc()).
 - 
orderByActivityIdHistoricActivityInstanceQuery orderByActivityId() Order by activityId (needs to be followed byQuery.asc()orQuery.desc()).
 - 
orderByActivityNameHistoricActivityInstanceQuery orderByActivityName() Order by activityName (needs to be followed byQuery.asc()orQuery.desc()).
 - 
orderByActivityTypeHistoricActivityInstanceQuery orderByActivityType() Order by activityType (needs to be followed byQuery.asc()orQuery.desc()).
 - 
orderByHistoricActivityInstanceStartTimeHistoricActivityInstanceQuery orderByHistoricActivityInstanceStartTime() Order by start (needs to be followed byQuery.asc()orQuery.desc()).
 - 
orderByHistoricActivityInstanceEndTimeHistoricActivityInstanceQuery orderByHistoricActivityInstanceEndTime() Order by end (needs to be followed byQuery.asc()orQuery.desc()).
 - 
orderByHistoricActivityInstanceDurationHistoricActivityInstanceQuery orderByHistoricActivityInstanceDuration() Order by duration (needs to be followed byQuery.asc()orQuery.desc()).
 - 
orderByProcessDefinitionIdHistoricActivityInstanceQuery orderByProcessDefinitionId() Order by processDefinitionId (needs to be followed byQuery.asc()orQuery.desc()).
 - 
orderPartiallyByOccurrenceHistoricActivityInstanceQuery orderPartiallyByOccurrence() Sort the activity instancesin the order in which they occurred (ie. started) and needs to be followed byQuery.asc()orQuery.desc().The set of all activity instancesis 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 instanceswith differentexecution idsare incomparable. Onlyactivity instanceswith the sameexecution idcan be totally ordered by usingexecutionId(String)andorderPartiallyByOccurrence()which will return a result set ordered by its occurrence.- Since:
- 7.3
 
 - 
tenantIdInHistoricActivityInstanceQuery tenantIdIn(String... tenantIds) Only select historic activity instances with one of the given tenant ids.
 - 
withoutTenantIdHistoricActivityInstanceQuery withoutTenantId() Only selects historic activity instances that have no tenant id.
 - 
orderByTenantIdHistoricActivityInstanceQuery 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.
 
- 
 
-