Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Return value

Hi,
My Talend job is executed by Nagios, i would like to return a value generated by a tJava component at the end of the execution.
I've heard about the tBufferOutput but how can i link it with the tJava ?
Thanks
Labels (4)
3 Replies
Anonymous
Not applicable
Author

Hello
On tJava, put the return value to a global var, eg: globalMap.put("value",value).
On the next subJob, using tFixedFlowInput to generate this value and link it to tBufferOutput. eg:
tJava
|
tFixedFlowInput---tBufferOutput
On tFixedFlowInput, only generate one row, define one filed, set the value as; (String)globalMap.get("value")
Best regards
shong
Anonymous
Not applicable
Author

Hi ,

if we .sh file is returning some value if we run .sh file will it be shown in terminal or command promt?

Anonymous
Not applicable
Author

Hello ,

For debug, you can add some tLogRow components in the job to print the data on the console. Add this word "pause" at the end line of job script(.bat or .sh), to see the message printed on the command promt before the window closes.

Best regards

Sabrina