Package org.flowable.engine.runtime
Interface ActivityInstanceQuery
-
- All Superinterfaces:
Query<ActivityInstanceQuery,ActivityInstance>
- All Known Implementing Classes:
ActivityInstanceQueryImpl
public interface ActivityInstanceQuery extends Query<ActivityInstanceQuery,ActivityInstance>
Programmatic querying forActivityInstances.- Author:
- martin.grofcik
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActivityInstanceQueryactivityId(String activityId)Only select activity instances for the given activity (id from BPMN 2.0 XML)ActivityInstanceQueryactivityInstanceId(String activityInstanceId)Only select activity instances with the given id (primary key within history tables).ActivityInstanceQueryactivityName(String activityName)Only select activity instances for activities with the given nameActivityInstanceQueryactivityTenantId(String tenantId)Only select activity instances that have the given tenant id.ActivityInstanceQueryactivityTenantIdLike(String tenantIdLike)Only select activity instances with a tenant id like the given one.ActivityInstanceQueryactivityType(String activityType)Only select activity instances for activities with the given activity typeActivityInstanceQueryactivityWithoutTenantId()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.ActivityInstanceQueryexecutionId(String executionId)Only select activity instances for the given executionActivityInstanceQueryfinished()Only select activity instances that are finished.ActivityInstanceQueryorderByActivityId()Order by activityId (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryorderByActivityInstanceDuration()Order by duration (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryorderByActivityInstanceEndTime()Order by end (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryorderByActivityInstanceId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryorderByActivityInstanceStartTime()Order by start (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryorderByActivityName()Order by activityName (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryorderByActivityType()Order by activityType (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryorderByExecutionId()Order by executionId (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryorderByProcessDefinitionId()Order by processDefinitionId (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryorderByProcessInstanceId()Order by processInstanceId (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).ActivityInstanceQueryprocessDefinitionId(String processDefinitionId)Only select activity instances for the given process definitionActivityInstanceQueryprocessInstanceId(String processInstanceId)Only select activity instances with the given process instance.ActivityInstanceQuerytaskAssignee(String userId)Only select activity instances for userTask activities assigned to the given userActivityInstanceQueryunfinished()Only select activity instances that are not finished yet.
-
-
-
Method Detail
-
activityInstanceId
ActivityInstanceQuery activityInstanceId(String activityInstanceId)
Only select activity instances with the given id (primary key within history tables).
-
processInstanceId
ActivityInstanceQuery processInstanceId(String processInstanceId)
Only select activity instances with the given process instance.ProcessInstanceids andActivityInstance.getProcessInstanceId()ids match.
-
processDefinitionId
ActivityInstanceQuery processDefinitionId(String processDefinitionId)
Only select activity instances for the given process definition
-
executionId
ActivityInstanceQuery executionId(String executionId)
Only select activity instances for the given execution
-
activityId
ActivityInstanceQuery activityId(String activityId)
Only select activity instances for the given activity (id from BPMN 2.0 XML)
-
activityName
ActivityInstanceQuery activityName(String activityName)
Only select activity instances for activities with the given name
-
activityType
ActivityInstanceQuery activityType(String activityType)
Only select activity instances for activities with the given activity type
-
taskAssignee
ActivityInstanceQuery taskAssignee(String userId)
Only select activity instances for userTask activities assigned to the given user
-
finished
ActivityInstanceQuery finished()
Only select activity instances that are finished.
-
unfinished
ActivityInstanceQuery unfinished()
Only select activity instances that are not finished yet.
-
deleteReason
ActivityInstanceQuery deleteReason(String deleteReason)
Only select activity instances with a specific delete reason.
-
deleteReasonLike
ActivityInstanceQuery deleteReasonLike(String deleteReasonLike)
Only select activity instances with a delete reason that matches the provided parameter.
-
activityTenantId
ActivityInstanceQuery activityTenantId(String tenantId)
Only select activity instances that have the given tenant id.
-
activityTenantIdLike
ActivityInstanceQuery activityTenantIdLike(String tenantIdLike)
Only select activity instances with a tenant id like the given one.
-
activityWithoutTenantId
ActivityInstanceQuery activityWithoutTenantId()
Only select activity instances that do not have a tenant id.
-
orderByActivityInstanceId
ActivityInstanceQuery orderByActivityInstanceId()
Order by id (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByProcessInstanceId
ActivityInstanceQuery orderByProcessInstanceId()
Order by processInstanceId (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByExecutionId
ActivityInstanceQuery orderByExecutionId()
Order by executionId (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByActivityId
ActivityInstanceQuery orderByActivityId()
Order by activityId (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByActivityName
ActivityInstanceQuery orderByActivityName()
Order by activityName (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByActivityType
ActivityInstanceQuery orderByActivityType()
Order by activityType (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByActivityInstanceStartTime
ActivityInstanceQuery orderByActivityInstanceStartTime()
Order by start (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByActivityInstanceEndTime
ActivityInstanceQuery orderByActivityInstanceEndTime()
Order by end (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByActivityInstanceDuration
ActivityInstanceQuery orderByActivityInstanceDuration()
Order by duration (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByProcessDefinitionId
ActivityInstanceQuery orderByProcessDefinitionId()
Order by processDefinitionId (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByTenantId
ActivityInstanceQuery orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).
-
-