Package org.flowable.engine.impl
Class ActivityInstanceQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<ActivityInstanceQuery,ActivityInstance>
org.flowable.engine.impl.ActivityInstanceQueryImpl
- All Implemented Interfaces:
Serializable
,org.flowable.common.engine.api.query.Query<ActivityInstanceQuery,
,ActivityInstance> org.flowable.common.engine.impl.interceptor.Command<Object>
,ActivityInstanceQuery
public class ActivityInstanceQueryImpl
extends org.flowable.common.engine.impl.query.AbstractQuery<ActivityInstanceQuery,ActivityInstance>
implements ActivityInstanceQuery
- Author:
- martin.grofcik
- 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 String
protected String
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
ConstructorDescriptionActivityInstanceQueryImpl
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) ActivityInstanceQueryImpl
(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionactivityId
(String activityId) Only select activity instances for the given activity (id from BPMN 2.0 XML)activityInstanceId
(String activityInstanceId) Only select activity instances with the given id (primary key within history tables).activityName
(String activityName) Only select activity instances for activities with the given nameactivityTenantId
(String tenantId) Only select activity instances that have the given tenant id.activityTenantIdLike
(String tenantIdLike) Only select activity instances with a tenant id like the given one.activityType
(String activityType) Only select activity instances for activities with the given activity typeOnly select activity instances that do not have a tenant id.deleteReason
(String deleteReason) Only select activity instances with a specific delete reason.deleteReasonLike
(String deleteReasonLike) Only select activity instances with a delete reason that matches the provided parameter.long
executeCount
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) executeList
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) executionId
(String executionId) Only select activity instances for the given executionfinished()
Only select activity instances that are finished.boolean
boolean
boolean
Order by activityId (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 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 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 activity instances for the given process definitionprocessInstanceId
(String processInstanceId) Only select activity instances with the given process instance.taskAssignee
(String assignee) Only select activity instances for userTask activities assigned to the given userOnly select 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
-
assignee
-
tenantId
-
tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId -
finished
protected boolean finished -
unfinished
protected boolean unfinished -
deleteReason
-
deleteReasonLike
-
-
Constructor Details
-
ActivityInstanceQueryImpl
public ActivityInstanceQueryImpl() -
ActivityInstanceQueryImpl
public ActivityInstanceQueryImpl(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
ActivityInstanceQueryImpl
public ActivityInstanceQueryImpl(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<ActivityInstanceQuery,
ActivityInstance>
-
executeList
public List<ActivityInstance> executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) - Specified by:
executeList
in classorg.flowable.common.engine.impl.query.AbstractQuery<ActivityInstanceQuery,
ActivityInstance>
-
processInstanceId
Description copied from interface:ActivityInstanceQuery
Only select activity instances with the given process instance.ProcessInstance
ids andActivityInstance.getProcessInstanceId()
ids match.- Specified by:
processInstanceId
in interfaceActivityInstanceQuery
-
executionId
Description copied from interface:ActivityInstanceQuery
Only select activity instances for the given execution- Specified by:
executionId
in interfaceActivityInstanceQuery
-
processDefinitionId
Description copied from interface:ActivityInstanceQuery
Only select activity instances for the given process definition- Specified by:
processDefinitionId
in interfaceActivityInstanceQuery
-
activityId
Description copied from interface:ActivityInstanceQuery
Only select activity instances for the given activity (id from BPMN 2.0 XML)- Specified by:
activityId
in interfaceActivityInstanceQuery
-
activityName
Description copied from interface:ActivityInstanceQuery
Only select activity instances for activities with the given name- Specified by:
activityName
in interfaceActivityInstanceQuery
-
activityType
Description copied from interface:ActivityInstanceQuery
Only select activity instances for activities with the given activity type- Specified by:
activityType
in interfaceActivityInstanceQuery
-
taskAssignee
Description copied from interface:ActivityInstanceQuery
Only select activity instances for userTask activities assigned to the given user- Specified by:
taskAssignee
in interfaceActivityInstanceQuery
-
finished
Description copied from interface:ActivityInstanceQuery
Only select activity instances that are finished.- Specified by:
finished
in interfaceActivityInstanceQuery
-
unfinished
Description copied from interface:ActivityInstanceQuery
Only select activity instances that are not finished yet.- Specified by:
unfinished
in interfaceActivityInstanceQuery
-
deleteReason
Description copied from interface:ActivityInstanceQuery
Only select activity instances with a specific delete reason.- Specified by:
deleteReason
in interfaceActivityInstanceQuery
-
deleteReasonLike
Description copied from interface:ActivityInstanceQuery
Only select activity instances with a delete reason that matches the provided parameter.- Specified by:
deleteReasonLike
in interfaceActivityInstanceQuery
-
activityTenantId
Description copied from interface:ActivityInstanceQuery
Only select activity instances that have the given tenant id.- Specified by:
activityTenantId
in interfaceActivityInstanceQuery
-
getTenantId
-
activityTenantIdLike
Description copied from interface:ActivityInstanceQuery
Only select activity instances with a tenant id like the given one.- Specified by:
activityTenantIdLike
in interfaceActivityInstanceQuery
-
getTenantIdLike
-
activityWithoutTenantId
Description copied from interface:ActivityInstanceQuery
Only select activity instances that do not have a tenant id.- Specified by:
activityWithoutTenantId
in interfaceActivityInstanceQuery
-
isWithoutTenantId
public boolean isWithoutTenantId() -
orderByActivityInstanceDuration
Description copied from interface:ActivityInstanceQuery
Order by duration (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityInstanceDuration
in interfaceActivityInstanceQuery
-
orderByActivityInstanceEndTime
Description copied from interface:ActivityInstanceQuery
Order by end (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityInstanceEndTime
in interfaceActivityInstanceQuery
-
orderByExecutionId
Description copied from interface:ActivityInstanceQuery
Order by executionId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByExecutionId
in interfaceActivityInstanceQuery
-
orderByActivityInstanceId
Description copied from interface:ActivityInstanceQuery
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityInstanceId
in interfaceActivityInstanceQuery
-
orderByProcessDefinitionId
Description copied from interface:ActivityInstanceQuery
Order by processDefinitionId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionId
in interfaceActivityInstanceQuery
-
orderByProcessInstanceId
Description copied from interface:ActivityInstanceQuery
Order by processInstanceId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceId
in interfaceActivityInstanceQuery
-
orderByActivityInstanceStartTime
Description copied from interface:ActivityInstanceQuery
Order by start (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityInstanceStartTime
in interfaceActivityInstanceQuery
-
orderByActivityId
Description copied from interface:ActivityInstanceQuery
Order by activityId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityId
in interfaceActivityInstanceQuery
-
orderByActivityName
Description copied from interface:ActivityInstanceQuery
Order by activityName (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityName
in interfaceActivityInstanceQuery
-
orderByActivityType
Description copied from interface:ActivityInstanceQuery
Order by activityType (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityType
in interfaceActivityInstanceQuery
-
orderByTenantId
Description copied from interface:ActivityInstanceQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTenantId
in interfaceActivityInstanceQuery
-
activityInstanceId
Description copied from interface:ActivityInstanceQuery
Only select activity instances with the given id (primary key within history tables).- Specified by:
activityInstanceId
in interfaceActivityInstanceQuery
-
getProcessInstanceId
-
getExecutionId
-
getProcessDefinitionId
-
getActivityId
-
getActivityName
-
getActivityType
-
getAssignee
-
isFinished
public boolean isFinished() -
isUnfinished
public boolean isUnfinished() -
getActivityInstanceId
-
getDeleteReason
-
getDeleteReasonLike
-