Skip to main content
Version: v9

Subflow Editor

The Subflow Editor works the same way as the Flow Editor, but what you build here is a Subflow: a set of instructions grouped together so it can be used as a single block inside a main Flow.

Subflows let you bundle program logic into reusable snippets that can be used across all Flows, which reduces redundancy and keeps the main Flow readable.

Working on the canvas​

The canvas works as it does in the Flow Editor, so Working on the Canvas applies here too — navigating, selecting, adding and connecting Nodes, undo, search and the keyboard shortcuts. The differences:

  • The run controls over the canvas hold an Outputs selector, which sets how many outputs the Subflow Node gets, next to Run and Debug. They run the open Subflow as it is in the editor, without saving it first; see Subflows during a run.
  • Move or copy to Subflow and Unpack this Subflow into the Flow are offered in the Flow Editor only.
  • The Add Item menu leaves out the Nodes that only work in a Flow.

In this section​

How a Subflow differs from a Flow​

  • There is no concurrency — branches do not execute in parallel inside a Subflow.
  • The same Subflow can be used within any other Flow, multiple times.
  • The Subflow Node waits for the Subflow to finish before it triggers its output.

Working with Subflows​

  • From a Flow. On a Subflow Node, pick a Subflow in the Subflow list or choose New Subflow at its top; press the pencil to edit the picked one. The Subflow Editor opens over the Flow Editor, with a Subflow Name field, its own Save button and run controls. The close button (×) closes it, and asks first if there are unsaved changes. The Flow behind it waits, blurred.
  • On its own. View Selector → Subflow Editor shows Your Subflows, each with the Flows it is Used in, and New Subflow and Import Subflow. The Subflow selector in the app bar has rename, duplicate, export, delete and Restore Subflow Backup.
  • From a selection. Use Move or copy to Subflow; see Selecting.
  • Define which output is triggered on completion with the Subflow Output Node. If none is set, Output 1 is triggered by default.
  • A Subflow starts from the Subflow Start Node.

The Subflow Editor open over a blurred Flow, with the Subflow Name field, Save, close and the run controlsThe Subflow Editor open over a blurred Flow, with the Subflow Name field, Save, close and the run controls

A Subflow's UUID appears in the URL while you have it open in the Subflow Editor view (View Selector → Subflow Editor), for example http://192.168.3.1/subflow/0994c0e2-f43b-438f-87de-c3fcf1fd68cc/. The Subflow Editor that opens over a Flow doesn't change the URL. That UUID is what a String Variable holds when you select a Subflow dynamically at runtime.