<?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: Scope of context in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252106#M35853</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000006dyyJAAQ"&gt;@PhilHibbs&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My purpose is to clone the same job into many running jobs&lt;/P&gt; 
&lt;P&gt;And I use the context to save the segment details.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Actually, in my database, I create a column name 'Segment' to separate data into my collection.&lt;/P&gt; 
&lt;P&gt;Each clone job will run on a segment.&lt;/P&gt; 
&lt;P&gt;But I have test with small amount data, and the context save different value on each time we set it.&lt;/P&gt; 
&lt;P&gt;It mean that 2 running job have different values event we use the same context.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2020 09:14:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-18T09:14:46Z</dc:date>
    <item>
      <title>Scope of context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252100#M35847</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know about the scope of the context variable.&lt;/P&gt;
&lt;P&gt;I create one context variable called Segment&lt;/P&gt;
&lt;P&gt;I design my flow as following:&lt;/P&gt;
&lt;P&gt;- tJava (set Segment = Segment1) -&amp;gt; tRunJob&lt;/P&gt;
&lt;P&gt;- tJava (set Segment = Segment2) -&amp;gt; tRunJob&lt;/P&gt;
&lt;P&gt;the Job inside the tRunJob read the context.Segment value to run.&lt;/P&gt;
&lt;P&gt;My question is: Do 2 RunJobs work independently with 2 context value or they will share the same context value?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252100#M35847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Scope of context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252101#M35848</link>
      <description>Hi 
&lt;BR /&gt;The scope of context variable is limited to job ltself. 
&lt;BR /&gt;If you need to pass a value from main job to child job, see 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/article/ka03p0000006EaIAAU" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Passing-a-value-from-a-parent-Job-to-a-child-Job/ta-p/21695&lt;/A&gt; 
&lt;BR /&gt;If you need to pass a value from child job to main job, see 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/reader/5yL32YJ~dV3jlU9Hq_f13g/P1wOw73mm2DjbUKGGuLdjg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/5yL32YJ~dV3jlU9Hq_f13g/P1wOw73mm2DjbUKGGuLdjg&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 14 Jan 2020 08:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252101#M35848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-14T08:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Scope of context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252102#M35849</link>
      <description>&lt;P&gt;Are you passing the entire context into the job in the tRunJob component? If so, at that point it will copy the contents of the context into the child job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it will copy by reference rather than by value. If you are assigning, say, string values then this will be fine. Any assignment with the equals operator will be fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you alter a mutable object in the context, though, then both child jobs will see the alteration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use this behaviour to implement a sharedMap that can be passed into and back up from child jobs.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.talendbyexample.com/talend-returning-values-from-subjobs.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talendbyexample.com/talend-returning-values-from-subjobs.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 08:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252102#M35849</guid>
      <dc:creator>PhilHibbs</dc:creator>
      <dc:date>2020-01-14T08:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Scope of context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252103#M35850</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;
&lt;P&gt;I just wonder about the scope of the context variables between 2 runjobs&lt;/P&gt;
&lt;P&gt;In my case, I set 2 values for the same context, but run in 2 different runjobs&lt;/P&gt;
&lt;P&gt;I worry that they are using the same value.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 04:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252103#M35850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-20T04:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scope of context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252104#M35851</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000006dyyJAAQ"&gt;@PhilHibbs&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I set different values for the same context and run with 2 runjobs.&lt;/P&gt;
&lt;P&gt;According to your idea, two runjobs will run with different values for string, right?&lt;/P&gt;
&lt;P&gt;Actually, 2 runjobs point to the same task.&lt;/P&gt;
&lt;P&gt;My purpose is to create a dynamic task which depend upon the input context, and I want to run 2 jobs at the same time.&lt;/P&gt;
&lt;P&gt;And YES, I&amp;nbsp;&lt;SPAN&gt;passed the entire context into the job in the tRunJob component&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 04:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252104#M35851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-20T04:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Scope of context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252105#M35852</link>
      <description>&lt;P&gt;I don't understand why that is, it doesn't seem possible to me unless there is something that I am misunderstanding about your job structure. How are you setting the different values before each tRunJob?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 11:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252105#M35852</guid>
      <dc:creator>PhilHibbs</dc:creator>
      <dc:date>2020-01-27T11:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Scope of context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252106#M35853</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000006dyyJAAQ"&gt;@PhilHibbs&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My purpose is to clone the same job into many running jobs&lt;/P&gt; 
&lt;P&gt;And I use the context to save the segment details.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Actually, in my database, I create a column name 'Segment' to separate data into my collection.&lt;/P&gt; 
&lt;P&gt;Each clone job will run on a segment.&lt;/P&gt; 
&lt;P&gt;But I have test with small amount data, and the context save different value on each time we set it.&lt;/P&gt; 
&lt;P&gt;It mean that 2 running job have different values event we use the same context.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 09:14:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scope-of-context/m-p/2252106#M35853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-18T09:14:46Z</dc:date>
    </item>
  </channel>
</rss>

