The pipeline is apparently copied from services to services which means that when service A calls service B, A not only passes B’s input variables to B but it also passes all the variables in the pipeline.
i) What happens if B overwrites a variable with the same name as the one in the pipeline of A before being called? Then A will not find the expected value when B will return
ii) If B doesn’t clean up its pipeline then some unexpected variables will be returned to A
- How can we solve i) and ii) given that it should not be expected that a service will clean its pipeline
- Why is the pipeline simply passed from services to services? Shouldn’t only inputs be passed? Can we force this? All languages have scopes, why is this not present in flow?
Thanks for the help