Five Stars

Job Automation

I have 2 set of jobs (job A and job B) which include insert and update of data depending on some criteria . These jobs run daily. Everyday I get a new file and  looking at the data i decide which one of the two i need to run.

 

In the file there is a field called state. And state field can have 3 values : a,c or d.

If state field has only a's in it then I need to run the Job A

If the state field has a mixture a,c and d vales then i need to run job B

 

My problem statement is : I want to automate the above process. I want to have a new job which will check the vales in state field and decide which job to run next.(using tRunjob). Can someone guide me how to do i achieve this in Talend? Below are two images . 1 one is what i have and 2 one is what i want to achieve

job scenario.JPGjobop.JPG

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Seven Stars

Re: Job Automation

Should be pretty similar to your second pic.  Try the following

Untitled.png

 

You can use the "run if" conditional to branch and run subjobs based on conditions.

2 REPLIES
Seven Stars

Re: Job Automation

Should be pretty similar to your second pic.  Try the following

Untitled.png

 

You can use the "run if" conditional to branch and run subjobs based on conditions.

Five Stars

Re: Job Automation

Thanks . Will Implement this and let you know .