Interface ExternalTaskQuery
-
- All Superinterfaces:
Query<ExternalTaskQuery,ExternalTask>
- All Known Implementing Classes:
ExternalTaskQueryImpl
public interface ExternalTaskQuery extends Query<ExternalTaskQuery,ExternalTask>
- Author:
- Thorben Lindhauer, Christopher Zell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExternalTaskQuery
active()
Only select external tasks that are currently not suspendedExternalTaskQuery
activityId(java.lang.String activityId)
Only select external tasks that belong to an instance of the given activityExternalTaskQuery
activityIdIn(java.lang.String... activityIdIn)
Only select external tasks that belong to an instances of the given activities.ExternalTaskQuery
executionId(java.lang.String executionId)
Only select external tasks created in the context of the given executionExternalTaskQuery
externalTaskId(java.lang.String externalTaskId)
Only select the external task with the given idExternalTaskQuery
externalTaskIdIn(java.util.Set<java.lang.String> externalTaskIds)
Only select external tasks with any of the given idsExternalTaskQuery
locked()
Only select external tasks that are currently locked, i.e.ExternalTaskQuery
lockExpirationAfter(java.util.Date lockExpirationDate)
Only select external tasks that have a lock expiring after the given dateExternalTaskQuery
lockExpirationBefore(java.util.Date lockExpirationDate)
Only select external tasks that have a lock expiring before the given dateExternalTaskQuery
noRetriesLeft()
Only select external tasks that have retries = 0ExternalTaskQuery
notLocked()
Only select external tasks that are not currently locked, i.e.ExternalTaskQuery
orderById()
Order by external task id (needs to be followed byQuery.asc()
orQuery.desc()
).ExternalTaskQuery
orderByLockExpirationTime()
Order by lock expiration time (needs to be followed byQuery.asc()
orQuery.desc()
).ExternalTaskQuery
orderByPriority()
Order by priority (needs to be followed byQuery.asc()
orQuery.desc()
).ExternalTaskQuery
orderByProcessDefinitionId()
Order by process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).ExternalTaskQuery
orderByProcessDefinitionKey()
Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).ExternalTaskQuery
orderByProcessInstanceId()
Order by process instance id (needs to be followed byQuery.asc()
orQuery.desc()
).ExternalTaskQuery
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).ExternalTaskQuery
priorityHigherThanOrEquals(long priority)
Only select external tasks with a priority that is higher than or equal to the given priority.ExternalTaskQuery
priorityLowerThanOrEquals(long priority)
Only select external tasks with a priority that is lower than or equal to the given priority.ExternalTaskQuery
processDefinitionId(java.lang.String processDefinitionId)
Only select external tasks that belong to an instance of the given process definitionExternalTaskQuery
processInstanceId(java.lang.String processInstanceId)
Only select external tasks created in the context of the given process instanceExternalTaskQuery
processInstanceIdIn(java.lang.String... processInstanceIdIn)
Only select external tasks created in the context of the given process instancesExternalTaskQuery
suspended()
Only select external tasks that are currently suspendedExternalTaskQuery
tenantIdIn(java.lang.String... tenantIds)
Only select external tasks that belong to one of the given tenant ids.ExternalTaskQuery
topicName(java.lang.String topicName)
Only select external tasks of the given topicExternalTaskQuery
withRetriesLeft()
Only select external tasks that have retries > 0ExternalTaskQuery
workerId(java.lang.String workerId)
Only select external tasks that was most recently locked by the given worker-
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
-
-
-
Method Detail
-
externalTaskId
ExternalTaskQuery externalTaskId(java.lang.String externalTaskId)
Only select the external task with the given id
-
externalTaskIdIn
ExternalTaskQuery externalTaskIdIn(java.util.Set<java.lang.String> externalTaskIds)
Only select external tasks with any of the given ids
-
workerId
ExternalTaskQuery workerId(java.lang.String workerId)
Only select external tasks that was most recently locked by the given worker
-
lockExpirationBefore
ExternalTaskQuery lockExpirationBefore(java.util.Date lockExpirationDate)
Only select external tasks that have a lock expiring before the given date
-
lockExpirationAfter
ExternalTaskQuery lockExpirationAfter(java.util.Date lockExpirationDate)
Only select external tasks that have a lock expiring after the given date
-
topicName
ExternalTaskQuery topicName(java.lang.String topicName)
Only select external tasks of the given topic
-
locked
ExternalTaskQuery locked()
Only select external tasks that are currently locked, i.e. that have a lock expiration time that is in the future
-
notLocked
ExternalTaskQuery notLocked()
Only select external tasks that are not currently locked, i.e. that have no lock expiration time or one that is overdue
-
executionId
ExternalTaskQuery executionId(java.lang.String executionId)
Only select external tasks created in the context of the given execution
-
processInstanceId
ExternalTaskQuery processInstanceId(java.lang.String processInstanceId)
Only select external tasks created in the context of the given process instance
-
processInstanceIdIn
ExternalTaskQuery processInstanceIdIn(java.lang.String... processInstanceIdIn)
Only select external tasks created in the context of the given process instances
-
processDefinitionId
ExternalTaskQuery processDefinitionId(java.lang.String processDefinitionId)
Only select external tasks that belong to an instance of the given process definition
-
activityId
ExternalTaskQuery activityId(java.lang.String activityId)
Only select external tasks that belong to an instance of the given activity
-
activityIdIn
ExternalTaskQuery activityIdIn(java.lang.String... activityIdIn)
Only select external tasks that belong to an instances of the given activities.
-
priorityHigherThanOrEquals
ExternalTaskQuery priorityHigherThanOrEquals(long priority)
Only select external tasks with a priority that is higher than or equal to the given priority.- Parameters:
priority
- the priority which is used for the query- Returns:
- the builded external task query
- Since:
- 7.5
-
priorityLowerThanOrEquals
ExternalTaskQuery priorityLowerThanOrEquals(long priority)
Only select external tasks with a priority that is lower than or equal to the given priority.- Parameters:
priority
- the priority which is used for the query- Returns:
- the builded external task query
- Since:
- 7.5
-
suspended
ExternalTaskQuery suspended()
Only select external tasks that are currently suspended
-
active
ExternalTaskQuery active()
Only select external tasks that are currently not suspended
-
withRetriesLeft
ExternalTaskQuery withRetriesLeft()
Only select external tasks that have retries > 0
-
noRetriesLeft
ExternalTaskQuery noRetriesLeft()
Only select external tasks that have retries = 0
-
tenantIdIn
ExternalTaskQuery tenantIdIn(java.lang.String... tenantIds)
Only select external tasks that belong to one of the given tenant ids.
-
orderById
ExternalTaskQuery orderById()
Order by external task id (needs to be followed byQuery.asc()
orQuery.desc()
).
-
orderByLockExpirationTime
ExternalTaskQuery orderByLockExpirationTime()
Order by lock expiration time (needs to be followed byQuery.asc()
orQuery.desc()
). Ordering of tasks with no lock expiration time is database-dependent.
-
orderByProcessInstanceId
ExternalTaskQuery orderByProcessInstanceId()
Order by process instance id (needs to be followed byQuery.asc()
orQuery.desc()
).
-
orderByProcessDefinitionId
ExternalTaskQuery orderByProcessDefinitionId()
Order by process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).
-
orderByProcessDefinitionKey
ExternalTaskQuery orderByProcessDefinitionKey()
Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).
-
orderByTenantId
ExternalTaskQuery orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of external tasks without tenant id is database-specific.
-
orderByPriority
ExternalTaskQuery orderByPriority()
Order by priority (needs to be followed byQuery.asc()
orQuery.desc()
).- Since:
- 7.5
-
-