<?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: Question on variable scope: subjobs, joblets, tRunJob, tJavaRow, tJava in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Question-on-variable-scope-subjobs-joblets-tRunJob-tJavaRow/m-p/2248800#M33543</link>
    <description>Hi,&lt;BR /&gt;Would you mind sharing your current job design screenshot into forum?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
    <pubDate>Mon, 18 Jan 2016 02:45:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-18T02:45:48Z</dc:date>
    <item>
      <title>Question on variable scope: subjobs, joblets, tRunJob, tJavaRow, tJava</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Question-on-variable-scope-subjobs-joblets-tRunJob-tJavaRow/m-p/2248799#M33542</link>
      <description>Hi, 
&lt;BR /&gt;I would like some information on variable scope when working within a subjob, working across multiple subjobs in the same job, when executing a joblet vs a tRunJob. &amp;nbsp; 
&lt;BR /&gt;How are variables shared, context shared and are globalMaps shared or not?&amp;nbsp; 
&lt;BR /&gt;I am also interested in how these are impacted when you parallelize a flow, for example using round robin allocation to threads from an input component. &amp;nbsp; 
&lt;BR /&gt;I am trying to create a complex, multi level mongoDB document, and want to speed it up through parallelization, but I have a high dependency on storing documents I am creating in the globalMap, so I can carry on down the flow, execute more SQL parameterised by globalMap variables and build an embedded document. 
&lt;BR /&gt;It works, but it is slow...so I want to make the first tOracleInput parallelized, so each row goes out to a different thread....but then my globalMaps will be trampling all over each other. 
&lt;BR /&gt;I tried writing things into the globalMap using a combination of the threadID and the object key name, using globalMap.get("tCollector1_THREAD_ID"), but I don't understand how this gets populated...surely if its in the globalMap, the threads are trampling all over this value all the time also? 
&lt;BR /&gt;Perhaps I should create joblets or subjobs to make sure I have separate scopes, and pass things by reference using contexts?&amp;nbsp; 
&lt;BR /&gt;Is there any advice or documentation on this please? 
&lt;BR /&gt;Regards 
&lt;BR /&gt;i</description>
      <pubDate>Wed, 13 Jan 2016 23:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Question-on-variable-scope-subjobs-joblets-tRunJob-tJavaRow/m-p/2248799#M33542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-13T23:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Question on variable scope: subjobs, joblets, tRunJob, tJavaRow, tJava</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Question-on-variable-scope-subjobs-joblets-tRunJob-tJavaRow/m-p/2248800#M33543</link>
      <description>Hi,&lt;BR /&gt;Would you mind sharing your current job design screenshot into forum?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 18 Jan 2016 02:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Question-on-variable-scope-subjobs-joblets-tRunJob-tJavaRow/m-p/2248800#M33543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-18T02:45:48Z</dc:date>
    </item>
  </channel>
</rss>

