tRunJob : retrieve context variable value redefined inside a subjob

One Star

tRunJob : retrieve context variable value redefined inside a subjob

Hi,
I tried the following :
- starting on a master job, I send a context variable value to a subjob using the tRunJob module ;
- then inside the subjob I redefine the value of this context variable ;
- and then back in the master job I would like to use the redefined value that was set inside the subjob.
Unfortunately it looks like it is not possible, since context variables cannot be retrieved from a subjob.
Am I right ?
Thanks
Employee

Re: tRunJob : retrieve context variable value redefined inside a subjob

Hello,
I'm sorry to say yes you're right.
If you want to share variables between jobs, you have to write them to tmp file or tmp databases.
Regards,
Michaël
One Star

Re: tRunJob : retrieve context variable value redefined inside a subjob

is this also not possible if i wish to send context parameters to subjobs and sub-sub jobs .....
Employee

Re: tRunJob : retrieve context variable value redefined inside a subjob

aviator,
I don't understand what you mean.
You can pass parameters from grand father to son jobs via the father without any difficulties.
Automatically and manually...
You just need to share the same context between the 3 jobs.
One Star

Re: tRunJob : retrieve context variable value redefined inside a subjob

what i mean is : context parameters whose values have been redefined in a tJava component, can they be passed to sons, grandsons and so on ?
because when i try this i get errors ............ correct me .. am i missing something
Employee

Re: tRunJob : retrieve context variable value redefined inside a subjob

First basic answer :
tJava component should never modify "internal" variable.
Context values can be modified using tContextLoad and this is the only correct behavior that I would ever recommend.
What would happend to your job if we modify those internal variables ?
What is your TOS version ?
I think that it's probably related to 5393
HTH,
One Star

Re: tRunJob : retrieve context variable value redefined inside a subjob

Ok i guess thats the problem i am having.... Could you explain how it can be modified using a tcontextload?
Many thanks Smiley Happy
One Star kcd
One Star

Re: tRunJob : retrieve context variable value redefined inside a subjob

Perhaps in the next version there can be a special Load-Context-Prejob because I have this problem loading a config in every job

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

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

Downloads and Trials

Test drive Talend's enterprise products.

Downloads