Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How to do you pass a context variable group from Parent to child (trun)job
@AVINASH MEYYAPPAN ,check the below link.
https://help.talend.com/r/1RJ7TatgS73nP1RPGjT50w/RGvRFDFE3zpmX_rYN63gUw
Thanks,
Manohar
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