Hello,
I have a little problem understanding & figuring out how I can have multiple subflows on the same tab flow where each subflow needs to have it's own variables in context
As example, I have this test flow below. The only thing the subflow does is to set a flow context variable with the timestamp. But if I put more subflows in the same way into a single tab, there is a conflict
Is there another way how each subflow can store individual variables in context instead of using $parent.timestamp as in the example? Maybe like adding the unique node_id to the variable names somehow could be a solution ($parent.timestamp + node_id)?
Best regards, Walter
[{"id":"598467b2.d6e028","type":"subflow","name":"My timestamp","info":"","category":"","in":[{"x":220,"y":80,"wires":[{"id":"2f923787.1c4268"}]}],"out":[{"x":620,"y":80,"wires":[{"id":"2f923787.1c4268","port":0}]}],"env":[],"meta":{},"color":"#DDAA99"},{"id":"2f923787.1c4268","type":"change","z":"598467b2.d6e028","name":"","rules":[{"t":"set","p":"$parent.timestamp","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":80,"wires":[[]]},{"id":"ebd92723.099598","type":"inject","z":"472fc173.1567","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":340,"y":1380,"wires":[["aba3db61.9fd578"]]},{"id":"7789d431.011d4c","type":"debug","z":"472fc173.1567","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":790,"y":1380,"wires":[]},{"id":"aba3db61.9fd578","type":"subflow:598467b2.d6e028","z":"472fc173.1567","name":"","env":[],"x":560,"y":1380,"wires":[["7789d431.011d4c"]]}]