+ Start a Discussion

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.
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