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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultType
-
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
-
Field Summary
Fields Modifier and Type Field Description protected StringactivityIdprotected StringactivityInstanceIdprotected StringactivityNameprotected StringactivityTypeprotected Stringassigneeprotected StringdeleteReasonprotected StringdeleteReasonLikeprotected StringexecutionIdprotected booleanfinishedprotected StringprocessDefinitionIdprotected StringprocessInstanceIdprotected StringtenantIdprotected StringtenantIdLikeprotected booleanunfinishedprotected booleanwithoutTenantId-
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
Constructors Constructor Description ActivityInstanceQueryImpl()ActivityInstanceQueryImpl(CommandContext commandContext)ActivityInstanceQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivityInstanceQueryImplactivityId(String activityId)Only select activity instances for the given activity (id from BPMN 2.0 XML)ActivityInstanceQueryImplactivityInstanceId(String activityInstanceId)Only select activity instances with the given id (primary key within history tables).ActivityInstanceQueryImplactivityName(String activityName)Only select activity instances for activities with the given nameActivityInstanceQueryImplactivityTenantId(String tenantId)Only select activity instances that have the given tenant id.ActivityInstanceQueryImplactivityTenantIdLike(String tenantIdLike)Only select activity instances with a tenant id like the given one.ActivityInstanceQueryImplactivityType(String activityType)Only select activity instances for activities with the given activity typeActivityInstanceQueryImplactivityWithoutTenantId()Only select activity instances that do not have a tenant id.ActivityInstanceQuerydeleteReason(String deleteReason)Only select activity instances with a specific delete reason.ActivityInstanceQuerydeleteReasonLike(String deleteReasonLike)Only select activity instances with a delete reason that matches the provided parameter.longexecuteCount(CommandContext commandContext)List<ActivityInstance>executeList(CommandContext commandContext)ActivityInstanceQueryImplexecutionId(String executionId)Only select activity instances for the given executionActivityInstanceQueryImplfinished()Only select activity instances that are finished.StringgetActivityId()StringgetActivityInstanceId()StringgetActivityName()StringgetActivityType()StringgetAssignee()StringgetDeleteReason()StringgetDeleteReasonLike()StringgetExecutionId()StringgetProcessDefinitionId()StringgetProcessInstanceId()StringgetTenantId()StringgetTenantIdLike()booleanisFinished()booleanisUnfinished()booleanisWithoutTenantId()ActivityInstanceQueryorderByActivityId()Order by activityId (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryImplorderByActivityInstanceDuration()Order by duration (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryImplorderByActivityInstanceEndTime()Order by end (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryImplorderByActivityInstanceId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryImplorderByActivityInstanceStartTime()Order by start (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryImplorderByActivityName()Order by activityName (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryImplorderByActivityType()Order by activityType (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryImplorderByExecutionId()Order by executionId (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryImplorderByProcessDefinitionId()Order by processDefinitionId (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryImplorderByProcessInstanceId()Order by processInstanceId (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryImplorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryImplprocessDefinitionId(String processDefinitionId)Only select activity instances for the given process definitionActivityInstanceQueryImplprocessInstanceId(String processInstanceId)Only select activity instances with the given process instance.ActivityInstanceQueryImpltaskAssignee(String assignee)Only select activity instances for userTask activities assigned to the given userActivityInstanceQueryImplunfinished()Only 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
-
-
-
-
Field Detail
-
activityInstanceId
protected String activityInstanceId
-
processInstanceId
protected String processInstanceId
-
executionId
protected String executionId
-
processDefinitionId
protected String processDefinitionId
-
activityId
protected String activityId
-
activityName
protected String activityName
-
activityType
protected String activityType
-
assignee
protected String assignee
-
tenantId
protected String tenantId
-
tenantIdLike
protected String tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
finished
protected boolean finished
-
unfinished
protected boolean unfinished
-
deleteReason
protected String deleteReason
-
deleteReasonLike
protected String deleteReasonLike
-
-
Constructor Detail
-
ActivityInstanceQueryImpl
public ActivityInstanceQueryImpl()
-
ActivityInstanceQueryImpl
public ActivityInstanceQueryImpl(CommandContext commandContext)
-
ActivityInstanceQueryImpl
public ActivityInstanceQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<ActivityInstanceQuery,ActivityInstance>
-
executeList
public List<ActivityInstance> executeList(CommandContext commandContext)
- Specified by:
executeListin classAbstractQuery<ActivityInstanceQuery,ActivityInstance>
-
processInstanceId
public ActivityInstanceQueryImpl processInstanceId(String processInstanceId)
Description copied from interface:ActivityInstanceQueryOnly select activity instances with the given process instance.ProcessInstanceids andActivityInstance.getProcessInstanceId()ids match.- Specified by:
processInstanceIdin interfaceActivityInstanceQuery
-
executionId
public ActivityInstanceQueryImpl executionId(String executionId)
Description copied from interface:ActivityInstanceQueryOnly select activity instances for the given execution- Specified by:
executionIdin interfaceActivityInstanceQuery
-
processDefinitionId
public ActivityInstanceQueryImpl processDefinitionId(String processDefinitionId)
Description copied from interface:ActivityInstanceQueryOnly select activity instances for the given process definition- Specified by:
processDefinitionIdin interfaceActivityInstanceQuery
-
activityId
public ActivityInstanceQueryImpl activityId(String activityId)
Description copied from interface:ActivityInstanceQueryOnly select activity instances for the given activity (id from BPMN 2.0 XML)- Specified by:
activityIdin interfaceActivityInstanceQuery
-
activityName
public ActivityInstanceQueryImpl activityName(String activityName)
Description copied from interface:ActivityInstanceQueryOnly select activity instances for activities with the given name- Specified by:
activityNamein interfaceActivityInstanceQuery
-
activityType
public ActivityInstanceQueryImpl activityType(String activityType)
Description copied from interface:ActivityInstanceQueryOnly select activity instances for activities with the given activity type- Specified by:
activityTypein interfaceActivityInstanceQuery
-
taskAssignee
public ActivityInstanceQueryImpl taskAssignee(String assignee)
Description copied from interface:ActivityInstanceQueryOnly select activity instances for userTask activities assigned to the given user- Specified by:
taskAssigneein interfaceActivityInstanceQuery
-
finished
public ActivityInstanceQueryImpl finished()
Description copied from interface:ActivityInstanceQueryOnly select activity instances that are finished.- Specified by:
finishedin interfaceActivityInstanceQuery
-
unfinished
public ActivityInstanceQueryImpl unfinished()
Description copied from interface:ActivityInstanceQueryOnly select activity instances that are not finished yet.- Specified by:
unfinishedin interfaceActivityInstanceQuery
-
deleteReason
public ActivityInstanceQuery deleteReason(String deleteReason)
Description copied from interface:ActivityInstanceQueryOnly select activity instances with a specific delete reason.- Specified by:
deleteReasonin interfaceActivityInstanceQuery
-
deleteReasonLike
public ActivityInstanceQuery deleteReasonLike(String deleteReasonLike)
Description copied from interface:ActivityInstanceQueryOnly select activity instances with a delete reason that matches the provided parameter.- Specified by:
deleteReasonLikein interfaceActivityInstanceQuery
-
activityTenantId
public ActivityInstanceQueryImpl activityTenantId(String tenantId)
Description copied from interface:ActivityInstanceQueryOnly select activity instances that have the given tenant id.- Specified by:
activityTenantIdin interfaceActivityInstanceQuery
-
getTenantId
public String getTenantId()
-
activityTenantIdLike
public ActivityInstanceQueryImpl activityTenantIdLike(String tenantIdLike)
Description copied from interface:ActivityInstanceQueryOnly select activity instances with a tenant id like the given one.- Specified by:
activityTenantIdLikein interfaceActivityInstanceQuery
-
getTenantIdLike
public String getTenantIdLike()
-
activityWithoutTenantId
public ActivityInstanceQueryImpl 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
public ActivityInstanceQueryImpl orderByActivityInstanceDuration()
Description copied from interface:ActivityInstanceQueryOrder by duration (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityInstanceDurationin interfaceActivityInstanceQuery
-
orderByActivityInstanceEndTime
public ActivityInstanceQueryImpl orderByActivityInstanceEndTime()
Description copied from interface:ActivityInstanceQueryOrder by end (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityInstanceEndTimein interfaceActivityInstanceQuery
-
orderByExecutionId
public ActivityInstanceQueryImpl orderByExecutionId()
Description copied from interface:ActivityInstanceQueryOrder by executionId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceActivityInstanceQuery
-
orderByActivityInstanceId
public ActivityInstanceQueryImpl orderByActivityInstanceId()
Description copied from interface:ActivityInstanceQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityInstanceIdin interfaceActivityInstanceQuery
-
orderByProcessDefinitionId
public ActivityInstanceQueryImpl orderByProcessDefinitionId()
Description copied from interface:ActivityInstanceQueryOrder by processDefinitionId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceActivityInstanceQuery
-
orderByProcessInstanceId
public ActivityInstanceQueryImpl orderByProcessInstanceId()
Description copied from interface:ActivityInstanceQueryOrder by processInstanceId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceActivityInstanceQuery
-
orderByActivityInstanceStartTime
public ActivityInstanceQueryImpl orderByActivityInstanceStartTime()
Description copied from interface:ActivityInstanceQueryOrder by start (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityInstanceStartTimein interfaceActivityInstanceQuery
-
orderByActivityId
public ActivityInstanceQuery orderByActivityId()
Description copied from interface:ActivityInstanceQueryOrder by activityId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityIdin interfaceActivityInstanceQuery
-
orderByActivityName
public ActivityInstanceQueryImpl orderByActivityName()
Description copied from interface:ActivityInstanceQueryOrder by activityName (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityNamein interfaceActivityInstanceQuery
-
orderByActivityType
public ActivityInstanceQueryImpl orderByActivityType()
Description copied from interface:ActivityInstanceQueryOrder by activityType (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityTypein interfaceActivityInstanceQuery
-
orderByTenantId
public ActivityInstanceQueryImpl orderByTenantId()
Description copied from interface:ActivityInstanceQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceActivityInstanceQuery
-
activityInstanceId
public ActivityInstanceQueryImpl activityInstanceId(String activityInstanceId)
Description copied from interface:ActivityInstanceQueryOnly select activity instances with the given id (primary key within history tables).- Specified by:
activityInstanceIdin interfaceActivityInstanceQuery
-
getProcessInstanceId
public String getProcessInstanceId()
-
getExecutionId
public String getExecutionId()
-
getProcessDefinitionId
public String getProcessDefinitionId()
-
getActivityId
public String getActivityId()
-
getActivityName
public String getActivityName()
-
getActivityType
public String getActivityType()
-
getAssignee
public String getAssignee()
-
isFinished
public boolean isFinished()
-
isUnfinished
public boolean isUnfinished()
-
getActivityInstanceId
public String getActivityInstanceId()
-
getDeleteReason
public String getDeleteReason()
-
getDeleteReasonLike
public String getDeleteReasonLike()
-
-