I want to define a global variable for a whole job, but as I don't know the Java language, it's hard to find what's wrong. I defined an object tSetGlobalVar_1 where I added a variable with key "filtre" associated with a value "PNOM". But how to use it, for example in a tJava object with a simple println ? Thanks. Thomas
I need to fetch configuration values such as the database credentials from an xml file. Store these in global variables. Then use the content of global variables in another job . To implement this I used the following steps 1) In Job one i used tFileInputXML ----> tJavaRow (store all values in context) --- on component OK --> tSetGlobalVar ( store values from context to variable inside tGlobalVar)
2)In job two I used tRunJob (call job one) ------ on Component OK ------>tJava ( print all the global variables defined in job one) Execution of job two prints null for all the global variables defined in job one. Can any body let me know where might be the problem ? and provide me a sample job to implement this. Thanks and Regards, Pravu Mishra.
If you say job one must call job two then I feel there is no point to define job two. I can do all these in job one which I do in job two.
I need to call the job one once from another dependant job. Job two is dependant on job one. Hence job one will be called from job two. I may also call the job one from another job (job three) that is dependant on job one. What you said may not be appropriate for this problem. Thanks and Regards, Pravu Mishra
I am using tSetGlobalVar and tJava components. One key "FILE_EXISTS" is defined in tSetGlobalVar, and the code inside tJava component is System.out.println(globalMap.get("FILE_EXISTS")); When I run the job null is printed out, even though the value for "FILE_EXISTS" is different. Please suggest