About: This article introduces the Call Another Job for Each node, a Special node within Construct.
Location: Node panel
Table of Contents
Feature Overview
The Call Another Job for Each node (or Call Each node) is very similar to the Call Job node in that it passes parameters to and runs another Construct job. The called job is defined in the Job Name field of the configuration window. This node differs from the Call Job node however, because instead of just passing a single value for a parameter to the called job, a list of values can be passed. Like a For Loop, the called job will then run one time for each value in the list.
Example
Consider a job where a dataset containing students and their advisors is filtered so that each advisor can receive a list of their students. The dataset is being filtered using a parameter called Advisor.
Instead of changing the parameter value for each advisor and then re-running the job manually, the Call Each node can be used. By feeding the Call Each node a list of all the advisor names, it will then pass the advisor names one at a time to the called job and automatically run the job for every advisor on the list, dynamically creating a file for each advisor with the list of their students.
Note: Only the saved version of a selected job will run.
The Set Run Order tool may be used to determine when this node is run.
Comments
0 comments
Article is closed for comments.