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

Buffer

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

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: