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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
PhilHibbs
Creator II
Creator II

Maintenance of globalMap strings

Has anyone come up with any techniqued for managing those hard-coded globalMap string references that litter Talend jobs?

 

By that I mean:

((Integer)globalMap.get("tHashOutput_1_NB_LINE")) > 0 
((String)globalMap.get("row1.file_name"))

The first one has the advantage that tHashOutput_1 never changes its name, but the disadvantage that if you've given tHashOutput_1 a meaningful name then you have to hunt around clicnking on all your tHashOutput components to find the right one. The latter has the advantage of matching what is on the canvas, but the disadvantage that if you get around to giving row1 a meaningful name, then your code breaks.

 

I'm thinking of building a tool that scans an export and loads all this information into a spreadsheet or database, and attempts to search for and correlate all the globalMap references to the links and components that they refer to. Sadly I'm not on this project much longer and probably will not be using Talend on my next project so this will not happen for a while.

Labels (2)
1 Reply
Anonymous
Not applicable

That's an interesting idea. You could use the .item files to do this. They XML files, so you could quite easily build a job in Talend to do this. I have written jobs to do similar things in the past.

 

It should be pointed out that the component names don't actually change. You are simply assigning a label which is just for ease of reading. I agree, it can be frustrating when searching for which component the globalMap value is coming from though.