Creating a Job script to call a child Job - 6.5

Talend Job Script Reference Guide

Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Talend CommandLine
Talend Studio
Design and Development > Designing Jobs

This example shows how to write a Job script to define a Job that will call a child Job a given number of times.

The Job will contain the following components:

  • a tLoop component, to trigger the execution of the task.

  • a tRunJob component, to call a child Job.

Before creating this Job script, create a simple Job named HelloWorld. This Job will be called as the child Job. In this example, this Job contains a single tJava component, which will execute the following Java code:

System.out.println("Hello World !");

Make sure that the Job can be successfully executed, and note down its process ID.