Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[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
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

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
https://community.talend.com/t5/Design-and-Development/Passing-context-parameters-in-a-tRunJob/td-p/...
Best regards
Shong

View solution in original post

2 Replies
Anonymous
Not applicable
Author

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
https://community.talend.com/t5/Design-and-Development/Passing-context-parameters-in-a-tRunJob/td-p/...
Best regards
Shong
Anonymous
Not applicable
Author

Thank you very much shong! You're so good. It worked now 0683p000009MACn.png
Brevis Iunius