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
public interface BaseJobQuery<U extends BaseJobQuery<U,T>,T extends Job> extends Query<U,T>
Allows programmatic querying ofJobs. Summarizes the base query params for all JobQuery classes exceptHistoryJobQuery- Author:
- Christopher Welsch
-
-
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 UcaseDefinitionId(String caseDefinitionId)Only select jobs for the given case definition.UcaseInstanceId(String caseInstanceId)Only select jobs for the given case instance.Ucategory(String category)Only select jobs which exist for the given categoryUcategoryLike(String categoryLike)Only select jobs like for the given category valueUcorrelationId(String correlationId)Only select jobs with the given correlationId.UduedateHigherThan(Date date)Only select jobs where the duedate is higher then the given date.UduedateLowerThan(Date date)Only select jobs where the duedate is lower than the given date.UelementId(String elementId)Only select jobs which exist for the given element idUelementName(String elementName)Only select jobs which exist for the given element nameUexceptionMessage(String exceptionMessage)Only select jobs that failed due to an exception with the given message.UexecutionId(String executionId)Only select jobs which exist for the given executionUhandlerType(String handlerType)Select jobs which have given job handler typeUhandlerTypes(Collection<String> handlerTypes)Select jobs which have one of the given job handler typeUjobId(String jobId)Only select jobs with the given idUjobIds(Collection<String> jobIds)Only select jobs with the given ids.UjobTenantId(String tenantId)Only select jobs that have the given tenant id.UjobTenantIdLike(String tenantIdLike)Only select jobs with a tenant id like the given one.UjobWithoutTenantId()Only select jobs that do not have a tenant id.UorderByExecutionId()Order by execution id (needs to be followed byQuery.asc()orQuery.desc()).UorderByJobCreateTime()Order by create time (needs to be followed byQuery.asc()orQuery.desc()).UorderByJobDuedate()Order by duedate (needs to be followed byQuery.asc()orQuery.desc()).UorderByJobId()Order by job id (needs to be followed byQuery.asc()orQuery.desc()).UorderByJobRetries()Order by retries (needs to be followed byQuery.asc()orQuery.desc()).UorderByProcessInstanceId()Order by process instance id (needs to be followed byQuery.asc()orQuery.desc()).UorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).UplanItemInstanceId(String planItemInstanceId)Only select jobs for the given plan item instance.UprocessDefinitionId(String processDefinitionId)Only select jobs which exist for the given process definition idUprocessInstanceId(String processInstanceId)Only select jobs which exist for the given process instance.UscopeDefinitionId(String scopeDefinitionId)Only select tasks for the given scope definition identifier.UscopeId(String scopeId)Only select tasks for the given scope identifier.UscopeType(String scopeType)Only select tasks for the given scope type.UsubScopeId(String subScopeId)Only select tasks for the given sub scope identifier.UwithException()Only select jobs that failed due to an exception.UwithoutProcessInstanceId()Only select jobs without a process instance id value.UwithoutScopeId()Only select jobs without a scope id value.UwithoutScopeType()Only return jobs that do not have a scope type.
-
-
-
Method Detail
-
jobIds
U jobIds(Collection<String> jobIds)
Only select jobs with the given ids. If you use jobId(StringjobId) this filter gets ignored.
-
processInstanceId
U processInstanceId(String processInstanceId)
Only select jobs which exist for the given process instance.
-
withoutProcessInstanceId
U withoutProcessInstanceId()
Only select jobs without a process instance id value.
-
handlerTypes
U handlerTypes(Collection<String> handlerTypes)
Select jobs which have one of the given job handler type
-
processDefinitionId
U processDefinitionId(String processDefinitionId)
Only select jobs which exist for the given process definition id
-
categoryLike
U categoryLike(String categoryLike)
Only select jobs like for the given category value
-
elementName
U elementName(String elementName)
Only select jobs which exist for the given element name
-
withoutScopeId
U withoutScopeId()
Only select jobs without a scope id value.
-
withoutScopeType
U withoutScopeType()
Only return jobs that do not have a scope type.
-
scopeDefinitionId
U scopeDefinitionId(String scopeDefinitionId)
Only select tasks for the given scope definition identifier.
-
caseInstanceId
U caseInstanceId(String caseInstanceId)
Only select jobs for the given case instance.
-
caseDefinitionId
U caseDefinitionId(String caseDefinitionId)
Only select jobs for the given case definition.
-
planItemInstanceId
U planItemInstanceId(String planItemInstanceId)
Only select jobs for the given plan item instance.
-
duedateLowerThan
U duedateLowerThan(Date date)
Only select jobs where the duedate is lower than the given date.
-
duedateHigherThan
U duedateHigherThan(Date date)
Only select jobs where the duedate is higher then the given date.
-
withException
U withException()
Only select jobs that failed due to an exception.
-
exceptionMessage
U exceptionMessage(String exceptionMessage)
Only select jobs that failed due to an exception with the given message.
-
jobTenantIdLike
U jobTenantIdLike(String tenantIdLike)
Only select jobs with a tenant id like the given one.
-
jobWithoutTenantId
U jobWithoutTenantId()
Only select jobs that do not have a tenant id.
-
orderByJobId
U orderByJobId()
Order by job id (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByJobDuedate
U orderByJobDuedate()
Order by duedate (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByJobCreateTime
U orderByJobCreateTime()
Order by create time (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByJobRetries
U orderByJobRetries()
Order by retries (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByProcessInstanceId
U orderByProcessInstanceId()
Order by process instance id (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByExecutionId
U orderByExecutionId()
Order by execution id (needs to be followed byQuery.asc()orQuery.desc()).
-
orderByTenantId
U orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).
-
-