Cannot see status of nodes inside subflows

540 views
Skip to first unread message

Oren Zomer

unread,
Mar 10, 2016, 12:19:01 PM3/10/16
to Node-RED
Is it only me, or is it the current behavior for everyone?
I am using Node-RED 0.13.3.


Nicholas O'Leary

unread,
Mar 10, 2016, 1:48:10 PM3/10/16
to Node-RED Mailing List
Hi Oren,

that is a known behaviour of subflows which has been discussed a few times on the mailing list.

In the current model, a subflow is a template of a flow. When you drag one into your workspace you are getting a new instance of the template in the flow. When you dbl click on a subflow node to edit it, you are editing the template, not the individual instance.

When a node within a subflow instance updates its status, it doesn't have a corresponding node in the editor to reflect the status update. In other words, if you are editing a subflow, the nodes you are looking at could have multiple actual instances in the runtime - so it wouldn't make sense, nor be possible, to display the status from all of them at the same time.

I sent out an email to this group last July (time flies!) pointing at the high-level design we'd put together for subflows and related things:  https://groups.google.com/forum/#!searchin/node-red/subflows$20vNext/node-red/-BAVW4eSNIA/SiLj-05o8dYJ

Part of the design includes having the ability to pick nodes whose status message should get 'promoted' from inside a subflow to by displayed against the subflow instance node.

It also has the concept of an inline-subflow, where rather than creating a reusable template, the inline-subflow is a single-instance thing used to help organise the nodes in a flow. In that case, when editing the inline-subflow, you'd get the status messages as you'd expect (as there is a one-to-one mapping between node in the editor and node instance in the runtime).

As you can tell, we've had the subflow vNext design around for some time. Other priorities have got in the way of making any progress on them - and I suspect we'll want to do a fundamental review of that design to ensure it still fits with how node-red has evolved since then.

Nick



On 10 March 2016 at 17:19, Oren Zomer <oren....@gmail.com> wrote:
Is it only me, or is it the current behavior for everyone?
I am using Node-RED 0.13.3.


--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
For more options, visit https://groups.google.com/d/optout.

Oren Zomer

unread,
Mar 10, 2016, 2:10:58 PM3/10/16
to Node-RED
Thanks, that makes sense.
Reply all
Reply to author
Forward
0 new messages