Hi, I've got a tJava and set a variable String var1 = "test"; Now I want to access this variable somewhere else, for example in a MsgBox or what else. How can I access it? globalMap.get("tJava_1_..."); There is only ERROR_MESSAGE .. _1_currentPath doesn't work either. Can someone help me? Thank you.
Hi, it works within one job, but when I call tRunJob and try to System.out.println the variable in the childjob I see: null For the tRunJob I've choose to: Transmit whole content. What do I have to do if I want to pass this variable to a child? Bye, Chris
The globalMap instance is specific to a job, transmitting the context to a child job wont changes this. If you intent to transmit a variable to child job, use the context then, it should be straitforward.
Hello, Existing two way to manage variable and parameter in a talend job. 1) globalMap is used to set variable in a Job, it's a hashmap 2) context var is used to set parameters So, to achieve your goal, 1) you need to create context var in your childjob 2) With the tRunJob, use the context param tab, create a row, select the childjob context var in the first column, and set your expresion in the second one : globalMap.get("MyVar") the transmit whole context checkbox is only for to transmit value of context var with same name from fatherjob to childjob.
Hi, How Can I share the global map between father an son job. I see that it's possible using context. In fact I have lots of parameters , so It will be hard to create a context variable for each parameter. Thanks for your replay James