Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
Quick Question.
Is the global variable "projectName" available in a cConfig in a route?
"contextStr" seems to be available with
System.out.println(contextStr);
but I can't get the "projectName"
Thanks for any help
n
Not sure if it is actually possible to get "projectName" direct.
However Talend have provided me a workaround as the package of a cConfig contains the projectName.
String talendProjectName = this.getClass().getPackage().getName().split("\\.")[0];
did this for me.