dynamically pass context parameters to a joblet

One Star

dynamically pass context parameters to a joblet

Hi
I want to change the contexts in my parent job dynamically according to the filters for a file. I am doing it via tJava. Now I want to pass these context parameters to the joblet dynamically. Can you tell how to do so?
thanks,
Nitin
Community Manager

Re: dynamically pass context parameters to a joblet

Hello Nitin
on the father job:
.....tJava---onComponentOk---tFixedFlowInput---jobjet_1
on tJava: change dynamically the value of context parameters
on tFixedFlowInput: define some columns and set the values with context parameters
on the job jet:
Input_1---row1-->tJavaRow
on tJavaRow: Using the input flow from father job, you could aslo define some context parameters in job jet and set new value to context parameter, eg;
context.nameInJobJet=row1.name
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: dynamically pass context parameters to a joblet

Thanks Shong!