Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I want to create Context variables Dynamically without using Context Group in job. Can any one help on this.
Thanks
Hi @karthik_T,
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.
Hi dipanjan93,
I want to declare the context variables without using context tab or context group.
Thanks.
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.