Run Function Series
Overview
Run Function Series calls a function defined by Function Def Start and Function Def End on this flow path, in sequence. This node waits until the function finishes, then continues with the function return value as outValue.
Place this node on a trigger path. The function definition stays on its own subgraph.
Use Run Function Parallel instead when the function should run on a separate path. See How function nodes work together.
Input
Function Definition Node
string requiredFunction Def Start node to run.
The picker lists Function Def Start nodes anywhere on the canvas, not only upstream of this node.
This node's outValue follows the selected Start Function Return Schema, whether that Start has no End or several Ends.
Function Arguments
objectNested object whose fields come from the selected Function Def Start Function Arguments Schema. Type a value for each argument, or fill it with a Nabrio ref from this runner (upstream of this node), not from the function body.
Set fields overlay Start outValue. Fields you leave unset keep the Start schema defaults.
If that schema is empty or invalid, this section has no fields. Saving a changed args schema on the Start copies it here and drops argument keys that no longer exist.
Output
outValue
objectFunction return value from this call. Structure and field types follow the selected Function Def Start Function Return Schema.
Flow Behavior
This node always waits. On the same path it jumps to the selected Function Def Start, runs the body, and continues this node's default output. If a Function Def End runs, its Function Return is copied onto this node's outValue. If no End runs, outValue follows Start Unhandled Return Values.
Runtime notes:
- Function Def End does not finish this trigger path. Flow returns here, then continues downstream.
- The body can read nodes that already ran on this path, and can read/write shared variables.
- The body may call other functions (or this one) with Series or Parallel. Nested and recursive calls are allowed, up to depth 8.
- After a successful call, downstream nodes read this node's
outValue, not Function Def End.