I'd like the ability to create a repeat action that continually checks for a set of conditions to be true before continuing on in the recipe. I imagine this could be designed where the repeat action executes on a clock timer with specified duration rather than an input list. Then there would have to be a new action similar to the stop action within a conditional action in the loop that allows the recipe to kick out of the loop rather than stopping the recipe all together. Or this could all be built into the configuration of the repeat action itself so it act almost like a second trigger function.
I'm looking for a Do While loop action on Workato where the recipe continues looping through until a certain condition is met. This is a pretty common dev logic. Hope the team will consider building an action for Repeat by condition logic.
Hi Miranda, I believe I have shared a recipe logic that you can build to achieve this but would like to repeat it here.
Brad, this makes use of the append "<<" operator shared with you in a different discussion about variables.
While there isn't a prebuilt feature to do so on Workato, there is a workaround using a repeat action: Create a repeat action loop with a dummy list, and escape loop when condition is met
Step 1: Create a dummy list to be used for iteration (App: Lists by Workato, Action: Create list)
Step 2: Initialize an empty array using Logger to log a message in formula mode
Step 3: Create a Repeat action to iterate over the list created in Step 1
Step 4: Create a Conditional action.
Step 5: Create the recipe logic that you would like to implement with the following format.
Below is an example of how the repeat action may be configured
This is such a silly and wasteful way to do this. Even though the condition is met and Workato will not perform any function after the ready state the loop will continue until the end. what if the number of times was 10,000 or unknown? What if you don't know how much data there is? When is Workato going to work this out so that there is a proper loop until a condition is met. This is such a simple function and a HUGE miss for this platform.
Has a "break" repeat been added yet? This is a fundamental capability in any coding language and I would expect, fundamental in the low-code world
Send us a ticket, we will try our best to assist you with your problem