public interface CmmnManagementService
| Modifier and Type | Method and Description |
|---|---|
void |
bulkMoveDeadLetterJobs(Collection<String> jobIds,
int retries)
Moves a bulk of jobs that are in the dead letter job table back to the executable job table,
and resets the retries (as the retries was 0 when it was put into the dead letter job table).
|
void |
bulkMoveDeadLetterJobsToHistoryJobs(Collection<String> jobIds,
int retries)
Moves a bulk of jobs that are in the dead letter job table back to be history jobs,
and resets the retries (as the retries was 0 when it was put into the dead letter job table).
|
BatchBuilder |
createBatchBuilder() |
BatchPartBuilder |
createBatchPartBuilder(Batch batch) |
BatchPartQuery |
createBatchPartQuery()
Returns a new BatchPartQuery implementation, that can be used to dynamically query the batch parts.
|
BatchQuery |
createBatchQuery()
Returns a new BatchQuery implementation, that can be used to dynamically query the batches.
|
ChangeTenantIdBuilder |
createChangeTenantIdBuilder(String fromTenantId,
String toTenantId)
Create a
ChangeTenantIdBuilder that can be used to change the tenant id of the case instances
and all the related instances. |
CmmnExternalWorkerTransitionBuilder |
createCmmnExternalWorkerTransitionBuilder(String externalJobId,
String workerId)
Create a
CmmnExternalWorkerTransitionBuilder that can be used to transition the status of the external worker job. |
DeadLetterJobQuery |
createDeadLetterJobQuery()
Returns a new DeadLetterJobQuery implementation, that can be used to query the dead letter jobs.
|
ExternalWorkerJobAcquireBuilder |
createExternalWorkerJobAcquireBuilder()
Create an
ExternalWorkerJobAcquireBuilder that can be used to acquire jobs for an external worker. |
ExternalWorkerJobFailureBuilder |
createExternalWorkerJobFailureBuilder(String externalJobId,
String workerId)
Create an
ExternalWorkerJobFailureBuilder that can be used to fail an external worker job. |
ExternalWorkerJobQuery |
createExternalWorkerJobQuery()
Returns a new ExternalWorkerJobQuery implementation, that can be used to dynamically query the external worker 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 |
deleteBatch(String batchId) |
void |
deleteDeadLetterJob(String jobId)
Delete the dead letter job with the provided id.
|
void |
deleteHistoryJob(String jobId)
Delete the history 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 |
getExternalWorkerJobErrorDetails(String jobId)
Returns the full error details that were passed to the External worker
Job when the job was last failed. |
String |
getHistoryJobHistoryJson(String historyJobId)
Get the advanced configuration (storing the history json data) of a
HistoryJob. |
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.
|
void |
handleHistoryCleanupTimerJob() |
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).
|
HistoryJob |
moveDeadLetterJobToHistoryJob(String jobId,
int retries)
Moves a job that is in the dead letter job table back to be a history job,
and resetting the retries (as the retries was 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 |
moveSuspendedJobToExecutableJob(String jobId)
Moves a suspended job from the suspended letter job table back to be an executable job.
|
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()
ExternalWorkerJobQuery createExternalWorkerJobQuery()
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.void bulkMoveDeadLetterJobs(Collection<String> jobIds, int retries)
jobIds - ids of the jobs to move, cannot be null.retries - the number of retries (value greater than 0) which will be set on the jobs.FlowableObjectNotFoundException - when there is no job with any of the given ids.void bulkMoveDeadLetterJobsToHistoryJobs(Collection<String> jobIds, int retries)
jobIds - ids of the jobs to move, cannot be null.retries - the number of retries (value greater than 0) which will be set on the jobs.FlowableObjectNotFoundException - when one job with of the given ids is not found.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.HistoryJob moveDeadLetterJobToHistoryJob(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.FlowableIllegalArgumentException - when the job cannot be moved to be a history job (e.g. because it's not history job)Job moveSuspendedJobToExecutableJob(String jobId)
jobId - id of the job to move, cannot be null.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.String getExternalWorkerJobErrorDetails(String jobId)
Job when the job was last failed.
Returns null when the job has no error details.jobId - id of the job, cannot be null.FlowableObjectNotFoundException - when no job exists with the given id.void handleHistoryCleanupTimerJob()
BatchQuery createBatchQuery()
BatchBuilder createBatchBuilder()
BatchPartQuery createBatchPartQuery()
BatchPartBuilder createBatchPartBuilder(Batch batch)
void deleteBatch(String batchId)
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.String getHistoryJobHistoryJson(String historyJobId)
HistoryJob.historyJobId - id of the history job to execute, cannot be null.FlowableObjectNotFoundException - when there is no historyJob with the given id.void deleteHistoryJob(String jobId)
jobId - id of the history job to delete, cannot be null.FlowableObjectNotFoundException - when there is no job with the given id.ExternalWorkerJobAcquireBuilder createExternalWorkerJobAcquireBuilder()
ExternalWorkerJobAcquireBuilder that can be used to acquire jobs for an external worker.ExternalWorkerJobFailureBuilder createExternalWorkerJobFailureBuilder(String externalJobId, String workerId)
ExternalWorkerJobFailureBuilder that can be used to fail an external worker job.externalJobId - the id of the external worker jobworkerId - the id of the worker doing the actionCmmnExternalWorkerTransitionBuilder createCmmnExternalWorkerTransitionBuilder(String externalJobId, String workerId)
CmmnExternalWorkerTransitionBuilder that can be used to transition the status of the external worker job.ChangeTenantIdBuilder createChangeTenantIdBuilder(String fromTenantId, String toTenantId)
ChangeTenantIdBuilder that can be used to change the tenant id of the case instances
and all the related instances. See CmmnChangeTenantIdEntityTypes for related instances.
You must provide the source tenant id and the destination tenant id. All instances from the source tenant id in the CMMN scope will be changed to the target tenant id.
Copyright © 2022 Flowable. All rights reserved.