Package org.activiti.engine.runtime
Interface SuspendedJobQuery
- All Superinterfaces:
Query<SuspendedJobQuery,Job>
- All Known Implementing Classes:
SuspendedJobQueryImpl
Allows programmatic querying of
Jobs.-
Method Summary
Modifier and TypeMethodDescriptionduedateHigherThan(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.exceptionMessage(String exceptionMessage) Only select jobs that failed due to an exception with the given message.Only select jobs which are executable, ie. retries > 0 and duedate is null or duedate is in the pastexecutionId(String executionId) Only select jobs which exist for the given executionOnly select jobs with the given idjobTenantId(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.messages()Only select jobs that are messages.Only select jobs which have no retries leftOrder by execution id (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()).processDefinitionId(String processDefinitionid) Only select jobs which exist for the given process definition idprocessInstanceId(String processInstanceId) Only select jobs which exist for the given process instance.timers()Only select jobs that are timers.Only select jobs that failed due to an exception.Only select jobs which have retries left
-
Method Details
-
jobId
Only select jobs with the given id -
processInstanceId
Only select jobs which exist for the given process instance. -
executionId
Only select jobs which exist for the given execution -
processDefinitionId
Only select jobs which exist for the given process definition id -
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() -
messages
SuspendedJobQuery messages()Only select jobs that are messages. Cannot be used together withtimers() -
duedateLowerThan
Only select jobs where the duedate is lower than the given date. -
duedateHigherThan
Only select jobs where the duedate is higher then the given date. -
withException
SuspendedJobQuery withException()Only select jobs that failed due to an exception. -
exceptionMessage
Only select jobs that failed due to an exception with the given message. -
jobTenantId
Only select jobs that have the given tenant id. -
jobTenantIdLike
Only select jobs with a tenant id like the given one. -
jobWithoutTenantId
SuspendedJobQuery jobWithoutTenantId()Only select jobs that do not have a tenant id. -
orderByJobId
SuspendedJobQuery orderByJobId()Order by job id (needs to be followed byQuery.asc()orQuery.desc()). -
orderByJobDuedate
SuspendedJobQuery orderByJobDuedate()Order by duedate (needs to be followed byQuery.asc()orQuery.desc()). -
orderByJobRetries
SuspendedJobQuery orderByJobRetries()Order by retries (needs to be followed byQuery.asc()orQuery.desc()). -
orderByProcessInstanceId
SuspendedJobQuery orderByProcessInstanceId()Order by process instance id (needs to be followed byQuery.asc()orQuery.desc()). -
orderByExecutionId
SuspendedJobQuery orderByExecutionId()Order by execution id (needs to be followed byQuery.asc()orQuery.desc()). -
orderByTenantId
SuspendedJobQuery orderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).
-