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: 
Ameyy
Contributor
Contributor

How to do you pass a context variable group from Parent to child (trun)job

How to do you pass a context variable group from Parent to child (trun)job

2 Replies
manodwhb
Creator III
Creator III

@AVINASH MEYYAPPAN​ ,check the below link.

 

https://help.talend.com/r/1RJ7TatgS73nP1RPGjT50w/RGvRFDFE3zpmX_rYN63gUw

 

Thanks,

Manohar

Anonymous
Not applicable

Hello,

Here is a KB article about: Passing context variables from Parent job to Child jobs on community and maybe you could use another way of approaching as well.

You can set up a routine with static public variables. These will be available across your whole job (parent and child jobs). You can set this up really easily like below....

 

 

public class StaticVariables {

 

public static String myString1;

public static int myInt1;

}

....and access/assign these values using code like below (assuming your routine is called MyStaticVariables).....

routines.MyStaticVariables.myString1 = "Hello";

routines.MyStaticVariables.myInt1 = 100;

 

System.out.println(routines.MyStaticVariables.myString1);

System.out.println(routines.MyStaticVariables.myInt1+"");

Hope it helps

Best regards

Sabrina