Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update export SUBFLOW design #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions designs/exportable-subflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,18 @@ Following is a list of properties exported SUBFLOW node in SUBFLOW Template may
| 5 | color+ | string | color of SUBFLOW |
| 6 | version | string | version of SUBFLOW (format: x.y.z) |
| 7 | author+ | string | author of SUBFLOW |
| 8 | license+ | string | license of SUBFLOW |
| 9 | keywords+ | array | array of keywords of SUBFLOW |
| 10 | description+ | string | simple description of SUBFLOW |
| 8 | license+ | string | license of SUBFLOW |
| 9 | keywords+ | array | array of keywords of SUBFLOW |
| 10 | description+ | string | simple description of SUBFLOW |
| 10 | exportName+ | string | export name of SUBFLOW |

Exported SUBFLOW Template can be **sealed** which means that internal of the SUBFLOW Template is hidden from users.

If imported **seald** SUBFLOW Template includes other SUBFLOW Templates, **hidden** property of these templates are set to true and these SUBFLOW Templates are not shown in editor pallette.

For example, suppose SUBFLOW template `S0` uses other SUBFLOW template `S1`. If `S0` is exported in **sealed** + **include all** mode and, exported JSON representation contains `S0` and `S1`.
If this JSON representation is imported in another Node-RED instance, `S0` (**sealed**) is not editable and shown in pallette list. `S1` (**sealed** and **hidden**) is not listed in pallette list and only used internally in `S0`. This is intended to hide SUBFLOWs used as internal parts of exported SUBFLOW from the user.

`flow` property is an array of nodes that are used in its SUBFLOW template. *id* of nodes in SUBFLOW template must be *name*-*ID* where *ID* is a original *id* of the node.

Extended properties are ignored if they are imported to older version of Node-RED.
Expand All @@ -107,4 +111,5 @@ Extended properties are ignored if they are imported to older version of Node-RE

- 2019-02-27 - migrated from Design note wiki
- 2019-07-26 - updated according to design discussion on early July
- 2019-09-06 - updated accodring to design discussion on Sep. 4th
- 2019-09-06 - updated accodring to design discussion on Sep. 4th
- 2019-10-24 - updated description sealed SUBFLOW and add exportName to SUBFLOW property