logoalt Hacker News

breneyesterday at 7:37 PM2 repliesview on HN

How does it deal with loops? I’ve often see workflow builders struggle at that?


Replies

waleedlatif1yesterday at 7:57 PM

for loops we use two sentinel nodes with a backwards edge, and before each iteration, we check the condition and update loop variables.

  sentinel -> body -> sentinel (condition with backwards edge to first sentinel)
in the UI, this is just represented as another block, and depending on the varying types of loops you can either define a collection or the number of iterations
Natfanyesterday at 7:41 PM

and specifically nested loops. if you're spinning up full runtime copies for each loop, you're gonna have a hard time

show 1 reply