EXAMPLE 03 OF 8 · Starter
Iterate a checklist
Process three items from a Global, then continue once every item path has finished.
Walk through the workflow
- Choose Use this workflow. Its items Global contains Plan, Build, and Review.
- Inspect Iterate: Items reads {{global.items}} as an array. Sequential is on, so each checklist entry finishes before the next starts. done follows all item paths.
- Run once. The Variable node on the item path executes three times, producing a message for Plan, Build, and Review.
- Inspect the final Variable node on the done path. Its output reports completed: 3. Add an item to the items Global and run again.
Check execution counts
The item path should produce Complete: Plan, Complete: Build, and Complete: Review. The summary path runs once and returns {"completed":3} after the item paths finish.
Make one change
Add a Wait node after the item Variable. Sequential waits through it before starting the next entry. Turn Sequential off to allow the item paths to overlap; done still waits for all of them. Then set items to an empty array: expect no item messages and {"completed":0}.
If it does not match
Ensure items is an array in Globals and Items contains the exact expression {{global.items}}. Iterate’s done output counts items; it does not collect the messages produced downstream. See Iterate.