You are not logged in.
Announcement
Unanswered posts
|
Dear steveo250k
Sorry for delay, I just see your topic.
About your question, you are trying to pass a variable to parent job from child job. To do this, you need to use a tBufferOutput component in child job.
For example:
in Child job:
....your other job...
|
onsubjobok
|
tFixedFlowInput--main--tBufferOutput
on tFixedFlowInput: add one column let's call it emailList on schema, set its value as context.EmailList
parent job:
tJava
|
onsubjobok
|
tRunJob--main--tJavaRow
|
onsubjobok
|
tJavaFlex
on tRunjob, add one column "emailList"on schema.
on tJavaRow:
context.EmailList=Input_row.emailList;
Best regards
Shong
I guess not.
deletepostspam
Hello. Is anyone there? This seems like a trivial problem but I'm not seeing the solution.
I'm trying to read a list of email addresses from a database table set up for that purpose. I want to reuse this functionality in many jobs so I created a sub job called Read_Notify_List. The database table holds records with the email and the job or application which the email belongs to.
My job imports EmailApp and EmailList as context variables. I set EmailApp as appropriate for the job then call Read_Notify_List as a subjob. Read_Notify_List uses EmailApp in the SQL to read in a list of email addresses and create a string of these addresses for that job. This works as I can use a System.out.printf statement in Read_Notify_List and see the constructed email list. Read_Notify_List then sets the context variable EmailList to this string.
But when I get back to the calling job the context variable EmailList empty. It looks like I'm successfully passing context variable to a subjob, but how do I pass a context variable back to calling job?