Passing parameters to a child job

In this recipe, we will show how parameters can be passed to a common child job.

Getting ready

Open the job jo_cook_ch11_0070_childParameters. This job simply executes a child job. If you examine the child job, you will see that it prints the value of the context parameter inputParameter.

How to do it…

  1. Run the parent job.
  2. You will see that the value for inputParameter is fromChild.
  3. Open the tRun component tab, and click on + to add a Context Param option.
  4. Untick Transmit whole context.
  5. Select inputParameter in the Parameters column, and set the Value to fromParent, as shown in the next screenshot:
    How to do it…
  6. Run the job, and you will ...

Get Talend Open Studio Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.