Error Post-Processing Logic
The product supports executing one or more algorithms when a batch process encounters an error that causes execution to stop. This allows for some special processing to occur to handle the failure of the batch job. Algorithms for this plug-in spot receive the batch control, batch run number, batch processing business date, number of threads and the list of the ad hoc parameters of the batch job.
The following are some examples of functionality that may be executed when a batch job fails:
-
Another object or record that is monitoring the batch job may have its status updated to reflect the batch status.
-
An outbound message service may be invoked to perform a task related to the failure.
Note that the units of work for all threads are committed prior to executing the error post-processing logic.