Back to All Events

Transaction Finalizers for Asynchronous Apex Jobs - How to develop reusable Logic for Exception Loging and Business Process Sequencing - Meera Nair

  • Courtyard Phoenix Downtown, Marriott (Virtual Conference Watch Party) 132 South Central Avenue Phoenix, AZ, 85004 United States (map)

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