1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Updated Design: subflows (markdown)

Nick O'Leary 2014-08-23 05:13:13 -07:00
parent 8fefff1f92
commit 009a2f64ed

@ -41,7 +41,28 @@ A subflow can be used in one of two modes: (this is tbd. Might just stick with s
## Definition ## Definition
... A subflow node has the following properties:
* `type` : `subflow`
* `id`
* `name`
A node that is part of a subflow has their `z` property set to the `id` of the subflow.
An instance of a subflow has the following properties:
* `type` : `subflow` ... ?
* `id`
* something to identify mode... if we have modes.
It inherits the `name` of the parent subflow.
**Questions:*
* how does an instance node identify its parent?
* type=subflow:<parent-id>
* type=something other than subflow and parent=<parent-id>