I am using synchronous until successful component in which call to Web Service is placed.
It works fine as per expectation but I would like to keep count of no of failed attempts in until successful flow.
e.g. if until successful made 3 attempts out of 5 and on 4th attempt retry was successful so i need 3 failed attempt count.
how I can get this?
3 réponses

@amghorpa, Until successful keeps track of the attempts using the variable `process.attempt.count` which you can access using the expression `flowVars["process.attempt.count"]`. However, this is only in Asynchronous mode.
For synchronous mode, I suggest you keep track in your flow using an Atomic Integer in a flow variable incremented in the Until successful execution block.