Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

shong
2012-02-20 14:17:47

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

steveo250k
2012-02-17 16:28:57

I guess not.

Lymnnundexy
2012-01-17 05:14:22

deletepostspam

steveo250k
2012-01-14 14:52:41

Hello.  Is anyone there?  This seems like a trivial problem but I'm not seeing the solution.

steveo250k
2012-01-12 20:42:37

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?

Board footer

Powered by FluxBB