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.
- Create a Job and name it parentJob.
- Add a tRunJob component and a tJavaRow component on the workspace and link them with a connection.
- Double-click the tRunJob component to open its Basic settings view.
- 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.
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);
Execute the parent Job.
The results are printed on the console: