<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] Customizing the unique name of a component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289214#M62618</link>
    <description>That is a clever solution! I think we'll use it! Thanks again, Shong!</description>
    <pubDate>Mon, 28 Jan 2013 19:53:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-01-28T19:53:28Z</dc:date>
    <item>
      <title>[resolved] Customizing the unique name of a component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289210#M62614</link>
      <description>I have some pretty complex Talend jobs designed, and they will involve many tRunJob components, as well as numerous tMySQLInput components, etc. The work will be handed off to be administered by another team.&lt;BR /&gt;I am using the log_catcher, stat_catcher, and the error recovery checkpoints features in Talend, and the issue I anticipate is that all of these features rely on references to the components' unique names, and do not include the labels assigned in the TISPE UI.&lt;BR /&gt;I have, for example, a job that calls 7 subjobs, with the tRunJob component.  Unfortunately, when this job runs, it refers only to tRunJob_1, tRunJob_3, etc., instead of "Populate_Customers" and "Populate_Vendors", which would better inform those that are looking at logs and administering recoveries from failed runs to know what was going on in the job, and where to start the recovery point.&lt;BR /&gt;I want to rename the components so that the "origin" fields in the logs and the checkpoint names in the Admin Center reflect the function of the component (e.g. "Populate_Customers"), rather than the generic name (e.g. "tRunJob_2").&lt;BR /&gt;An exhaustive internet search has yielded no answers, but I can't imagine I'm the only one with this need, so perhaps I'm (hopefully) missing something simple?</description>
      <pubDate>Sat, 16 Nov 2024 12:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289210#M62614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Customizing the unique name of a component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289211#M62615</link>
      <description>Hi
&lt;BR /&gt;You are not the only person who asked for the same request, unfortunately, it is impossible to have a custom name of a component in the log/stat table yet.
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 25 Jan 2013 02:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289211#M62615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-25T02:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Customizing the unique name of a component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289212#M62616</link>
      <description>Thanks, Shong. Yours have been the most useful responses to other inquiries I've found on this and other subjects. 
&lt;BR /&gt;Is there a way I can refer to the component's label via the globalMap.get() function? That way I may be able to insert the component label in the log message? 
&lt;BR /&gt;Thank you!</description>
      <pubDate>Fri, 25 Jan 2013 21:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289212#M62616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-25T21:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Customizing the unique name of a component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289213#M62617</link>
      <description>Hi 
&lt;BR /&gt;The label does not support the format of context variable or global variable, one solution can be that explicitly transform the component's label on tMap. For example: 
&lt;BR /&gt;tRunJob:_1 
&lt;BR /&gt; | 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt; | 
&lt;BR /&gt;tRunJob_2 
&lt;BR /&gt; | 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt; | 
&lt;BR /&gt;tRunJob_3 
&lt;BR /&gt;tLogCatcher--main(row2)--tMap---tMysqlOutput 
&lt;BR /&gt;on tMap, set the expression of origin column of output table like: 
&lt;BR /&gt; 
&lt;PRE&gt;row2.origin.equals("tRunJob_1")?"name1":(row2.origin.equals("tRunJob_2")?"name2":"name3")&lt;/PRE&gt; 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 28 Jan 2013 02:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289213#M62617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-28T02:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Customizing the unique name of a component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289214#M62618</link>
      <description>That is a clever solution! I think we'll use it! Thanks again, Shong!</description>
      <pubDate>Mon, 28 Jan 2013 19:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289214#M62618</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-28T19:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Customizing the unique name of a component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289215#M62619</link>
      <description>I'm so new in Talend and I was looking for some useful way to do the same thing and I ended in the same place: maybe it's not posible 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;When I need the origin given by a tLogCatcher, passing the parameters to a tJavaRow, in its code editor, you can use ... 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;if (((String)input_row.origin).equals("tComponent_1")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; globalMap.put("origin", "New_Name_1");&lt;BR /&gt;}else if (((String)input_row.origin).equals("tComponent_2")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; globalMap.put("origin", "New_Name_2");&lt;BR /&gt;}else if (((String)input_row.origin).equals("tComponent_3")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; globalMap.put("origin", "New_Name_3");&lt;BR /&gt;}else if (((String)input_row.origin).equals("tComponent_4")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; globalMap.put("origin", "New_Name_4");&lt;BR /&gt;}else if (((String)input_row.origin).equals("tComponent_5")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; globalMap.put("origin", "New_Name_5");&lt;BR /&gt;}else if (((String)input_row.origin).equals("tComponent_6")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; globalMap.put("origin", "New_Name_6");&lt;BR /&gt;}else if (((String)input_row.origin).equals("tComponent_7")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; globalMap.put("origin", "New_Name_7");&lt;BR /&gt;}else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; globalMap.put("origin", input_row.origin);&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;I hope someone can give us another more elegant option. 
&lt;BR /&gt;Thank you very much</description>
      <pubDate>Wed, 09 Mar 2016 10:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289215#M62619</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-03-09T10:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Customizing the unique name of a component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289216#M62620</link>
      <description>There's a nicer solution We've found. 
&lt;BR /&gt;tPreJob -&amp;gt; tFileInputXML -&amp;gt; tSetGlobalVar 
&lt;BR /&gt;in the tFileInputXML I pass the relative path of the item's directory (i.e c:\Talend\workspace\ProjectName\process\) 
&lt;BR /&gt;and the name of the directory in the repository in which my job resides. 
&lt;BR /&gt;FileName = context.items_dir + context.repository_dir + "\\" + jobName + "_" + jobVersion + ".item" 
&lt;BR /&gt;in the XPATH I pass the location of the UNIQUE_NAME and LABEL and pass them to tSetGlobalVar. 
&lt;BR /&gt;key = row1.UNIQUE_NAME + "_LABEL" 
&lt;BR /&gt;value = row1.label. 
&lt;BR /&gt;in tStatCatcher i use tMap and get globalMap.get(row2.origin + "_LABEL"). 
&lt;BR /&gt;This gives me the label of the palette each time. 
&lt;BR /&gt;The only thing to remember is that this prejob must be included in each subjob, 
&lt;BR /&gt;the items_dir passes as a parameter to each job, and only the repository_dir changes in each subjob. 
&lt;BR /&gt;When building the job, you need to include the items (it's a checkbox) and then change the items_dir 
&lt;BR /&gt;in the context file. 
&lt;BR /&gt;Hope this helps,</description>
      <pubDate>Tue, 16 Aug 2016 07:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Customizing-the-unique-name-of-a-component/m-p/2289216#M62620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-16T07:32:08Z</dc:date>
    </item>
  </channel>
</rss>

