You are not logged in.
Announcement
Unanswered posts
|
Hi,
I've the same problem.
I populate a context's variable in a subjob but when I turn back to main job, if I call that variable from a tJava component, it's "null".
I've tried also using a tBufferOutput but it doesn't work correctly.
How can I pass values set in subjob to the main job?
Thanks
I made it accessible creating the context variable in the main job and selecting an option as in the picture. It allows to pass the value of the variable to the subjobs.
Thanks
Hi
This context variable is accessible by all subjobs in this job.
Regards,
Pedro
The situation is:
I have 2 subjobs: A and B inside a job called MAIN.
In the subjob A I valued a context variable named context.process_id and I need to read the value of context.process_id in subjob B. Is it possible to do it?
Thanks very much Pedro
Hi
In fact, I feel confused about these concepts you mentioned at Comment#1.
Usually in talend, a project means it contains several jobs which are saved in the same workspace\ProjectName.
A subjob means a combination with several components just in one job which you can use 'OnSubjobOk' or 'OnSubjobError' or 'Run-if' to trigger.
It seems that I misunderstand your requirement. I'm sorry.
Regards,
Pedro
As asked in subject I've got a context variable valued in a subjob and I want to make it available in all the project (other subjobs included). How can I achieve it?
Thanks in advance. ![]()