The Transaction Finalizers enable you to attach actions, using the System. Finalizer interface, to asynchronous Apex jobs that uses the Queueable framework. The logic associated with Finalizer implementation will be executed once the asynchronous execution finishes.
Since we can attach the same finalizer to multiple jobs, this can be used as a reusable functionality for exception handling or to execute same kind of actions for multiple jobs. We can also do the sequencing of a business process based on the outcome of the previous processes. In this session we will be covering below features:
- Transaction Finalizer features
- Methods Available as part of this Interface
- Implementation use case - Scenario to execute a second job based on the success of the first job, else log exception if the first job is failed. Exception handling for the second job is also handled as part of finalizer implementation
- Advantages of Transaction finalizers
My Blog post for reference - https://meera-r-nair.blogspot.com/2021/07/transaction-finalizers-for-asynchronous.html
Back to All Events
Earlier Event: January 20
Watch Party - Check-in
Later Event: January 20
How to configure Salesforce Surveys to measure Agent's Performance - Ranjini Janardhanan