<?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: globalMap usage in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/globalMap-usage/m-p/2349065#M116091</link>
    <description>&lt;BLOCKQUOTE&gt;
  rhall_2.0 wrote: 
 &lt;BR /&gt;How are your job A and B related? 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;They are not related. &amp;nbsp;And in a real-world scenario, I would likely have a dozen or more Jobs (some related, some unrelated) that would utilize common global variables. 
&lt;BR /&gt;So I'm guessing I might be out of luck?</description>
    <pubDate>Wed, 28 Sep 2016 16:52:26 GMT</pubDate>
    <dc:creator>PaulyWally</dc:creator>
    <dc:date>2016-09-28T16:52:26Z</dc:date>
    <item>
      <title>globalMap usage</title>
      <link>https://community.qlik.com/t5/Talend-Studio/globalMap-usage/m-p/2349063#M116089</link>
      <description>&lt;P&gt;I'm in a situation where it would be beneficial to save/access/alter a single variable between different Jobs. &amp;nbsp;Looking at the documentation, I thought globalMap would be the solution. &amp;nbsp;However, if I set a variable in Job 'A' and try to retrieve it in Job 'B' it is empty. &amp;nbsp;No errors or otherwise. &amp;nbsp;It's just empty.&lt;BR /&gt;&lt;BR /&gt;In Job 'A' I set the variable in a tJavaRow using:&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;globalMap.put("Default_Group", 1234);&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;In Job 'B' I try to retrieve the variable in a tMap using:&lt;/P&gt; 
&lt;PRE&gt;(Integer)globalMap.get("Default_Group")&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Using globalMap.get in Job 'A' works perfectly. &amp;nbsp;I just can't retrieve the variable in Job 'B'. &amp;nbsp;I'm hoping someone can tell me what I'm doing wrong... or if there is a better solution. &amp;nbsp;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 15:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/globalMap-usage/m-p/2349063#M116089</guid>
      <dc:creator>PaulyWally</dc:creator>
      <dc:date>2016-09-28T15:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: globalMap usage</title>
      <link>https://community.qlik.com/t5/Talend-Studio/globalMap-usage/m-p/2349064#M116090</link>
      <description>The globalMap variables are only global with a Talend job. They don't span jobs. However there is always a workaround. How are your job A and B related?</description>
      <pubDate>Wed, 28 Sep 2016 16:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/globalMap-usage/m-p/2349064#M116090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-28T16:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: globalMap usage</title>
      <link>https://community.qlik.com/t5/Talend-Studio/globalMap-usage/m-p/2349065#M116091</link>
      <description>&lt;BLOCKQUOTE&gt;
  rhall_2.0 wrote: 
 &lt;BR /&gt;How are your job A and B related? 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;They are not related. &amp;nbsp;And in a real-world scenario, I would likely have a dozen or more Jobs (some related, some unrelated) that would utilize common global variables. 
&lt;BR /&gt;So I'm guessing I might be out of luck?</description>
      <pubDate>Wed, 28 Sep 2016 16:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/globalMap-usage/m-p/2349065#M116091</guid>
      <dc:creator>PaulyWally</dc:creator>
      <dc:date>2016-09-28T16:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: globalMap usage</title>
      <link>https://community.qlik.com/t5/Talend-Studio/globalMap-usage/m-p/2349066#M116092</link>
      <description>You may find what you're looking for in context variables. &amp;nbsp;Setting up a shared context allows multiple jobs to reference the same variables. &amp;nbsp;You can set default values for the context variables, but Talend won't save changes between execution of jobs.
&lt;BR /&gt;
&lt;BR /&gt;If you want independent jobs to update variables visible to each other, you may need to set up persistent storage in a file or database table. &amp;nbsp;</description>
      <pubDate>Wed, 28 Sep 2016 18:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/globalMap-usage/m-p/2349066#M116092</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2016-09-28T18:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: globalMap usage</title>
      <link>https://community.qlik.com/t5/Talend-Studio/globalMap-usage/m-p/2349067#M116093</link>
      <description>As cterenzi said, context variables may be a good option for you. But you would have to use them in conjunction with a database or flat file. You could use the tContextLoad (to load the values into your job) and tContextDump to output them to the db/file. This is not uncommon, but you will need to make sure you handle things like timing, for example. If you have 2 jobs reading/updating the same context variables at the same time, it could get messy. You can get round this by linking context variable values to specific jobs in your file/db, so the problems are easily solved. You just need to consider all scenarios.&amp;nbsp;</description>
      <pubDate>Wed, 28 Sep 2016 22:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/globalMap-usage/m-p/2349067#M116093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-28T22:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: globalMap usage</title>
      <link>https://community.qlik.com/t5/Talend-Studio/globalMap-usage/m-p/2349068#M116094</link>
      <description>Context variables is the right solution for you. You just need to make sure that when a job is reading the context variable, another job is not updating it.</description>
      <pubDate>Thu, 29 Sep 2016 05:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/globalMap-usage/m-p/2349068#M116094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-29T05:13:42Z</dc:date>
    </item>
  </channel>
</rss>

