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
,org.flowable.common.engine.api.query.DeleteQuery<HistoricActivityInstanceQuery,
,HistoricActivityInstance> org.flowable.common.engine.api.query.Query<HistoricActivityInstanceQuery,
,HistoricActivityInstance> org.flowable.common.engine.impl.interceptor.Command<Object>
,HistoricActivityInstanceQuery
public class HistoricActivityInstanceQueryImpl
extends org.flowable.common.engine.impl.query.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
org.flowable.common.engine.impl.db.ListQueryParameterObject.OrderBy, org.flowable.common.engine.impl.db.ListQueryParameterObject.ResultType
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
org.flowable.common.engine.api.query.Query.NullHandlingOnOrder
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected boolean
protected Date
protected Date
protected String
protected String
protected Date
protected Date
protected String
protected String
protected boolean
protected boolean
Fields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutor
Fields 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
ConstructorDescriptionHistoricActivityInstanceQueryImpl
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) HistoricActivityInstanceQueryImpl
(org.flowable.common.engine.impl.interceptor.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.void
delete()
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.void
Deprecated.long
executeCount
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) executeList
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) 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.boolean
boolean
boolean
Order 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, singleResult
Methods 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.api.query.Query
asc, count, desc, list, listPage, orderBy, orderBy, singleResult
-
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
public HistoricActivityInstanceQueryImpl(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
HistoricActivityInstanceQueryImpl
public HistoricActivityInstanceQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
-
-
Method Details
-
executeCount
public long executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) - Specified by:
executeCount
in classorg.flowable.common.engine.impl.query.AbstractQuery<HistoricActivityInstanceQuery,
HistoricActivityInstance>
-
executeList
public List<HistoricActivityInstance> executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) - Specified by:
executeList
in classorg.flowable.common.engine.impl.query.AbstractQuery<HistoricActivityInstanceQuery,
HistoricActivityInstance>
-
processInstanceId
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances with the given process instance.ProcessInstance
ids andHistoricProcessInstance
ids match.- Specified by:
processInstanceId
in interfaceHistoricActivityInstanceQuery
-
executionId
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances for the given execution- Specified by:
executionId
in interfaceHistoricActivityInstanceQuery
-
processDefinitionId
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances for the given process definition- Specified by:
processDefinitionId
in interfaceHistoricActivityInstanceQuery
-
activityId
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances for the given activity (id from BPMN 2.0 XML)- Specified by:
activityId
in interfaceHistoricActivityInstanceQuery
-
activityName
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances for activities with the given name- Specified by:
activityName
in interfaceHistoricActivityInstanceQuery
-
activityType
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances for activities with the given activity type- Specified by:
activityType
in interfaceHistoricActivityInstanceQuery
-
startedAfter
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances that were started after the given date.- Specified by:
startedAfter
in interfaceHistoricActivityInstanceQuery
-
startedBefore
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances that were started before the given date.- Specified by:
startedBefore
in interfaceHistoricActivityInstanceQuery
-
finishedAfter
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances that were started after the given date.- Specified by:
finishedAfter
in interfaceHistoricActivityInstanceQuery
-
finishedBefore
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances that were started before the given date.- Specified by:
finishedBefore
in interfaceHistoricActivityInstanceQuery
-
activityTypes
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances whose activity type is in the given set of activity types.- Specified by:
activityTypes
in interfaceHistoricActivityInstanceQuery
-
taskAssignee
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances for userTask activities assigned to the given user- Specified by:
taskAssignee
in interfaceHistoricActivityInstanceQuery
-
finished
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances that are finished.- Specified by:
finished
in interfaceHistoricActivityInstanceQuery
-
unfinished
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances that are not finished yet.- Specified by:
unfinished
in interfaceHistoricActivityInstanceQuery
-
deleteReason
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances with a specific delete reason.- Specified by:
deleteReason
in interfaceHistoricActivityInstanceQuery
-
deleteReasonLike
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances with a delete reason that matches the provided parameter.- Specified by:
deleteReasonLike
in interfaceHistoricActivityInstanceQuery
-
activityTenantId
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances that have the given tenant id.- Specified by:
activityTenantId
in interfaceHistoricActivityInstanceQuery
-
getTenantId
-
activityTenantIdLike
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances with a tenant id like the given one.- Specified by:
activityTenantIdLike
in interfaceHistoricActivityInstanceQuery
-
tenantIdIn
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceHistoricActivityInstanceQuery
-
getTenantIdLike
-
activityWithoutTenantId
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances that do not have a tenant id.- Specified by:
activityWithoutTenantId
in interfaceHistoricActivityInstanceQuery
-
isWithoutTenantId
public boolean isWithoutTenantId() -
orderByHistoricActivityInstanceDuration
Description copied from interface:HistoricActivityInstanceQuery
Order by duration (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricActivityInstanceDuration
in interfaceHistoricActivityInstanceQuery
-
orderByHistoricActivityInstanceEndTime
Description copied from interface:HistoricActivityInstanceQuery
Order by end (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricActivityInstanceEndTime
in interfaceHistoricActivityInstanceQuery
-
orderByExecutionId
Description copied from interface:HistoricActivityInstanceQuery
Order by executionId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByExecutionId
in interfaceHistoricActivityInstanceQuery
-
orderByHistoricActivityInstanceId
Description copied from interface:HistoricActivityInstanceQuery
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricActivityInstanceId
in interfaceHistoricActivityInstanceQuery
-
orderByProcessDefinitionId
Description copied from interface:HistoricActivityInstanceQuery
Order by processDefinitionId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionId
in interfaceHistoricActivityInstanceQuery
-
orderByProcessInstanceId
Description copied from interface:HistoricActivityInstanceQuery
Order by processInstanceId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceId
in interfaceHistoricActivityInstanceQuery
-
orderByHistoricActivityInstanceStartTime
Description copied from interface:HistoricActivityInstanceQuery
Order by start (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricActivityInstanceStartTime
in interfaceHistoricActivityInstanceQuery
-
orderByActivityId
Description copied from interface:HistoricActivityInstanceQuery
Order by activityId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityId
in interfaceHistoricActivityInstanceQuery
-
orderByActivityName
Description copied from interface:HistoricActivityInstanceQuery
Order by activityName (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityName
in interfaceHistoricActivityInstanceQuery
-
orderByActivityType
Description copied from interface:HistoricActivityInstanceQuery
Order by activityType (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityType
in interfaceHistoricActivityInstanceQuery
-
orderByTenantId
Description copied from interface:HistoricActivityInstanceQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTenantId
in interfaceHistoricActivityInstanceQuery
-
activityInstanceId
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances with the given id (primary key within history tables).- Specified by:
activityInstanceId
in interfaceHistoricActivityInstanceQuery
-
delete
public void delete()- Specified by:
delete
in interfaceorg.flowable.common.engine.api.query.DeleteQuery<HistoricActivityInstanceQuery,
HistoricActivityInstance>
-
deleteWithRelatedData
Deprecated.- Specified by:
deleteWithRelatedData
in interfaceorg.flowable.common.engine.api.query.DeleteQuery<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
-