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,Query<ActivityInstanceQuery,,ActivityInstance> Command<Object>,ActivityInstanceQuery
public class ActivityInstanceQueryImpl
extends 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
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 Stringprotected Stringprotected 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
ConstructorsConstructorDescriptionActivityInstanceQueryImpl(CommandContext commandContext) ActivityInstanceQueryImpl(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.longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext) Executes the actual query to retrieve the list of results.executionId(String executionId) Only select activity instances for the given executionfinished()Only select activity instances that are finished.booleanbooleanbooleanOrder 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, 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
-
assignee
-
tenantId
-
tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId -
finished
protected boolean finished -
unfinished
protected boolean unfinished -
deleteReason
-
deleteReasonLike
-
-
Constructor Details
-
ActivityInstanceQueryImpl
public ActivityInstanceQueryImpl() -
ActivityInstanceQueryImpl
-
ActivityInstanceQueryImpl
-
-
Method Details
-
executeCount
- Specified by:
executeCountin classAbstractQuery<ActivityInstanceQuery,ActivityInstance>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<ActivityInstanceQuery,ActivityInstance>
-
processInstanceId
Description copied from interface:ActivityInstanceQueryOnly select activity instances with the given process instance.ProcessInstanceids andActivityInstance.getProcessInstanceId()ids match.- Specified by:
processInstanceIdin interfaceActivityInstanceQuery
-
executionId
Description copied from interface:ActivityInstanceQueryOnly select activity instances for the given execution- Specified by:
executionIdin interfaceActivityInstanceQuery
-
processDefinitionId
Description copied from interface:ActivityInstanceQueryOnly select activity instances for the given process definition- Specified by:
processDefinitionIdin interfaceActivityInstanceQuery
-
activityId
Description copied from interface:ActivityInstanceQueryOnly select activity instances for the given activity (id from BPMN 2.0 XML)- Specified by:
activityIdin interfaceActivityInstanceQuery
-
activityName
Description copied from interface:ActivityInstanceQueryOnly select activity instances for activities with the given name- Specified by:
activityNamein interfaceActivityInstanceQuery
-
activityType
Description copied from interface:ActivityInstanceQueryOnly select activity instances for activities with the given activity type- Specified by:
activityTypein interfaceActivityInstanceQuery
-
taskAssignee
Description copied from interface:ActivityInstanceQueryOnly select activity instances for userTask activities assigned to the given user- Specified by:
taskAssigneein interfaceActivityInstanceQuery
-
finished
Description copied from interface:ActivityInstanceQueryOnly select activity instances that are finished.- Specified by:
finishedin interfaceActivityInstanceQuery
-
unfinished
Description copied from interface:ActivityInstanceQueryOnly select activity instances that are not finished yet.- Specified by:
unfinishedin interfaceActivityInstanceQuery
-
deleteReason
Description copied from interface:ActivityInstanceQueryOnly select activity instances with a specific delete reason.- Specified by:
deleteReasonin interfaceActivityInstanceQuery
-
deleteReasonLike
Description copied from interface:ActivityInstanceQueryOnly select activity instances with a delete reason that matches the provided parameter.- Specified by:
deleteReasonLikein interfaceActivityInstanceQuery
-
activityTenantId
Description copied from interface:ActivityInstanceQueryOnly select activity instances that have the given tenant id.- Specified by:
activityTenantIdin interfaceActivityInstanceQuery
-
getTenantId
-
activityTenantIdLike
Description copied from interface:ActivityInstanceQueryOnly select activity instances with a tenant id like the given one.- Specified by:
activityTenantIdLikein interfaceActivityInstanceQuery
-
getTenantIdLike
-
activityWithoutTenantId
Description copied from interface:ActivityInstanceQueryOnly select activity instances that do not have a tenant id.- Specified by:
activityWithoutTenantIdin interfaceActivityInstanceQuery
-
isWithoutTenantId
public boolean isWithoutTenantId() -
orderByActivityInstanceDuration
Description copied from interface:ActivityInstanceQueryOrder by duration (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityInstanceDurationin interfaceActivityInstanceQuery
-
orderByActivityInstanceEndTime
Description copied from interface:ActivityInstanceQueryOrder by end (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityInstanceEndTimein interfaceActivityInstanceQuery
-
orderByExecutionId
Description copied from interface:ActivityInstanceQueryOrder by executionId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceActivityInstanceQuery
-
orderByActivityInstanceId
Description copied from interface:ActivityInstanceQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityInstanceIdin interfaceActivityInstanceQuery
-
orderByProcessDefinitionId
Description copied from interface:ActivityInstanceQueryOrder by processDefinitionId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceActivityInstanceQuery
-
orderByProcessInstanceId
Description copied from interface:ActivityInstanceQueryOrder by processInstanceId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceActivityInstanceQuery
-
orderByActivityInstanceStartTime
Description copied from interface:ActivityInstanceQueryOrder by start (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityInstanceStartTimein interfaceActivityInstanceQuery
-
orderByActivityId
Description copied from interface:ActivityInstanceQueryOrder by activityId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityIdin interfaceActivityInstanceQuery
-
orderByActivityName
Description copied from interface:ActivityInstanceQueryOrder by activityName (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityNamein interfaceActivityInstanceQuery
-
orderByActivityType
Description copied from interface:ActivityInstanceQueryOrder by activityType (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityTypein interfaceActivityInstanceQuery
-
orderByTenantId
Description copied from interface:ActivityInstanceQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceActivityInstanceQuery
-
activityInstanceId
Description copied from interface:ActivityInstanceQueryOnly select activity instances with the given id (primary key within history tables).- Specified by:
activityInstanceIdin interfaceActivityInstanceQuery
-
getProcessInstanceId
-
getExecutionId
-
getProcessDefinitionId
-
getActivityId
-
getActivityName
-
getActivityType
-
getAssignee
-
isFinished
public boolean isFinished() -
isUnfinished
public boolean isUnfinished() -
getActivityInstanceId
-
getDeleteReason
-
getDeleteReasonLike
-