Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi,
i created a JobLet to handle loading of context and calculation/derivation of variables for Jobs
It seemed like a good idea ...
Unfortunately, it does not work.
the context variables exist in a context defined in the project and used in the JobLet and Master Jobs - and Child Jobs
values of variables loaded from a flat-file and/or database
other variable values are calculated in tJava components
however, the variables values are NULL in the Master Job
A tContextDump shows the context variables to be blank
Has anyone come across with this type of behavior ?
what are the correct way of loading context variables using a JobLet ?
thanks
Hello,
A Joblet can access the context variables of the main Job, as it is a part of the main Job.
Which talend product and build version are you using?
Could you please post your job setting screenshots here which will be helpful for us to address your issue?
Best regards
Sabrina
thanks @Xiaodi Shi
unfortunately, i can not share details of these jobs/joblets.
it seems to be a problem with the tContextDump.
in tPreJob, the JobLet calculates/loads VARIABLES of a context group
in Main body of job, the tContextDump shows these variables with their values as default (blanks)
however, a tJava printing the values of the variables shows the VARIABLES with the correct values as per calculations.
created and tested on Talend Enterprise 6.3.1.20161216_1026
Could you please confirm this behavior?
Thanks
Hello,
Sorry for late.
Please raise this with support team? Our colleagues from support team will be able to recreate your environment and identify what is causing this.
Best regards
Sabrina