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

Orchestration (Integration)

Version
7.2
Language
English (United States)
Product
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
Module
Talend Studio
Content
Data Governance > Third-party systems > Orchestration components (Integration)
Data Quality and Preparation > Third-party systems > Orchestration components (Integration)
Design and Development > Third-party systems > Orchestration components (Integration)

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.