VocalDocscontracts 1.65.0

LoopNode

A bounded cycle: its body runs at most max_iterations times.

An object with 12 fields.

Fields

bodyLoopBodyrequired
compensateWorkflowRef
Process scope: the subflow that undoes this node's effect if the instance is cancelled or fails later.
edgesmap of WorkflowNodeId
From each outlet the node type declares to the id of the next node; every declared outlet is mapped.
idWorkflowNodeIdrequired
inputmap of ZenExpression
Named ZEN expressions evaluated before the node runs, typed against the node's input schema.
A list to iterate.
max_iterationsinteger
Required; at most 20 in conversation scope and 100 in process scope (targets).
Writes fields of the node's output to declared slots (conversation) or vars (process).
Every node that waits has one, with a default per type.
type"loop"required
A ZEN boolean over the body's output.