Package org.flowable.job.api
Interface ExternalWorkerJobFailureBuilder
public interface ExternalWorkerJobFailureBuilder
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionerrorDetails
(String errorDetails) The longer error details for the failing job.errorMessage
(String errorMessage) The error message for the failing job.void
fail()
Perform the logic for failing a job.retries
(int retries) The number of new retries that should be set for the job.retryTimeout
(Duration retryTimeout) The amount of time to wait before making the job available for a retry.
-
Method Details
-
errorMessage
The error message for the failing job. -
errorDetails
The longer error details for the failing job. -
retries
The number of new retries that should be set for the job. If not set then the retries count would be decreased by 1. If the current retries is already 1, the job will be moved to the deadletter job table. -
retryTimeout
The amount of time to wait before making the job available for a retry. If nothing set then the job would immediately be available for a retry. -
fail
void fail()Perform the logic for failing a job.
-