Package org.flowable.external.worker
Interface WorkerResult.Failure
- All Superinterfaces:
WorkerResult
- Enclosing interface:
- WorkerResult
A failure result.
It allows for configuring the failure details.
Can be created via
WorkerResultBuilder.failure()-
Nested Class Summary
Nested classes/interfaces inherited from interface org.flowable.external.worker.WorkerResult
WorkerResult.Failure, WorkerResult.Success -
Method Summary
Modifier and TypeMethodDescriptionThe failure details that should be passed to the Flowable application.Provide fail information based on the exception.The failure message that should be passed to the Flowable application.retries(int retries) How many times should the job be retried.retryTimeout(Duration retryTimeout) How long should the Flowable application wait before making this job available for execution.
-
Method Details
-
error
Provide fail information based on the exception. TheThrowable.getMessage()will be used as the failure message and the exception stacktrace will be used as the details.- Parameters:
exception- the exception that should be used to provide the message and details- See Also:
-
message
The failure message that should be passed to the Flowable application.- Parameters:
message- the failure message
-
details
The failure details that should be passed to the Flowable application.- Parameters:
details- the failure details
-
retries
How many times should the job be retried. This can be used to increase / decrease the existing retries of a job. When nothing is set then the Flowable application is going to decrease the retries by 1.- Parameters:
retries- the new retry count for the job
-
retryTimeout
How long should the Flowable application wait before making this job available for execution. This can be used to set a specific period after which the execution of a job would be successful.- Parameters:
retryTimeout- the period that the Flowable application should wait before making this job available
-