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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HistoricActivityInstanceQueryactivityId(java.lang.String activityId)Only select historic activity instances for the given activity (id from BPMN 2.0 XML)HistoricActivityInstanceQueryactivityInstanceId(java.lang.String activityInstanceId)Only select historic activity instances with the given id (primary key within history tables).HistoricActivityInstanceQueryactivityName(java.lang.String activityName)Only select historic activity instances for activities with the given nameHistoricActivityInstanceQueryactivityNameLike(java.lang.String activityNameLike)Only select historic activity instances for activities which activityName is like the given value.HistoricActivityInstanceQueryactivityType(java.lang.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(java.lang.String executionId)Only select historic activity instances for the given executionHistoricActivityInstanceQueryfinished()Only select historic activity instances that are finished.HistoricActivityInstanceQueryfinishedAfter(java.util.Date date)Only select historic activity instances that were started after the given date.HistoricActivityInstanceQueryfinishedBefore(java.util.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(java.lang.String processDefinitionId)Only select historic activity instances for the given process definitionHistoricActivityInstanceQueryprocessInstanceId(java.lang.String processInstanceId)Only select historic activity instances with the given process instance.HistoricActivityInstanceQuerystartedAfter(java.util.Date date)Only select historic activity instances that were started after the given date.HistoricActivityInstanceQuerystartedBefore(java.util.Date date)Only select historic activity instances that were started before the given date.HistoricActivityInstanceQuerytaskAssignee(java.lang.String userId)Only select historic activity instances for userTask activities assigned to the given userHistoricActivityInstanceQuerytenantIdIn(java.lang.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.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 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
-
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.
-
-