Hey,
@cmarchan gave me some tips for doing recursive workflows
Here a few guidelines:
- Use schedule an api wf (not schedule a wf on a list)
- Send the list of entries as one of the parameters of the wf (the thing marked as a list)
- Set up an “index nr” parameter of type number. This will enable you to mark each entry of the list with an index nr (each time +1) when you reschedule the wf on itself (explained below).
- At the end of wf actions add an action to schedule the wf on itself within an extinguishable condition that forces it to stop in the last entry (otherwise you will run into an infinite loop which can break havoc in your app …). Also, send the index nr parameter +1 so that increments each time.
- An extinguishable condition could look like this: entry index nr < search things :count
- Use the “index nr” to condition the actions you need in the wf
Basically it’s the same as doing changes to a list of things, but the difference is that you can taylor changes to each entry in the list
