One Star

[resolved] How to pass values from child job to parent job

Hi,

I would like to ask for anyone's help here:
I have this setup:
Main:
tRunJob1
|
|(on subjob ok)
|
tRunJob2

tRunJob1:
tJava
|
| (row main)
|
tBufferOutput
Now, I have to set the value in tJava, say msg="hello", how can I access that in tRunJob2?

Thanks,
Brevis Iunius
1 ACCEPTED SOLUTION

Accepted Solutions
Community Manager

Re: [resolved] How to pass values from child job to parent job

Hi
Using the context variable, let's say there is a context variable called name both in main job and tRunJob2,
Main:
tRunJob1--main--tJavaRow
|
|(on subjob ok)
|
tRunJob2
on tJavaRow:
context.name=input_row.name;
For more details, see
http://www.talendforge.org/forum/viewtopic.php?id=1654
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
2 REPLIES
Community Manager

Re: [resolved] How to pass values from child job to parent job

Hi
Using the context variable, let's say there is a context variable called name both in main job and tRunJob2,
Main:
tRunJob1--main--tJavaRow
|
|(on subjob ok)
|
tRunJob2
on tJavaRow:
context.name=input_row.name;
For more details, see
http://www.talendforge.org/forum/viewtopic.php?id=1654
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] How to pass values from child job to parent job

Thank you very much shong! You're so good. It worked nowSmiley Happy
Brevis Iunius