• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » transmit a context variable to the next job.

#1 2012-07-23 11:49:25

lino
Guest

transmit a context variable to the next job.

Tags: [context]

Hi,

I've something like this in my job master :

tRunJob1 (Job A) ---------OnComponnentOk--------->tRunJob2 (Job B).

I have in my job A some context variables I'd like to transmit to my job B.

how can I proceed?

Thanks

#2 2012-07-23 11:52:08

kk2205
Member
Registered: 2012-06-26
Posts: 18

Re: transmit a context variable to the next job.

Hi,


In tRunJob you have the option of "Transmit whole context" check that option.


Thanks
Kiran

Offline

#3 2012-07-23 11:57:10

lino
Guest

Re: transmit a context variable to the next job.

Thanks Kiran,

I have checked this option, but my problem persists. Is it the fact that it's not a job son?

#4 2012-07-23 12:07:11

pentaloc
Member
Registered: 2012-06-25
Posts: 12

Re: transmit a context variable to the next job.

Hey lino,

i'm not sure, but could you run the tRunJob2 Component in the first job? In my opinion you only passed
the context of the job master and not the context of the first job.

Offline

#5 2012-07-23 12:34:34

lino
Guest

Re: transmit a context variable to the next job.

thanks Pentaloc,

According to the building of my project, I could not run the tRunJob2 Component in the first job.

I wonder if I can pass variables of contexts of a job to another executed after the first.

#6 2012-07-23 14:47:23

kk2205
Member
Registered: 2012-06-26
Posts: 18

Re: transmit a context variable to the next job.

Hi,


In first job capture context variables  tBufferoutput then in master job process as follows.


tRunjob_1-->main--> tRunjob_2-->

tRunjob_2 : in context Param give the parameters like below screen shots.

Please find attached screenshots of First Job and Master job

Note: In FirstJob in Tmap add context values.



Thanks
Kiran


Uploaded Images

Last edited by kk2205 (2012-07-23 14:58:08)

Offline

#7 2012-07-23 15:18:49

lino
Guest

Re: transmit a context variable to the next job.

Thks a lot Kiran,

very good idea.
in fact i do not use main trigger but OnComponnentOk between the 2 tRunJob.

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » transmit a context variable to the next job.

Board footer

Powered by FluxBB