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

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

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

All 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

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch