Package org.flowable.job.api
Interface SuspendedJobQuery
- All Superinterfaces:
BaseJobQuery<SuspendedJobQuery,
,Job> org.flowable.common.engine.api.query.Query<SuspendedJobQuery,
Job>
Allows programmatic querying of
Job
s.- Author:
- Joram Barrez, Tijs Rademakers
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
org.flowable.common.engine.api.query.Query.NullHandlingOnOrder
-
Method Summary
Modifier and TypeMethodDescriptionOnly select jobs which are executable, ie. retries > 0 and duedate is null or duedate is in the pastOnly select external worker jobs.messages()
Only select jobs that are messages.Only select jobs which have no retries lefttimers()
Only select jobs that are timers.Only select jobs which have retries leftMethods inherited from interface org.flowable.job.api.BaseJobQuery
caseDefinitionId, caseDefinitionKey, caseInstanceId, category, categoryLike, correlationId, duedateHigherThan, duedateLowerThan, elementId, elementName, exceptionMessage, executionId, handlerType, handlerTypes, jobId, jobIds, jobTenantId, jobTenantIdLike, jobWithoutTenantId, orderByExecutionId, orderByJobCreateTime, orderByJobDuedate, orderByJobId, orderByJobRetries, orderByProcessInstanceId, orderByTenantId, planItemInstanceId, processDefinitionId, processDefinitionKey, processInstanceId, scopeDefinitionId, scopeId, scopeType, subScopeId, withException, withoutProcessInstanceId, withoutScopeId, withoutScopeType
Methods inherited from interface org.flowable.common.engine.api.query.Query
asc, count, desc, list, listPage, orderBy, orderBy, singleResult
-
Method Details
-
withRetriesLeft
SuspendedJobQuery withRetriesLeft()Only select jobs which have retries left -
noRetriesLeft
SuspendedJobQuery noRetriesLeft()Only select jobs which have no retries left -
executable
SuspendedJobQuery executable()Only select jobs which are executable, ie. retries > 0 and duedate is null or duedate is in the past -
timers
SuspendedJobQuery timers()Only select jobs that are timers. Cannot be used together withmessages()
orexternalWorkers()
-
messages
SuspendedJobQuery messages()Only select jobs that are messages. Cannot be used together withtimers()
orexternalWorkers()
-
externalWorkers
SuspendedJobQuery externalWorkers()Only select external worker jobs. Cannot be used together withtimers()
ormessages()
-