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