• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] assigning job name to context variable

#1 2012-05-10 11:48:50

distinct_limerick
New member
Registered: 2012-05-01
Posts: 7

[resolved] assigning job name to context variable

Tags: [context]

Hi All!

Does anyone know of a way to assign a job name to a context variable?

I have some components that catch errors and send emails to users but I would like to drop them into a large number of jobs I have but dont want to change the job name in the email text for each one manually.

can i do a tjavarow with the assignment:

context.job_name = input_row.job_name

??

Thanks for any help!

Offline

#2 2012-05-10 12:24:46

shong
Talend team
Registered: 2007-08-29
Posts: 10299
Website

Re: [resolved] assigning job name to context variable

Hi
There is a global variable jobName populated the job name. You can use it directly, for example:
context.job_name=jobName;

Best regards
Shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2012-05-10 13:29:32

distinct_limerick
New member
Registered: 2012-05-01
Posts: 7

Re: [resolved] assigning job name to context variable

Works perfectly!

Thanks Shong!!

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] assigning job name to context variable

Board footer

Powered by FluxBB