You are not logged in.

Unanswered posts



Important! This site has been replaced. All content here is read-only. Please visit our brand-new community at https://community.talend.com/. We look forward to hearing from you there!



#1 2017-01-03 12:34:35

sebast
Member
146 posts

sebast said:

How to get the name of the route inside the program

I am using Talend 6.2.1.

I have a simple route, I would like this route to print out the name of the route itself.
How can I get the name of the Route inside the program? What is the name of the variable I need to refer to get the name?
The name of this route is "test".

In Talend 5.5.1 to get the route name you had to refer to the "jobName" variable.

mini_GetRouteName.png 

Last edited by sebast (2017-01-03 13:00:04)

Offline

#2 2017-01-03 13:00:24

aband
Talend Team


aband said:

Re: How to get the name of the route inside the program

Hello
Please try using 
System.out.println(exchange.getContext().getName());

Offline

#3 2017-01-03 13:07:20

sebast
Member
146 posts

sebast said:

Re: How to get the name of the route inside the program

This works, so the jobName(or something similar) is not working anymore?

Offline

#4 2017-01-03 13:26:34

rhall_2.0
Member
1251 posts

rhall_2.0 said:

Re: How to get the name of the route inside the program

Routes are different to jobs. While context variables are shared you have to consider them very different beasts I am afraid.


rilhiaSolutionsLogo_0.png

Offline

#5 2017-01-03 13:32:16

sebast
Member
146 posts

sebast said:

Re: How to get the name of the route inside the program

How can I get to the Route name from cConfig ??
mini_Brez-naslova1.png 

Offline

#6 2017-01-03 13:39:03

sebast
Member
146 posts

sebast said:

Re: How to get the name of the route inside the program

Actually I found this one:

camelContext.getName()

Offline

Board footer

Talend Contributor Agreement - Talend Website Privacy Policy