Package org.flowable.engine.impl
Class HistoricActivityInstanceQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<HistoricActivityInstanceQuery,HistoricActivityInstance>
org.flowable.engine.impl.HistoricActivityInstanceQueryImpl
- All Implemented Interfaces:
Serializable,DeleteQuery<HistoricActivityInstanceQuery,,HistoricActivityInstance> Query<HistoricActivityInstanceQuery,,HistoricActivityInstance> Command<Object>,HistoricActivityInstanceQuery
public class HistoricActivityInstanceQueryImpl
extends AbstractQuery<HistoricActivityInstanceQuery,HistoricActivityInstance>
implements HistoricActivityInstanceQuery
- Author:
- Tom Baeyens, Zheng Ji
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected Dateprotected Dateprotected Stringprotected Stringprotected Dateprotected Dateprotected Stringprotected Stringprotected booleanprotected booleanFields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutorFields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC -
Constructor Summary
ConstructorsConstructorDescriptionHistoricActivityInstanceQueryImpl(CommandContext commandContext) HistoricActivityInstanceQueryImpl(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionactivityId(String activityId) Only select historic activity instances for the given activity (id from BPMN 2.0 XML)activityInstanceId(String activityInstanceId) Only select historic activity instances with the given id (primary key within history tables).activityName(String activityName) Only select historic activity instances for activities with the given nameactivityTenantId(String tenantId) Only select historic activity instances that have the given tenant id.activityTenantIdLike(String tenantIdLike) Only select historic activity instances with a tenant id like the given one.activityType(String activityType) Only select historic activity instances for activities with the given activity typeactivityTypes(Set<String> activityTypes) Only select historic activity instances whose activity type is in the given set of activity types.Only select historic activity instances that do not have a tenant id.voiddelete()Delete all instances that match the query.deleteReason(String deleteReason) Only select historic activity instances with a specific delete reason.deleteReasonLike(String deleteReasonLike) Only select historic activity instances with a delete reason that matches the provided parameter.voidDeprecated.longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext) Executes the actual query to retrieve the list of results.executionId(String executionId) Only select historic activity instances for the given executionfinished()Only select historic activity instances that are finished.finishedAfter(Date date) Only select historic activity instances that were started after the given date.finishedBefore(Date date) Only select historic activity instances that were started before the given date.booleanbooleanbooleanOrder by activityId (needs to be followed byQuery.asc()orQuery.desc()).Order by activityName (needs to be followed byQuery.asc()orQuery.desc()).Order by activityType (needs to be followed byQuery.asc()orQuery.desc()).Order by executionId (needs to be followed byQuery.asc()orQuery.desc()).Order by duration (needs to be followed byQuery.asc()orQuery.desc()).Order by end (needs to be followed byQuery.asc()orQuery.desc()).Order by id (needs to be followed byQuery.asc()orQuery.desc()).Order by start (needs to be followed byQuery.asc()orQuery.desc()).Order by processDefinitionId (needs to be followed byQuery.asc()orQuery.desc()).Order by processInstanceId (needs to be followed byQuery.asc()orQuery.desc()).Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).processDefinitionId(String processDefinitionId) Only select historic activity instances for the given process definitionprocessInstanceId(String processInstanceId) Only select historic activity instances with the given process instance.startedAfter(Date date) Only select historic activity instances that were started after the given date.startedBefore(Date date) Only select historic activity instances that were started before the given date.taskAssignee(String assignee) Only select historic activity instances for userTask activities assigned to the given usertenantIdIn(List<String> tenantIds) Only select historic activity instances with one of the given tenant ids.Only select historic activity instances that are not finished yet.Methods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultMethods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameter
-
Field Details
-
activityInstanceId
-
processInstanceId
-
executionId
-
processDefinitionId
-
activityId
-
activityName
-
activityType
-
activityTypes
-
assignee
-
tenantId
-
tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId -
finished
protected boolean finished -
unfinished
protected boolean unfinished -
deleteReason
-
deleteReasonLike
-
startedBefore
-
startedAfter
-
finishedBefore
-
finishedAfter
-
tenantIds
-
-
Constructor Details
-
HistoricActivityInstanceQueryImpl
public HistoricActivityInstanceQueryImpl() -
HistoricActivityInstanceQueryImpl
-
HistoricActivityInstanceQueryImpl
-
-
Method Details
-
executeCount
- Specified by:
executeCountin classAbstractQuery<HistoricActivityInstanceQuery,HistoricActivityInstance>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<HistoricActivityInstanceQuery,HistoricActivityInstance>
-
processInstanceId
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances with the given process instance.ProcessInstanceids andHistoricProcessInstanceids match.- Specified by:
processInstanceIdin interfaceHistoricActivityInstanceQuery
-
executionId
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances for the given execution- Specified by:
executionIdin interfaceHistoricActivityInstanceQuery
-
processDefinitionId
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances for the given process definition- Specified by:
processDefinitionIdin interfaceHistoricActivityInstanceQuery
-
activityId
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances for the given activity (id from BPMN 2.0 XML)- Specified by:
activityIdin interfaceHistoricActivityInstanceQuery
-
activityName
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances for activities with the given name- Specified by:
activityNamein interfaceHistoricActivityInstanceQuery
-
activityType
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances for activities with the given activity type- Specified by:
activityTypein interfaceHistoricActivityInstanceQuery
-
startedAfter
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances that were started after the given date.- Specified by:
startedAfterin interfaceHistoricActivityInstanceQuery
-
startedBefore
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances that were started before the given date.- Specified by:
startedBeforein interfaceHistoricActivityInstanceQuery
-
finishedAfter
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances that were started after the given date.- Specified by:
finishedAfterin interfaceHistoricActivityInstanceQuery
-
finishedBefore
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances that were started before the given date.- Specified by:
finishedBeforein interfaceHistoricActivityInstanceQuery
-
activityTypes
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances whose activity type is in the given set of activity types.- Specified by:
activityTypesin interfaceHistoricActivityInstanceQuery
-
taskAssignee
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances for userTask activities assigned to the given user- Specified by:
taskAssigneein interfaceHistoricActivityInstanceQuery
-
finished
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances that are finished.- Specified by:
finishedin interfaceHistoricActivityInstanceQuery
-
unfinished
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances that are not finished yet.- Specified by:
unfinishedin interfaceHistoricActivityInstanceQuery
-
deleteReason
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances with a specific delete reason.- Specified by:
deleteReasonin interfaceHistoricActivityInstanceQuery
-
deleteReasonLike
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances with a delete reason that matches the provided parameter.- Specified by:
deleteReasonLikein interfaceHistoricActivityInstanceQuery
-
activityTenantId
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances that have the given tenant id.- Specified by:
activityTenantIdin interfaceHistoricActivityInstanceQuery
-
getTenantId
-
activityTenantIdLike
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances with a tenant id like the given one.- Specified by:
activityTenantIdLikein interfaceHistoricActivityInstanceQuery
-
tenantIdIn
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances with one of the given tenant ids.- Specified by:
tenantIdInin interfaceHistoricActivityInstanceQuery
-
getTenantIdLike
-
activityWithoutTenantId
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances that do not have a tenant id.- Specified by:
activityWithoutTenantIdin interfaceHistoricActivityInstanceQuery
-
isWithoutTenantId
public boolean isWithoutTenantId() -
orderByHistoricActivityInstanceDuration
Description copied from interface:HistoricActivityInstanceQueryOrder by duration (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByHistoricActivityInstanceDurationin interfaceHistoricActivityInstanceQuery
-
orderByHistoricActivityInstanceEndTime
Description copied from interface:HistoricActivityInstanceQueryOrder by end (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByHistoricActivityInstanceEndTimein interfaceHistoricActivityInstanceQuery
-
orderByExecutionId
Description copied from interface:HistoricActivityInstanceQueryOrder by executionId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceHistoricActivityInstanceQuery
-
orderByHistoricActivityInstanceId
Description copied from interface:HistoricActivityInstanceQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByHistoricActivityInstanceIdin interfaceHistoricActivityInstanceQuery
-
orderByProcessDefinitionId
Description copied from interface:HistoricActivityInstanceQueryOrder by processDefinitionId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceHistoricActivityInstanceQuery
-
orderByProcessInstanceId
Description copied from interface:HistoricActivityInstanceQueryOrder by processInstanceId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceHistoricActivityInstanceQuery
-
orderByHistoricActivityInstanceStartTime
Description copied from interface:HistoricActivityInstanceQueryOrder by start (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByHistoricActivityInstanceStartTimein interfaceHistoricActivityInstanceQuery
-
orderByActivityId
Description copied from interface:HistoricActivityInstanceQueryOrder by activityId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityIdin interfaceHistoricActivityInstanceQuery
-
orderByActivityName
Description copied from interface:HistoricActivityInstanceQueryOrder by activityName (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityNamein interfaceHistoricActivityInstanceQuery
-
orderByActivityType
Description copied from interface:HistoricActivityInstanceQueryOrder by activityType (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityTypein interfaceHistoricActivityInstanceQuery
-
orderByTenantId
Description copied from interface:HistoricActivityInstanceQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceHistoricActivityInstanceQuery
-
activityInstanceId
Description copied from interface:HistoricActivityInstanceQueryOnly select historic activity instances with the given id (primary key within history tables).- Specified by:
activityInstanceIdin interfaceHistoricActivityInstanceQuery
-
delete
public void delete()Description copied from interface:DeleteQueryDelete all instances that match the query.- Specified by:
deletein interfaceDeleteQuery<HistoricActivityInstanceQuery,HistoricActivityInstance>
-
deleteWithRelatedData
Deprecated.Description copied from interface:DeleteQueryDelete all instances and their related data that match the query in bulk. Note that only the historical data directly related to the instance will be deleted. This means that for example for historic case/process instances, it will not delete any associated historic case/process instance (these should be deleted through the respective deletion for the particular model) which is owned by another engine (e.g. a process for the cmmn engine). Use the specific deletion methods on the respective history services otherwise: they delete with cascading to all other engines, but are not as performant as the bulk delete here.- Specified by:
deleteWithRelatedDatain interfaceDeleteQuery<HistoricActivityInstanceQuery,HistoricActivityInstance>
-
getProcessInstanceId
-
getExecutionId
-
getProcessDefinitionId
-
getActivityId
-
getActivityName
-
getActivityType
-
getActivityTypes
-
getAssignee
-
isFinished
public boolean isFinished() -
isUnfinished
public boolean isUnfinished() -
getActivityInstanceId
-
getDeleteReason
-
getDeleteReasonLike
-
getStartedAfter
-
getStartedBefore
-
getFinishedAfter
-
getFinishedBefore
-
getTenantIds
-