Hi,
I’m facing an issue in my flow service in which data appears to be leaking. I suspect it’s due to variables somehow being implicitly connected throughout the flow service, resulting in values being passed around unexpectedly.
The general structure of the flow service is such:
- Parent flow service “AA”, along with child flow services “A” and “B”.
- Within “AA”, child service “A” occurs before child service “B”.
- Both “A” and “B” use a commonly named document variable called “S5” within their respective services.
- Parent flow service “AA” also has a document variable called “S5”.
- In both “A” and “B”, “S5” has two child variables “S5-01” and “S5-02”.
- Before “S5” is passed to the parent service “AA”, “S5” is renamed. “A” passes “S5” to “AA” with a new name “S5A” and “B” passes “S5” to “AA” with a new name “S5B”.
- “S5A” is appended via appendToDocumentList to “AA’s” “S5”.
- “S5B” is appended via appendToDocumentList to “AA’s” “S5”.
Next, in testing:
- The “S5” variables in “A” are assigned the following values: “S5-01” = “Jon” and “S5-02” = “JonEmail”.
- The “S5” variables in “B” are assigned the following values: “S5-01” = “Greg”. There is no assignment of “S5-02” in “B”.
The debug log shows the following:
- Within the “A” service step, “A’s” “S5-01” shows as “Jon” and “S5-02” shows as “JonEmail”.
- Within the “B” service step, “B’s” “S5-01” shows as “Greg” and “S5-02” shows as “JonEmail”.
“AA” outputs the following “S5” records:
- “S5-01” = “Greg” and “S5-02” = “JonEmail”.
- “S5-01” = “Greg” and “S5-02” = “JonEmail”.
The values in the child services appear to be being passed between each other. Could this be due to the commonly named variables within “A” and “B”, along with the fact that “AA” has a variable of the same name as well?
Has anyone encountered this issue before?
Thanks,
Ken