Trying to capture data in multiple nested sub-process and passing it back in the last nested subprocess after every process (except parent) has completed multiple times.

If there's 2 layers of subprocesses inside a parent process, (1-2-3-4),  trying to capture the value in 3rd sub-process and as both 2nd & 3rd run for multiple times, the values I tried saving end up as null, is there any method where I can catch value from 3rd sub-process pv, pass it back to 1st and meanwhile both 2nd & 3rd finish their rounds and then captured value is passed back all the way to the 4th subprocess?

  Discussion posts and replies are publicly visible