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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

use talend job-name as variable

Hello,
I'd like to use the name of the TOS-job within the job itself.
Is this possible? How do I get this information?
I'm coding in java.
Tkanks a lot!
Labels (3)
10 Replies
Anonymous
Not applicable

Hello
Yes, there is a global var: jobName, for example:
on tJava:
String name=jobName;
System.out.println(name);
tip: press ctrl+blank space in any text filed, you will see a list of global vars and context vars, eg: jobName, projectName.
Best regards
Shong
Anonymous
Not applicable

how can i print the context group being used in the job ? 
i have variables defined in context groups (DEV/QA/PROD). I want to print the group used in the job.
Anonymous
Not applicable

Hi m_shiva2003
You can access the context group with this variable contextStr in the job.
Anonymous
Not applicable

Thanks Shong. Appreciate your help.
where can i find list of standard global variables available in talend? ( i could't find in talend reference guide)
Anonymous
Not applicable

Hi  
No a documentation or article lists the these global variables yet, however I think there should be one. I will create a jire issue for this. 
Best regards
Shong
Anonymous
Not applicable

Hi Shong

 

Did you ever create the list of global variables?

manodwhb
Champion II
Champion II

@svs,when you execute it will take the current job name if you use jobName global variable

reinierD
Contributor
Contributor

Did that list every materialize?

Anonymous
Not applicable

@Reinier Battenberg​ , the list of global variable is documented in the each component documentation, let me know if you have any questions.

 

Regards

Shong