Hi There,
Just thinking about extending a flow to be more reusable.
I have flow that contains is a change node that sets a bunch of values. I now want to add a link-in node in front of that change node and set those same values. Unfortunately the change node would overwrite any values I send in from outside - being after the link-in node.
What I want to do is send in values and have them overwrite the values I set in the change node but that does work since the change node uses 'Set' and the change node comes after the link-in node, so the change node will overwrite any values already set on the msg.
What I was thinking was why isn't there a "set-if-not-set" rule? I.e. something similar to the a ||= 'foo'
operator.
If a value is set already, the change node would have no affect for that attribute, else a default value is set for the attribute.
Is this possible already (without using a function node) or have a I missed something?