I want to create Context variables Dynamically without using Context Group in job. Can any one help on this.
If you want to assign values dynamically to a context variable , then the only option is to create these variables in the context tab of the job. Create a variable, assign the type and leave the values blank.
From your job assign values using tjava component like this
context.yourContextVar = "theValueToBeAssigned";
You could also load the context values from a text file or a database table using tFileInputDelimited or tDBInput-------> tContextLoad. This will dynamically load / modify the active context values.
I don't think it is possible in Talend. All you could do is hard code the values. Context variables just acts as an alias name in Talend as far as I've used them.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Pick up some tips and tricks with Context Variables
Learn how media organizations have achieved success with Data Integration
Practical steps to developing your data integration strategy.