As node is event driven you just need to break any input connection and that part of the flow won't run. You can also start node-red with a flow file name as a parameter, so easy to swap flows.
Each would need some kind of status indicator in the UI. You would also need a way of changing state - right mouse button menu + keyboard shortcut?
I would think the hardest part though would be that the underlying core processing of NR would need changing to make this work. After all, this would have to work for every node type without changing the node definitions themselves. A complex change I'm imagining though better done sooner rather than later as it is unlikely to get easier to do.
--
http://nodered.org
---
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.
For more options, visit https://groups.google.com/d/optout.
Providing an intuitive way to enable/disable nodes and make it obvious what state they are in, especially if there are multiple types of 'disabled' would need some careful design work. Personally, not a fan of right-mouse button menu - doesn't translate well to touch UIs.
Then there is the question of API - do we provide an API to enable/disable individual nodes or is it a property of the nodes that gets applied when you do a deploy.
Anyway, nothing insurmountable, if it were something we were considering... I'll admit, I'm not as opposed to the idea as I once was.
My first reaction to that is... Yeah. That is why I love these discussions... Would fit with my mental model of temporarily disconnecting a wire (but without breaking it). Needs more thinking about but would seem a valid alternative approach.
One downside... it wouldn't handle the pass-through scenario, if that were a scenario we wanted to cater for.
N
My first reaction to that is... Yeah. That is why I love these discussions... Would fit with my mental model of temporarily disconnecting a wire (but without breaking it). Needs more thinking about but would seem a valid alternative approach.
--
Disable I can understand. Not sure about pass thru. What would that mean for a switch node ? Or http request, or file read... Or even most functions...? I think there are more cases where it wouldn't work and would be more confusing that not.
Can someone post a fragment of a flow that can demonstrate the utility of this ?
As you said if you want a simple bypass then just wire over the top, and disconnect the input side of the node where there is only one wire to replace rather than the multiple outputs.
I do get the block/disable idea.
--
http://nodered.org
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/Ds_bnwjKXo0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
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.
@Nick - Valid point about the examples.... I was providing the requested flow screenshots however. ;-)
...