Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Return value from Talend Job

Hi,

 

Our requirement is when Talend job successfully complete without any error,Then Talend graph should return 1 so this number can be accepted by another script and can perform other activity.

How to achieve this requirement in Talend. Please assist.

 

Regards,

Vivek

Labels (2)
12 Replies
manodwhb
Champion II
Champion II

@vivek_u ,if you want to return the values ,then you can use tJava component on success of the the job and print the value which wan to return.

Anonymous
Not applicable
Author

Hi,

 

Where to put t java component and where to find event called 'on success of the the job' Can you elaborate and show how to design that.

 

Regards,

Vivek

Anonymous
Not applicable
Author

I assume you run Talend through unix environment as exported job. 

 

When calling the talend job

./talendjob.sh

result = $?

 

or 

 

result= ./talendjob.sh

 

Now result would hold either 1 or 0 depending of the success of talendjob.sh

Anonymous
Not applicable
Author

Thanks Vignesh.

However we would like to know how to achieve this is in Talend job (related design and on which event) ?

 

Regards,

Vivek

Anonymous
Not applicable
Author

Hi, 

 

How are you planning to deploy and run the job in PROD? after development. 

 

That plan is needed to get information of triggering another job on this jobs success or failure

 

If you are going to trigger another TalenD job then you can have job 1 and job 2 as sub jobs in job 3. with condition tigger "on  subjob OK" linked from job 1 to job 2. use tRunJob component to create subjobs in talend. 

 

 

akumar2301
Specialist II
Specialist II

Anonymous
Not applicable
Author

We have only one main job where all components are designed.

Anonymous
Not applicable
Author

This is not working... subjob ok is always executing only one condition even component thrown error as well

Anonymous
Not applicable
Author

Hi,

 

    Did you print and verify the value which is getting returned from the job?

 

    Based on the return value, if you want to trigger another job, you can also try Run if condition.

 

     Say, run Job B if return value is 1. Run Job C if return value is 0.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂