Interpolation

Interpolate meta and other data

To cut down on the count of flow nodes and edges necessary for a flow, users are able to substitute and interpolate in the flow editor. For any input, the entered value, if properly delimited, will be able to dynamically use current details about the show.

Note: This processing is only on inputs not for fields.

The basic format is

  • {{path.to.value}} Reduces need for the Destructure node.

The following obtain their values from other places. Importantly, these operate from any input of any flow node.

  • {{headers::path.to.value}} Reduces need for the about:extract node. Also allows access to other values in the headers, including the instruction that triggered the flow. (You can see the headers object in the result of any console log node)

  • {{meta::path.to.value}} Allows shorter, easier to read usage of the meta of the triggering instruction. {{meta::about}} is equivalent to {{headers::instruction.meta.about}}

  • {{local::variableName}} Reduces the need for Read Local Variable. Importantly, it is evaluated when the whole node is evaluated. The Read Local Variable node, however, is less predictable about when it may be read.

  • {{global::variableName}} Reduces the need for Read Variable. Importantly, it is evaluated when the whole node is evaluated. The Read Variable node, however, is less predictable about when it may be read.

Examples

The flow above is using destruction, the console log below uses destructuring.

The flow above is using destruction, the console log below uses destructuring.

The flow above is using destruction, the console log below uses destructuring.

Last updated

Was this helpful?