title: Do while in Mule 4.0
body: <p>I need to create a 'do while' loop in Mule 4.0. I need a loop which will terminate on a given condition. </p>
  
  <p>Unfortunately, I cannot seem how to do this in Mule 4.0. </p>
  
  <p>Using recursive loops, although not ideal, used to work in Mule 3, but no longer in Mule 4.</p>
  
  <p>I also used to use the until-successful scope to be able to loop until a particular condition is met, however there is no failure expression in Mule 4.0 so I'm not able to check the condition to terminate. </p>
  
  <p>What is the way forward in Mule 4.0 to create a simple do-while loop. </p>
  
  <p>TIA</p>