public interface CmmnManagementService
| Modifier and Type | Method and Description |
|---|---|
DeadLetterJobQuery |
createDeadLetterJobQuery()
Returns a new DeadLetterJobQuery implementation, that can be used to query the dead letter jobs.
|
HistoryJobQuery |
createHistoryJobQuery()
Returns a new HistoryJobQuery implementation, that can be used to dynamically query the history jobs.
|
JobQuery |
createJobQuery()
Returns a new JobQuery implementation, that can be used to query the jobs.
|
SuspendedJobQuery |
createSuspendedJobQuery()
Returns a new SuspendedJobQuery implementation, that can be used to query the suspended jobs.
|
TimerJobQuery |
createTimerJobQuery()
Returns a new TimerJobQuery implementation, that can be used to query the timer jobs.
|
void |
deleteDeadLetterJob(String jobId)
Delete the dead letter job with the provided id.
|
void |
deleteJob(String jobId)
Delete the job with the provided id.
|
void |
deleteSuspendedJob(String jobId)
Delete the suspended job with the provided id.
|
void |
deleteTimerJob(String jobId)
Delete the timer job with the provided id.
|
void |
executeHistoryJob(String historyJobId)
Forced synchronous execution of a historyJob (eg.
|
void |
executeJob(String jobId)
Forced synchronous execution of a job (eg.
|
String |
getDeadLetterJobExceptionStacktrace(String jobId)
Returns the full stacktrace of the exception that occurs when the deadletter job with the given id was last executed.
|
String |
getJobExceptionStacktrace(String jobId)
Returns the full stacktrace of the exception that occurs when the job with the given id was last executed.
|
String |
getSuspendedJobExceptionStacktrace(String jobId)
Returns the full stacktrace of the exception that occurs when the suspended with the given id was last executed.
|
Map<String,Long> |
getTableCounts()
Returns a map containing {tableName, rowCount} values.
|
Collection<String> |
getTableNames()
Returns all relational database tables of the engine.
|
String |
getTimerJobExceptionStacktrace(String jobId)
Returns the full stacktrace of the exception that occurs when the timer job with the given id was last executed.
|
Job |
moveDeadLetterJobToExecutableJob(String jobId,
int retries)
Moves a job that is in the dead letter job table back to be an executable job,
and resetting the retries (as the retries were probably 0 when it was put into the dead letter job table).
|
Job |
moveJobToDeadLetterJob(String jobId)
Moves a job to the dead letter job table (eg.
|
Job |
moveTimerToExecutableJob(String jobId)
Moves a timer job to the executable job table (eg.
|
void |
setJobRetries(String jobId,
int retries)
Sets the number of retries that a job has left.
|
void |
setTimerJobRetries(String jobId,
int retries)
Sets the number of retries that a timer job has left.
|
Map<String,Long> getTableCounts()
Collection<String> getTableNames()
JobQuery createJobQuery()
TimerJobQuery createTimerJobQuery()
SuspendedJobQuery createSuspendedJobQuery()
DeadLetterJobQuery createDeadLetterJobQuery()
void executeJob(String jobId)
jobId - id of the job to execute, cannot be null.FlowableObjectNotFoundException - when there is no job with the given id.Job moveTimerToExecutableJob(String jobId)
jobId - id of the timer job to move, cannot be null.FlowableObjectNotFoundException - when there is no job with the given id.Job moveJobToDeadLetterJob(String jobId)
jobId - id of the job to move, cannot be null.FlowableObjectNotFoundException - when there is no job with the given id.Job moveDeadLetterJobToExecutableJob(String jobId, int retries)
jobId - id of the job to move, cannot be null.retries - the number of retries (value greater than 0) which will be set on the job.FlowableObjectNotFoundException - when there is no job with the given id.void deleteJob(String jobId)
jobId - id of the job to delete, cannot be null.FlowableObjectNotFoundException - when there is no job with the given id.void deleteTimerJob(String jobId)
jobId - id of the timer job to delete, cannot be null.FlowableObjectNotFoundException - when there is no job with the given id.void deleteSuspendedJob(String jobId)
jobId - id of the suspended job to delete, cannot be null.FlowableObjectNotFoundException - when there is no job with the given id.void deleteDeadLetterJob(String jobId)
jobId - id of the dead letter job to delete, cannot be null.FlowableObjectNotFoundException - when there is no job with the given id.void setJobRetries(String jobId, int retries)
jobId - id of the job to modify, cannot be null.retries - number of retries.void setTimerJobRetries(String jobId, int retries)
jobId - id of the timer job to modify, cannot be null.retries - number of retries.String getJobExceptionStacktrace(String jobId)
jobId - id of the job, cannot be null.FlowableObjectNotFoundException - when no job exists with the given id.String getTimerJobExceptionStacktrace(String jobId)
jobId - id of the job, cannot be null.FlowableObjectNotFoundException - when no job exists with the given id.String getSuspendedJobExceptionStacktrace(String jobId)
jobId - id of the job, cannot be null.FlowableObjectNotFoundException - when no job exists with the given id.String getDeadLetterJobExceptionStacktrace(String jobId)
jobId - id of the job, cannot be null.FlowableObjectNotFoundException - when no job exists with the given id.HistoryJobQuery createHistoryJobQuery()
void executeHistoryJob(String historyJobId)
historyJobId - id of the historyjob to execute, cannot be null.FlowableObjectNotFoundException - when there is no historyJob with the given id.Copyright © 2019 Flowable. All rights reserved.