function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ManidManid 

in batch apex i have 5 batches. in execute method i want to perform 5 diff logics to 5 batches it is possible?

if possible write some logic.
Cloud_forceCloud_force
you can write the logic depending on your need in execute method. Not sure why would you want to have different logic for different batches. But you can use database.stateful  and use a variable to identify different batches and write the logic based on the value pesent in the variable