One Star

How to build master job

Hi, reading 3861 i found that a "master" job can "contain" invocations to other jobs. For me that would be great but i haven't found any documentation on how to buld it.
Ho do i build such master job? Which component is used to invoque a job?
Is it possible to pass parameters to a job, when callng it? Does it gives results back to master job?
Can master job catch exception ocurred in jobs it invoques?
If there is some documentation, please let me know where it is and i will be glad to read it.
thank you
6 REPLIES
One Star

Re: How to build master job

Hello,
You just have to drag and drop the invoqued Job in your master job.
>Is it possible to pass parameters to a job, when callng it?
YES
>Does it gives results back to master job?
YES
>Can master job catch exception ocurred in jobs it invoques?
I think you have to put a TlogCatcher component in every child job in order to catch exception.

José
One Star

Re: How to build master job

Thank you.
and i just found the name of the component: it is "System Component-> tRunJob". There is some documentation in the Reference Guide ( here ) .
I was wondering: some of you use subJobs instead of a master job and jobs.
What are differences in using one or another?
One Star

Re: How to build master job

I've attached some pics that one of the Talend guys posted for an issue I was having that helped me with figuring out the job terminology
and heres what they said about it:
2. about the tRunJob:
1) in TOS we try understand job to understand the data flow and to design our job.
there we have: inlineJob, subJob, childJob. please see:job_define.JPG
2) tRunJob can work in two modes: "inlineJob mode" and "subJob mode". please see:tRunJob_mode.JPG

Pic #1 : job_define.JPG
Pic #2 : tRunJob_mode.JPG

i hope that helps answer your question!
One Star

Re: How to build master job

Thank you a lot for pictures.
One Star

Re: How to build master job

What happens if a job has two outputs? For instance the job 'Split' split a file into two let say A and B.
If a master job call Split and connect it wit a tFilter component, whose rows are send to the filter? A's rows or B's rows?
One Star

Re: How to build master job

the rows that meet your filter condition(s) go to the main row
the rows that do not go to the reject row
then you have to connect those row outputs to whatever the output location is