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
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
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.