Hey all, i don't believe I'm the only one who can come across this issue so hopefully someone here can propose a solution.
i have a list of values that act as parameter for a third party web service. So i am doing a For Each loop for these values and then calling the service in that loop with each value.
The problem is that sometimes the APi doesn't return a valid value and in that case i need to call the API again with the same parameter (sometime more than a couple of times) in order to get the desired response.
so basically what i need a a while loop for the service call inside the For Each and it need to run until a proper format response is received or max tries limit is reached.
Now as there is no While loop connector in Mule, I would like to know how to accomplish this.
I did look at the "Until Successful" but then the problem is that i cannot pass a variable in and out from that
Thanks in advance for the help!
Actually @Abhay Singh answer was exactly what i was looking for. not sure why that got deleted. THe idea was to not use Java or groovy to acheive this.
Here is the link to the solution i used in case soemone else needs it
https://dzone.com/articles/how-to-create-a-while-loop-in-mule-esb-without-usi