I had a small flow with subflow in it, I copied and pasted multiple bits and ended up having a huge duplicates of subflow, what is the correct way ?
i followed this discussion which seems to be similar , but i could not understnad much.
I had a small flow with subflow in it, I copied and pasted multiple bits and ended up having a huge duplicates of subflow, what is the correct way ?
i followed this discussion which seems to be similar , but i could not understnad much.
Which one?
OOps, forgot to paste. edited the main post.
Do you mean copy/paste or Export/Import?
Sorry, my post was not complete. apologies.
It is indeed export and import back, BUT with editing in notepad.
so i have 25 machines for which i made a small flow whcih included a subflow, i needed 24 copies of these each for an hour on clock. (complex story, which can be simplified, subject for another topic), i assumed exporting one block and changing the values in the change node to replace 00 with 01, etc for 24 times, made a quick alternate for copy paste since i need to change each change node for 25 machines for every hour.
it did work, as i expected (well) except for the duplicate copies of the subflow. and i cannot delete them because they are referred to in some of the flows.
repeat this 24 times one for each hour.
If you import
with a subflow
NR should detect the existence of it and ask you to either replace
or.... something else.... (Can't remember)
So making copies of it shouldn't happen. They should be filtered at the NR level.
(BTW, versions?)
NR,
O/S,
Node.js,
Javascript,
etc...
May help.
Go back to your previous version (assuming that you are using some sort of version control/backup strategy) and start again, using Copy/Paste.
Also please edit the title of this thread and your initial description to say Import/Export, they are very different.
Yes, I did that, and as i told, i have a repetetive task of changing the change node contents, i want to copy, but change the hour marker from H00 to H01 etc. i thought editing the json was easy after exporting and before importing. OR, i could only exclude the subflow bit of the flow, export , change the json , import and wire it manually. whcih is a tedious process again, but better than opening change node, editing the contents and save it.
or may be there is a function node alternative, using a for next loop which may reduce my flow logic.
done, thanks for pointing out.