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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
activityId
protected String
activityInstanceId
protected String
activityName
protected String
activityType
protected String
assignee
protected String
deleteReason
protected String
deleteReasonLike
protected String
executionId
protected boolean
finished
protected String
processDefinitionId
protected String
processInstanceId
protected String
tenantId
protected String
tenantIdLike
protected boolean
unfinished
protected boolean
withoutTenantId
-
Constructor Summary
Constructors Constructor Description ActivityInstanceQueryImpl()
ActivityInstanceQueryImpl(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
ActivityInstanceQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivityInstanceQueryImpl
activityId(String activityId)
Only select activity instances for the given activity (id from BPMN 2.0 XML)ActivityInstanceQueryImpl
activityInstanceId(String activityInstanceId)
Only select activity instances with the given id (primary key within history tables).ActivityInstanceQueryImpl
activityName(String activityName)
Only select activity instances for activities with the given nameActivityInstanceQueryImpl
activityTenantId(String tenantId)
Only select activity instances that have the given tenant id.ActivityInstanceQueryImpl
activityTenantIdLike(String tenantIdLike)
Only select activity instances with a tenant id like the given one.ActivityInstanceQueryImpl
activityType(String activityType)
Only select activity instances for activities with the given activity typeActivityInstanceQueryImpl
activityWithoutTenantId()
Only select activity instances that do not have a tenant id.ActivityInstanceQuery
deleteReason(String deleteReason)
Only select activity instances with a specific delete reason.ActivityInstanceQuery
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)
List<ActivityInstance>
executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
ActivityInstanceQueryImpl
executionId(String executionId)
Only select activity instances for the given executionActivityInstanceQueryImpl
finished()
Only select activity instances that are finished.String
getActivityId()
String
getActivityInstanceId()
String
getActivityName()
String
getActivityType()
String
getAssignee()
String
getDeleteReason()
String
getDeleteReasonLike()
String
getExecutionId()
String
getProcessDefinitionId()
String
getProcessInstanceId()
String
getTenantId()
String
getTenantIdLike()
boolean
isFinished()
boolean
isUnfinished()
boolean
isWithoutTenantId()
ActivityInstanceQuery
orderByActivityId()
Order by activityId (needs to be followed byQuery.asc()
orQuery.desc()
).ActivityInstanceQueryImpl
orderByActivityInstanceDuration()
Order by duration (needs to be followed byQuery.asc()
orQuery.desc()
).ActivityInstanceQueryImpl
orderByActivityInstanceEndTime()
Order by end (needs to be followed byQuery.asc()
orQuery.desc()
).ActivityInstanceQueryImpl
orderByActivityInstanceId()
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).ActivityInstanceQueryImpl
orderByActivityInstanceStartTime()
Order by start (needs to be followed byQuery.asc()
orQuery.desc()
).ActivityInstanceQueryImpl
orderByActivityName()
Order by activityName (needs to be followed byQuery.asc()
orQuery.desc()
).ActivityInstanceQueryImpl
orderByActivityType()
Order by activityType (needs to be followed byQuery.asc()
orQuery.desc()
).ActivityInstanceQueryImpl
orderByExecutionId()
Order by executionId (needs to be followed byQuery.asc()
orQuery.desc()
).ActivityInstanceQueryImpl
orderByProcessDefinitionId()
Order by processDefinitionId (needs to be followed byQuery.asc()
orQuery.desc()
).ActivityInstanceQueryImpl
orderByProcessInstanceId()
Order by processInstanceId (needs to be followed byQuery.asc()
orQuery.desc()
).ActivityInstanceQueryImpl
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).ActivityInstanceQueryImpl
processDefinitionId(String processDefinitionId)
Only select activity instances for the given process definitionActivityInstanceQueryImpl
processInstanceId(String processInstanceId)
Only select activity instances with the given process instance.ActivityInstanceQueryImpl
taskAssignee(String assignee)
Only select activity instances for userTask activities assigned to the given userActivityInstanceQueryImpl
unfinished()
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(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
-
ActivityInstanceQueryImpl
public ActivityInstanceQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
-
-
Method Detail
-
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
public ActivityInstanceQueryImpl processInstanceId(String 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
public ActivityInstanceQueryImpl executionId(String executionId)
Description copied from interface:ActivityInstanceQuery
Only select activity instances for the given execution- Specified by:
executionId
in interfaceActivityInstanceQuery
-
processDefinitionId
public ActivityInstanceQueryImpl processDefinitionId(String processDefinitionId)
Description copied from interface:ActivityInstanceQuery
Only select activity instances for the given process definition- Specified by:
processDefinitionId
in interfaceActivityInstanceQuery
-
activityId
public ActivityInstanceQueryImpl activityId(String 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
public ActivityInstanceQueryImpl activityName(String activityName)
Description copied from interface:ActivityInstanceQuery
Only select activity instances for activities with the given name- Specified by:
activityName
in interfaceActivityInstanceQuery
-
activityType
public ActivityInstanceQueryImpl activityType(String activityType)
Description copied from interface:ActivityInstanceQuery
Only select activity instances for activities with the given activity type- Specified by:
activityType
in interfaceActivityInstanceQuery
-
taskAssignee
public ActivityInstanceQueryImpl taskAssignee(String assignee)
Description copied from interface:ActivityInstanceQuery
Only select activity instances for userTask activities assigned to the given user- Specified by:
taskAssignee
in interfaceActivityInstanceQuery
-
finished
public ActivityInstanceQueryImpl finished()
Description copied from interface:ActivityInstanceQuery
Only select activity instances that are finished.- Specified by:
finished
in interfaceActivityInstanceQuery
-
unfinished
public ActivityInstanceQueryImpl unfinished()
Description copied from interface:ActivityInstanceQuery
Only select activity instances that are not finished yet.- Specified by:
unfinished
in interfaceActivityInstanceQuery
-
deleteReason
public ActivityInstanceQuery deleteReason(String deleteReason)
Description copied from interface:ActivityInstanceQuery
Only select activity instances with a specific delete reason.- Specified by:
deleteReason
in interfaceActivityInstanceQuery
-
deleteReasonLike
public ActivityInstanceQuery deleteReasonLike(String 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
public ActivityInstanceQueryImpl activityTenantId(String tenantId)
Description copied from interface:ActivityInstanceQuery
Only select activity instances that have the given tenant id.- Specified by:
activityTenantId
in interfaceActivityInstanceQuery
-
getTenantId
public String getTenantId()
-
activityTenantIdLike
public ActivityInstanceQueryImpl activityTenantIdLike(String tenantIdLike)
Description copied from interface:ActivityInstanceQuery
Only select activity instances with a tenant id like the given one.- Specified by:
activityTenantIdLike
in interfaceActivityInstanceQuery
-
getTenantIdLike
public String getTenantIdLike()
-
activityWithoutTenantId
public ActivityInstanceQueryImpl 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
public ActivityInstanceQueryImpl orderByActivityInstanceDuration()
Description copied from interface:ActivityInstanceQuery
Order by duration (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityInstanceDuration
in interfaceActivityInstanceQuery
-
orderByActivityInstanceEndTime
public ActivityInstanceQueryImpl orderByActivityInstanceEndTime()
Description copied from interface:ActivityInstanceQuery
Order by end (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityInstanceEndTime
in interfaceActivityInstanceQuery
-
orderByExecutionId
public ActivityInstanceQueryImpl orderByExecutionId()
Description copied from interface:ActivityInstanceQuery
Order by executionId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByExecutionId
in interfaceActivityInstanceQuery
-
orderByActivityInstanceId
public ActivityInstanceQueryImpl orderByActivityInstanceId()
Description copied from interface:ActivityInstanceQuery
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityInstanceId
in interfaceActivityInstanceQuery
-
orderByProcessDefinitionId
public ActivityInstanceQueryImpl orderByProcessDefinitionId()
Description copied from interface:ActivityInstanceQuery
Order by processDefinitionId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionId
in interfaceActivityInstanceQuery
-
orderByProcessInstanceId
public ActivityInstanceQueryImpl orderByProcessInstanceId()
Description copied from interface:ActivityInstanceQuery
Order by processInstanceId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceId
in interfaceActivityInstanceQuery
-
orderByActivityInstanceStartTime
public ActivityInstanceQueryImpl orderByActivityInstanceStartTime()
Description copied from interface:ActivityInstanceQuery
Order by start (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityInstanceStartTime
in interfaceActivityInstanceQuery
-
orderByActivityId
public ActivityInstanceQuery orderByActivityId()
Description copied from interface:ActivityInstanceQuery
Order by activityId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityId
in interfaceActivityInstanceQuery
-
orderByActivityName
public ActivityInstanceQueryImpl orderByActivityName()
Description copied from interface:ActivityInstanceQuery
Order by activityName (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityName
in interfaceActivityInstanceQuery
-
orderByActivityType
public ActivityInstanceQueryImpl orderByActivityType()
Description copied from interface:ActivityInstanceQuery
Order by activityType (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityType
in interfaceActivityInstanceQuery
-
orderByTenantId
public ActivityInstanceQueryImpl orderByTenantId()
Description copied from interface:ActivityInstanceQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTenantId
in interfaceActivityInstanceQuery
-
activityInstanceId
public ActivityInstanceQueryImpl activityInstanceId(String 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
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()
-
-