Skip to content

Design: subflows vNext

Nick O'Leary edited this page Jul 23, 2015 · 18 revisions

The existing subflow capability in node-red serves a purpose, but is need of further development to be truly useful.

The follow design outlines where we'll go next with subflows.

Definitions

There are three types of subflow:

  • inline-subflow : a subflow that is defined and used once within a single flow. It is not reusable. Inputs: 0/1, Outputs: 0/n
  • loop-subflow : a subflow that defines a condition under which a message is iterated on. Inputs: 1, Outputs: 1
  • template-subflow : a subflow that is added to the palette as a reusable set of nodes. This is equivalent to what we have today. Inputs: 0/1, Outputs: 0/n. It defines a set of properties of its nodes that can be customised by individual instances.

inline-subflow

A new subflow node is []!

Clone this wiki locally