Modifier and Type | Method and Description |
---|---|
JobQuery |
active()
Only select jobs that are not suspended.
|
JobQuery |
activityId(String activityId)
Only select jobs which are defined on an activity with the given id.
|
JobQuery |
createdAfter(Date date)
Only select jobs created after the given date.
|
JobQuery |
createdBefore(Date date)
Only select jobs created before the given date.
|
JobQuery |
duedateHigherThan(Date date)
Only select jobs where the duedate is higher then the given date.
|
JobQuery |
duedateHigherThen(Date date)
Deprecated.
|
JobQuery |
duedateHigherThenOrEquals(Date date)
Deprecated.
|
JobQuery |
duedateLowerThan(Date date)
Only select jobs where the duedate is lower than the given date.
|
JobQuery |
duedateLowerThen(Date date)
Deprecated.
|
JobQuery |
duedateLowerThenOrEquals(Date date)
Deprecated.
|
JobQuery |
exceptionMessage(String exceptionMessage)
Only select jobs that failed due to an exception with the given message.
|
JobQuery |
executable()
Only select jobs which are executable,
ie.
|
JobQuery |
executionId(String executionId)
Only select jobs which exist for the given execution
|
JobQuery |
failedActivityId(String activityId)
Only select jobs that failed due to an exception at an activity with the given id.
|
JobQuery |
includeJobsWithoutTenantId()
Select jobs which have no tenant id.
|
JobQuery |
jobDefinitionId(String jobDefinitionId)
Only select jobs which exist for the given job definition id.
|
JobQuery |
jobId(String jobId)
Only select jobs with the given id
|
JobQuery |
jobIds(Set<String> ids)
Only select jobs whose id is in the given set of ids
|
JobQuery |
messages()
Only select jobs that are messages.
|
JobQuery |
noRetriesLeft()
Only select jobs which have no retries left
|
JobQuery |
orderByExecutionId()
Order by execution id (needs to be followed by
Query.asc() or Query.desc() ). |
JobQuery |
orderByJobDuedate()
Order by duedate (needs to be followed by
Query.asc() or Query.desc() ). |
JobQuery |
orderByJobId()
Order by job id (needs to be followed by
Query.asc() or Query.desc() ). |
JobQuery |
orderByJobPriority()
Order by priority for execution (needs to be followed by
Query.asc() or Query.desc() ). |
JobQuery |
orderByJobRetries()
Order by retries (needs to be followed by
Query.asc() or Query.desc() ). |
JobQuery |
orderByProcessDefinitionId()
Order by process definition id (needs to be followed by
Query.asc() or Query.desc() ). |
JobQuery |
orderByProcessDefinitionKey()
Order by process definition key (needs to be followed by
Query.asc() or Query.desc() ). |
JobQuery |
orderByProcessInstanceId()
Order by process instance id (needs to be followed by
Query.asc() or Query.desc() ). |
JobQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc() ). |
JobQuery |
priorityHigherThanOrEquals(long priority)
Only select jobs with a priority that is higher than or equal to the given priority.
|
JobQuery |
priorityLowerThanOrEquals(long priority)
Only select jobs with a priority that is lower than or equal to the given priority.
|
JobQuery |
processDefinitionId(String processDefinitionId)
Only select jobs which exist for the given process definition id.
|
JobQuery |
processDefinitionKey(String processDefinitionKey)
Only select jobs which exist for the given process definition key.
|
JobQuery |
processInstanceId(String processInstanceId)
Only select jobs which exist for the given process instance.
|
JobQuery |
processInstanceIds(Set<String> processInstanceIds)
Only select jobs which exist for any of the given process instance ids
|
JobQuery |
suspended()
Only select jobs that are suspended.
|
JobQuery |
tenantIdIn(String... tenantIds)
Only select jobs that belong to one of the given tenant ids.
|
JobQuery |
timers()
Only select jobs that are timers.
|
JobQuery |
withException()
Only select jobs that failed due to an exception.
|
JobQuery |
withoutTenantId()
Only select jobs which have no tenant id.
|
JobQuery |
withRetriesLeft()
Only select jobs which have retries left
|
asc, count, desc, list, listPage, singleResult, unlimitedList
JobQuery jobDefinitionId(String jobDefinitionId)
JobQuery processInstanceId(String processInstanceId)
JobQuery processInstanceIds(Set<String> processInstanceIds)
JobQuery processDefinitionId(String processDefinitionId)
JobQuery processDefinitionKey(String processDefinitionKey)
JobQuery executionId(String executionId)
JobQuery activityId(String activityId)
JobQuery withRetriesLeft()
JobQuery executable()
JobQuery timers()
messages()
JobQuery messages()
timers()
JobQuery duedateLowerThan(Date date)
JobQuery duedateHigherThan(Date date)
@Deprecated JobQuery duedateLowerThen(Date date)
@Deprecated JobQuery duedateLowerThenOrEquals(Date date)
@Deprecated JobQuery duedateHigherThen(Date date)
@Deprecated JobQuery duedateHigherThenOrEquals(Date date)
JobQuery priorityHigherThanOrEquals(long priority)
JobQuery priorityLowerThanOrEquals(long priority)
JobQuery withException()
JobQuery exceptionMessage(String exceptionMessage)
JobQuery failedActivityId(String activityId)
JobQuery noRetriesLeft()
JobQuery active()
JobQuery suspended()
JobQuery tenantIdIn(String... tenantIds)
JobQuery withoutTenantId()
JobQuery includeJobsWithoutTenantId()
tenantIdIn(String...)
.JobQuery orderByJobId()
Query.asc()
or Query.desc()
).JobQuery orderByJobDuedate()
Query.asc()
or Query.desc()
).JobQuery orderByJobRetries()
Query.asc()
or Query.desc()
).JobQuery orderByJobPriority()
Query.asc()
or Query.desc()
).JobQuery orderByProcessInstanceId()
Query.asc()
or Query.desc()
).JobQuery orderByProcessDefinitionId()
Query.asc()
or Query.desc()
).JobQuery orderByProcessDefinitionKey()
Query.asc()
or Query.desc()
).JobQuery orderByExecutionId()
Query.asc()
or Query.desc()
).JobQuery orderByTenantId()
Query.asc()
or Query.desc()
).
Note that the ordering of job without tenant id is database-specific.Copyright © 2021. All rights reserved.