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

Buffer

Version
7.3
Language
English
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 Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Buffer components
Data Quality and Preparation > Third-party systems > Buffer components
Design and Development > Third-party systems > Buffer components
Last publication date
2024-02-21

The parent Job calls the child Job, gets the value buffered by the tBufferOutput component in the child Job and displays it on the console.

Procedure

  1. Create a Job and name it parentJob.
  2. Add a tRunJob component and a tJavaRow component on the workspace and link them with a Row > Main connection.
  3. Double-click the tRunJob component to open its Basic settings view.
  4. Select childJob in the Job field and check if the schema of the tRunjob component corresponds with the schema of tBufferOutput called in the Job, one column nb_line of Integer type.
  5. Double-click the tJavaRow component and add the following code in the Code field:
    System.out.println("The total number of rows is:"+input_row.nb_line);
  6. Execute the parent Job.

    The results are printed on the console: