Hi I have the following requirement. I want to load the context from the file dynamically when the job starts. And on top of it I want to pass the location of the file which has the context variables when I run my job. Is it possible to pass a run time parameter ?
which talend job version is this feature present in ? And is it possible to dump dynamically generated values using tcontextDump? Because i tried this and it din work ..... the file did not save the value if the context which i had set dynamically using tJava......... only the pre configured contexts were saved
Hi Thanks for all the replies Shong thanks for the reply. In fact I have gone through the user document for tContextLoad. I am able to load the context dynamically from the file. Firsy componenet is tFileinputDelimited and second is the tcontextLoad which loads the context from the file specified in the first component. But my problem is not only the context even the file localtion for tFileInputDelimited should also feed by the user. May I know is it possible to do this?
Use the tSystem function to extract values from a shell script (outout set to normal) pass the output of this to a tMap to create the key, value pairs and then pass the output of this to the tContextLoad. The tSystem calls a simple shell script which returns delimited pairs of values. The tMap then breaks this up by split the string (probably a better way of splitting the string). Simple yet effective for us.