I have a parent flow that contains a document called “h_environment”.
I call a child flow, with input “environment”. I pass “h_environment” into “environment”.
The problem is, any change to a sub-element of “environment” in the child flow is being reflected in the “h_environment” document! If I do a pipeline dump to file right after the map step that makes the change, I can see BOTH documents change at that point!
I don’t understand how the child flow even “knows” about “h_environment”. ie I understand it’s in the pipeline even though not explicitly passed as an input into the child, but I don’t understand how the child flow can change “h_environment” when it’s not directly referenced anywhere!
It’s as if “h_environment” is being passed “by reference” instead of “by value”.
Has anyone got any clues?
NB I can work around this by passing in the sub-elements of “h_environment” to the corresponding sub-elements of “environment”… but there’s heaps and this is very messy!