06-10-2021 08:15 PM
Hi,
How a child pipeline returns values to caller pipeline (in Pipeline Execute snap)
Thanks,
DK
06-10-2021 10:05 PM
Hi,
Pipeline Execute snap’s output will be based on the input and output configuration of the child pipeline as follows,
06-11-2021 03:04 AM
Thanks Ganesh, for reply. Can you please share a sample?
06-14-2021 07:26 AM
Here’s a project that you can import to see how to call a child pipeline and get data out in a couple different scenarios.
Sometimes there is no output that a child will return. In that case, make sure the child pipeline has no open output view and the Pipeline Execute snap returns the status of the child pipeline execution. In this project, the pipeline called do-calculations calls two child pipelines that demonstrates this. After calling them, it checks the status and will fail on any pipeline failures.
Other times, a parent pipeline may need to get data back from the child. There are two “parent” pipelines temp-max and temp-avg that will call the pipeline get-temp to get some temperature data. The child executes and then returns documents that the parent pipelines use to calculate the max and average.
Let me know if these are helpful or if you have any questions about the project.
projects_check-weather.zip (9.2 KB)
07-01-2021 12:11 AM
Excellent example, thanks.