Method Summary 
All Methods Instance Methods Abstract Methods 
Only select external tasks that are currently not suspended
 
Only select external tasks that belong to an instance of the given activity
 
Only select external tasks that belong to an instances of the given activities.
 
Only select external tasks created in the context of the given execution
 
Only select the external task with the given id
 
Only select external tasks with any of the given ids
 
Only select external tasks that are currently locked, i.e.
 
Only select external tasks that have a lock expiring after the given date
 
Only select external tasks that have a lock expiring before the given date
 
Only select external tasks that have retries = 0
 
Only select external tasks that are not currently locked, i.e.
 
Only select external tasks with a priority that is higher than or equal to the given priority.
 
Only select external tasks with a priority that is lower than or equal to the given priority.
 
Only select external tasks that belong to an instance of the given process definition
 
Only select external tasks created in the context of the given process instance
 
Only select external tasks created in the context of the given process instances
 
Only select external tasks that are currently suspended
 
Only select external tasks that belong to one of the given tenant ids.
 
Only select external tasks of the given topic
 
Only select external tasks that have retries > 0
 
Only select external tasks that was most recently locked by the given worker
 
 
 
 
 
 
 
 
Method Details 
externalTaskId 
Only select the external task with the given id
 
 
externalTaskIdIn 
Only select external tasks with any of the given ids
 
 
workerId 
Only select external tasks that was most recently locked by the given worker
 
 
lockExpirationBefore 
Only select external tasks that have a lock expiring before the given date
 
 
lockExpirationAfter 
Only select external tasks that have a lock expiring after the given date
 
 
topicName 
Only select external tasks of the given topic
 
 
locked 
Only select external tasks that are currently locked, i.e. that have a lock expiration
 time that is in the future
 
 
notLocked 
Only select external tasks that are not currently locked, i.e. that have no
 lock expiration time or one that is overdue
 
 
executionId 
Only select external tasks created in the context of the given execution
 
 
processInstanceId 
Only select external tasks created in the context of the given process instance
 
 
processInstanceIdIn 
Only select external tasks created in the context of the given process instances
 
 
processDefinitionId 
Only select external tasks that belong to an instance of the given process definition
 
 
activityId 
Only select external tasks that belong to an instance of the given activity
 
 
activityIdIn 
Only select external tasks that belong to an instances of the given activities.
 
 
priorityHigherThanOrEquals 
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 queryReturns: 
the builded external task query 
Since: 
7.5 
 
 
 
priorityLowerThanOrEquals 
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 queryReturns: 
the builded external task query 
Since: 
7.5 
 
 
 
suspended 
Only select external tasks that are currently suspended
 
 
active 
Only select external tasks that are currently not suspended
 
 
withRetriesLeft 
Only select external tasks that have retries > 0
 
 
noRetriesLeft 
Only select external tasks that have retries = 0
 
 
tenantIdIn 
Only select external tasks that belong to one of the given tenant ids.
 
 
 
orderByLockExpirationTime 
Order by lock expiration time (needs to be followed by 
Query.asc() or 
Query.desc()).
 Ordering of tasks with no lock expiration time is database-dependent.
 
 
 
orderByProcessDefinitionId 
 
 
orderByProcessDefinitionKey 
 
 
orderByTenantId 
Order by tenant id (needs to be followed by 
Query.asc() or 
Query.desc()).
 Note that the ordering of external tasks without tenant id is database-specific.
 
 
orderByPriority 
Since: 
7.5