Skip to main content

Subflow

info

Available only in the main Flow.

With a Subflow you can bundle program logic into reusable snippets that can be used across all Flows. This will aid you in reducing redundancy and having a better overview.
The Subflow is similar to a regular Flow with some exceptions:

  • There is no concurrency (= parallel execution of branches) within a Subflow
  • The Subflow can be used within any other Flow multiple times
  • The Subflow Node will wait for the Subflow to finish before it triggers its output

Subflow

You can select an existing Subflow or create a new one directly from the Subflow Node.
To edit it, just press the pencil-button.

For each Subflow, you can set a number of outputs.
It defines how many outputs will be available on your Sublfow Node.

Inside a Subflow, you can define the output that should be triggered after completion by using the Subflow Output Node
If no Subflow Output Node is set, Output 1 will be triggered by default.

Subflow Variable

Instead of directly selecting a Subflow, you can also select a String Variable containing the UUID of a Subflow to execute. With this, you can dynamically set the Subflow to be executed during a Flow run by setting the Variable e.g. with a Set Variable Node, or from a Dashboard with a Set Variable Widget or a Generic Button Widget.

The Subflow UUID can be obtained from the URL if you're in the Subflow editor, e.g.
http://192.168.3.1/subflow/0994c0e2-f43b-438f-87de-c3fcf1fd68cc/.

If you select a Subflow Variable, you also need to manually set the number of outputs the Subflow Node should provide. Make sure to choose enough outputs so that every potential Subflow has its outputs covered.