Create a child job
like as shown below and define a context
variable “name”
Create a parent job
like as shown below: (Child
is a tRunJob
component
which is calling the above Job)
To access the above value in tRunJob_1
, define this component’s properties as
below. Note the “Context
Param" definition, this is how we can set the
value in the context variable and retrieve it in the child job.
Method1: Using Context Param option
Method2: Enable transmit whole context
tJava
_1 in
Child Job can simply retrieve its value :
System.out.println("name in the child job: "+context.name);