Creating a Job script to call a child Job - 6.5

Talendジョブスクリプトリファレンス

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
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
task
ジョブデザインと開発 > ジョブデザイン
EnrichPlatform
Talend CommandLine
Talend Studio

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.