Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
AlSalvC
Contributor II
Contributor II

Context issues with subjob

Hi everyone,

I have a subjob that uses a set of context groups. During the developement phase of this subjob I loaded manually the context groups that I needed. But now I have set up a parent job that will run the subjob multiple times automatically. While executing the parentjob, it seems that the contexts that I loaded manually are not loaded.

How can I make it so that some context groups are loaded at the beggining of the execution of the subjob?

11 Replies
Anonymous
Not applicable

You don't need to define the schema of tRunJob (ControlDateTest), you have already defined the context variables in child job, so you are able to select the context variables from the Context Param table in the basic setting panel of tRunJob.

To use a context variable, the expression is:

context.varName

 

eg:

System.out.println("the value of context variable is: "+context.varName);

 

 

AlSalvC
Contributor II
Contributor II
Author

Okay, So the problem was how I was calling the variable in the childjob. Thank you so much