Trying to build my own Node-RED nodes, I looked for any documentation on
On stackoverflow, I've been told that now such docs would exist and I should open a discourse topic for this question.
Ok, here it is: could anybody please explain syntax and semantics of the functions mentioned above?
Thanks in advance for any response!
Thank you very much for this first explanation.
But what is an "active node in the current flow configuration"? Are there "active" and "passive" nodes? And "flow configuration" is just the full set of nodes and their wires?
by the way, I made a typo:
RED.nodes.originaFlow() must actually be
RED.nodes.originalFlow(). It is used by node-red-contrib-components, but not set there which is why I assumed it would be part of Node-RED itself
Ah yes. I did look for
originalFlow (which exists internally) but I didn't realise it had been exposed to nodes in the API.
It returns the current flow JSON - exactly what appears in the flow file.
It is all the nodes running in the flow. It will include all of the internal instance nodes from any subflows.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.