Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi People,
I am newbie to talend...and was trying out to build a job....
My requirement is
tRowGenerator >> Row1>>tSetGlobalVariable>>row2>>tJava
I have generated one random field called name using TalendData.getname() function. E.g (Aarya)
in tSetGlobalVariable
For Parameter "myKey"
Value " (String)globalMap.get(row1.name)"
In tjava
System.out.println("myKey")
unfortunately I output as myKey and I expect Aarya.
Can some one explain what am I doing wrong?
https://help.talend.com/reader/nXPtKhielAtSqFD6_f7~OQ/JUkDAmEh26ipMZfskbUXjQ
Above will help.Please mark topic as resolved.
No need to tRowGenerateor
in tSetGlobalVar , put "myKey" as TalendDataGenerator.getFirstName().
the in tJava
System.out.println((String)globalMap.get("myKey"));
It is quite simple can you show your job .
Did you connect tSetGlobalVat to tJava on OnsubjobOK ?
Can you please give screenshot of your job
https://help.talend.com/reader/nXPtKhielAtSqFD6_f7~OQ/JUkDAmEh26ipMZfskbUXjQ
Above will help.Please mark topic as resolved.