I want to write a if condition for ,if my transaction
fails for the first time it should run the same transactions next 2-3
times and if it fails even after that, then only it should report as
failed transaction in the CAS.
can you help to write this condition?