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.
@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.
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.
I assume you run Talend through unix environment as exported job.
When calling the talend job
result = $?
Now result would hold either 1 or 0 depending of the success of talendjob.sh
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.
Are you looking for execution Plan on TAC ?
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.
We are helpless unless you are ready to provide more information about your job flow. Could you please provide your current job flow, the input data and the expected output data and the expected return value details? Also please advise how you are planning to schedule it and what are you trying to say when you are mentioning "Talend graph"? Is it the flow of the job or are you mentioning about visual graphs?
There is only one graph with 4-5 component if any component is throwing exception then graph should return 0 otherwise 1.
try to think different
by default (and always) - each program which finished successfully return 0, and bash, talend, powershell and etc can manage this values
if job finished without error - it automatically returns 0
if you need return any other code - use tDie with preferred code (it could be more than 1)
Try Talend Cloud free for 30 days.
Introduction to Talend Open Studio for Data Integration.
Practical steps to developing your data integration strategy.
Create systems and workflow to manage clean data ingestion and data transformation.