Reg: Storing a value into variable and passing to next job or componen
Hi All,
In my mapping I generates a value dynamically, I have to store this value in to a variable and pass it to a tMysqlRow as context. How can I do this in Talend? Currently I am doing this by writing a value to a flat file first and reading the value as a context from flat file to tMysqlRow. This one looks like over work to me and I want to scale it down by a better solution. Can any has an answer for this?
Thanks
Naju
Hello
You can store the value in a context var or global var, for example:
context.name="newValue"
or
globlaMap.put("name",value)
on next subjob, get the value by:
(String)globalMap.get("name")
Best regards
Shong
Hello, after a taggregate i have a tjava component : i test with ca as float or integer.. System.out.println(String.valueOf(row3.ca)); but display is always 0. if i put a tlogrow juste after taggregate, row3.ca = 25231 why??? the actual goal is : i want to send by mail the value of row3.ca thanks for help