Forum Discussion
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)
Excellent example, thanks.