Creating a child Job to get a value from a parent Job - 7.3

System

EnrichVersion
Cloud
7.3
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 Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
EnrichPlatform
Talend Studio
task
Data Governance > Third-party systems > System components
Data Quality and Preparation > Third-party systems > System components
Design and Development > Third-party systems > System components

Procedure

  1. Create a Standard Job called ChildJob.
  2. Open the Contexts tab to define two context variables, name and scope.

    These variables are used to pass a value from the parent Job to the child Job.

  3. Add a tJava component from the Palette to the Job editor and double-click the component to open its Basic settings.
  4. In the Code area, type in the following Java code.
    String message="Hello "+context.name+", you get "+context.scope+" points in this exam!";
    System.out.println(message);
  5. Press Ctrl+S to save your Job.