Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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.

0683p000009MG9Z.png 
Labels (2)
5 Replies
Anonymous
Not applicable
Author

Hello
Please try using 
System.out.println(exchange.getContext().getName());
Anonymous
Not applicable
Author

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

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

How can I get to the Route name from cConfig ??
0683p000009MG9e.png 
Anonymous
Not applicable
Author

Actually I found this one:

camelContext.getName()