Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Can we access global Map variables declared in Child Job from parent job

I just want to get the count of records processed in child job into Parent job using global variables. If anyone knows the process, please do reply.

 

Thank you,

Labels (3)
2 Replies
Anonymous
Not applicable
Author

Hi,

 

    You can do it easily using context variable transmission from parent to child. Please refer the below link for details.

 

https://community.talend.com/t5/Design-and-Development/resolved-Parent-and-Child-Jobs-Contexts/td-p/...

 

   If your query is to transmit the data back from child job to parent job, I have already answered your query in another post. The link is as shown below. I would request you not to create duplicate posts on same topic.

 

https://community.talend.com/t5/Design-and-Development/Can-We-pass-variables-from-Child-job-to-Paren...

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved

Anonymous
Not applicable
Author

Hi @bojareddy,

I don't think Global Variable can achieve this... but using tBufferOutput component, at the end of the child job can.

For this example i used a tFixedFlowInput to simulate one row with schema : NB : integer|int. (value here is 50)

In the parent job, just draw a row from the tRunJob component to retrieve the data from child.

Don't forget to check that tRunJob schema in parent job is the same as tBufferOutput schema in the child Job, a shortcut to do this is the copy child schema option of the tRunJob component.

0683p000009M7nZ.png

 

 

 

Global Design :
0683p000009M7hc.png

 

See documentation here : https://help.talend.com/reader/PZLIDN6i9dp44W62WYylEw/ELtD2qCuYfbOpfoL_p7FIw

 

Hope this can help you.