Package org.flowable.job.api
Interface BaseJobQuery<U extends BaseJobQuery<U,T>,T extends Job>  
- All Superinterfaces:
- Query<U,- T> 
- All Known Subinterfaces:
- DeadLetterJobQuery,- ExternalWorkerJobQuery,- JobQuery,- SuspendedJobQuery,- TimerJobQuery
- All Known Implementing Classes:
- DeadLetterJobQueryImpl,- ExternalWorkerJobQueryImpl,- JobQueryImpl,- SuspendedJobQueryImpl,- TimerJobQueryImpl
Allows programmatic querying of 
Jobs.
 Summarizes the base query params for all JobQuery classes except HistoryJobQuery- Author:
- Christopher Welsch
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.QueryQuery.NullHandlingOnOrder
- 
Method SummaryModifier and TypeMethodDescriptioncaseDefinitionId(String caseDefinitionId) Only select jobs for the given case definition.caseDefinitionKey(String caseDefinitionKey) Only select tasks for the given case definition key.caseInstanceId(String caseInstanceId) Only select jobs for the given case instance.Only select jobs which exist for the given categorycategoryLike(String categoryLike) Only select jobs like for the given category valuecorrelationId(String correlationId) Only select jobs with the given correlationId.duedateHigherThan(Date date) Only select jobs where the duedate is higher then the given date.duedateLowerThan(Date date) Only select jobs where the duedate is lower than the given date.Only select jobs which exist for the given element idelementName(String elementName) Only select jobs which exist for the given element nameexceptionMessage(String exceptionMessage) Only select jobs that failed due to an exception with the given message.executionId(String executionId) Only select jobs which exist for the given executionhandlerType(String handlerType) Select jobs which have given job handler typehandlerTypes(Collection<String> handlerTypes) Select jobs which have one of the given job handler typeOnly select jobs with the given idjobIds(Collection<String> jobIds) Only select jobs with the given ids.jobTenantId(String tenantId) Only select jobs that have the given tenant id.jobTenantIdLike(String tenantIdLike) Only select jobs with a tenant id like the given one.Only select jobs that do not have a tenant id.Order by execution id (needs to be followed byQuery.asc()orQuery.desc()).Order by create time (needs to be followed byQuery.asc()orQuery.desc()).Order by duedate (needs to be followed byQuery.asc()orQuery.desc()).Order by job id (needs to be followed byQuery.asc()orQuery.desc()).Order by retries (needs to be followed byQuery.asc()orQuery.desc()).Order by process instance id (needs to be followed byQuery.asc()orQuery.desc()).Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).planItemInstanceId(String planItemInstanceId) Only select jobs for the given plan item instance.processDefinitionId(String processDefinitionId) Only select jobs which exist for the given process definition idprocessDefinitionKey(String processDefinitionKey) Only select jobs which exist for the given process definition keyprocessInstanceId(String processInstanceId) Only select jobs which exist for the given process instance.scopeDefinitionId(String scopeDefinitionId) Only select tasks for the given scope definition identifier.Only select tasks for the given scope identifier.Only select tasks for the given scope type.subScopeId(String subScopeId) Only select tasks for the given sub scope identifier.Only select jobs that failed due to an exception.Only select jobs without a process instance id value.Only select jobs without a scope id value.Only return jobs that do not have a scope type.
- 
Method Details- 
jobIdOnly select jobs with the given id
- 
jobIdsOnly select jobs with the given ids. If you use jobId(StringjobId) this filter gets ignored.
- 
processInstanceIdOnly select jobs which exist for the given process instance.
- 
withoutProcessInstanceIdU withoutProcessInstanceId()Only select jobs without a process instance id value.
- 
executionIdOnly select jobs which exist for the given execution
- 
handlerTypeSelect jobs which have given job handler type
- 
handlerTypesSelect jobs which have one of the given job handler type
- 
processDefinitionIdOnly select jobs which exist for the given process definition id
- 
processDefinitionKeyOnly select jobs which exist for the given process definition key
- 
categoryOnly select jobs which exist for the given category
- 
categoryLikeOnly select jobs like for the given category value
- 
elementIdOnly select jobs which exist for the given element id
- 
elementNameOnly select jobs which exist for the given element name
- 
scopeIdOnly select tasks for the given scope identifier.
- 
withoutScopeIdU withoutScopeId()Only select jobs without a scope id value.
- 
subScopeIdOnly select tasks for the given sub scope identifier.
- 
scopeTypeOnly select tasks for the given scope type.
- 
withoutScopeTypeU withoutScopeType()Only return jobs that do not have a scope type.
- 
scopeDefinitionIdOnly select tasks for the given scope definition identifier.
- 
caseDefinitionKeyOnly select tasks for the given case definition key.
- 
caseInstanceIdOnly select jobs for the given case instance.
- 
caseDefinitionIdOnly select jobs for the given case definition.
- 
planItemInstanceIdOnly select jobs for the given plan item instance.
- 
correlationIdOnly select jobs with the given correlationId.
- 
duedateLowerThanOnly select jobs where the duedate is lower than the given date.
- 
duedateHigherThanOnly select jobs where the duedate is higher then the given date.
- 
withExceptionU withException()Only select jobs that failed due to an exception.
- 
exceptionMessageOnly select jobs that failed due to an exception with the given message.
- 
jobTenantIdOnly select jobs that have the given tenant id.
- 
jobTenantIdLikeOnly select jobs with a tenant id like the given one.
- 
jobWithoutTenantIdU jobWithoutTenantId()Only select jobs that do not have a tenant id.
- 
orderByJobIdU orderByJobId()Order by job id (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByJobDuedateU orderByJobDuedate()Order by duedate (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByJobCreateTimeU orderByJobCreateTime()Order by create time (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByJobRetriesU orderByJobRetries()Order by retries (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByProcessInstanceIdU orderByProcessInstanceId()Order by process instance id (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByExecutionIdU orderByExecutionId()Order by execution id (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByTenantIdU orderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).
 
-