(First thanks for Node-RED an amazing tool I use for personal project for 5 years)
I love default nodes and subflow mechanism, but I struggle on the same issues/pattern :
[a Function Node to Set msg.val.ues] => [a stand node like HTTP or Subflow]
I'd love to remove this "glue" to chain only my subflows but I don't understand how I could use dynamic variable from msg.* into my subflow ?
I give a try to Moustache like HTTP Node but it doesn't work:
What is the best practice ?At the moment I do
env.get('my-var') || msg['my-var'] but I still have to prepare msg['my-var'].
- Is there a way to run Moustache on
- Or should I call setMessageProperty() on it ?
- Or have msg. field type in subflow (but I understand it's static)
- Or expression field type (and do $string(payload[my-var])
I think it's more readable to explicitly set in the subflow instance my data is in msg.x.y than read it magically from msg object.
Many Thanks !