mirror of https://github.com/node-red/node-red.git
Updated Design: subflows (markdown)
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
|
||||
|
||||
...
|
||||
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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue