<?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: Order of execution in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Order-of-execution/m-p/2327001#M96419</link>
    <description>&lt;P&gt;Thanks very much TRF,&lt;/P&gt; 
&lt;P&gt;My small job works fine now!&lt;/P&gt; 
&lt;P&gt;I didn't understand the tJavaRow_1 component, so I had not tried it until I saw your answer.&lt;/P&gt; 
&lt;P&gt;This Talend Open Studio is very useful and I think it should be used more in the NHS (National Health Service, ie healthcare in the UK)&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Jon&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2017 12:09:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-01T12:09:54Z</dc:date>
    <item>
      <title>Order of execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Order-of-execution/m-p/2326999#M96417</link>
      <description>&lt;P&gt;I am having difficulty understanding how Talend runs the components of a job.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the screen-shot below, I read a varchar from a Microsoft SQL Server table (table has only one row and one column, with a varchar (10) containing ‘190’).&lt;/P&gt; 
&lt;P&gt;I then want to store this string in a Variable for later use.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MyJob.png" style="width: 551px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwVq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141060i47D9B56284F21BFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwVq.png" alt="0683p000009LwVq.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The components seem to execute in parallel, instead of one after another. I see from the forum that this is a common problem, but I don’t understand it.&lt;/P&gt; 
&lt;P&gt;tJava_1 contains the simple code shown below, but it always displays Null instead of the expected string ‘190’.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tJava_1 contains this simple code –&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;System.out.println("tJava_1 " + (String)row2.Num_Days);&lt;/P&gt; 
&lt;P&gt;globalMap.put("myKey", (String)row2.Num_Days);&lt;/P&gt; 
&lt;P&gt;System.out.println("myKey is " + globalMap.get("myKey"));&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is what I get –&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;Starting job Medora_test_Copy_2_Copy at 10:40 01/09/2017.&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;[statistics] connecting to socket on port 3734&lt;/P&gt; 
&lt;P&gt;[statistics] connected&lt;/P&gt; 
&lt;P&gt;tJava_1 null&lt;/P&gt; 
&lt;P&gt;myKey is null&lt;/P&gt; 
&lt;P&gt;Num_Days: 190&lt;/P&gt; 
&lt;P&gt;[statistics] disconnected&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;Job Medora_test_Copy_2_Copy ended at 10:40 01/09/2017. [exit code=0]&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It looks like the code in tJava_1 executes before tMSSQLInput_1 has even started reading from SQL Server.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I stop the tJava_1 component from executing until the tMSSqlInput_1 component has finished please?&lt;/P&gt; 
&lt;P&gt;Is there an explanation on the web of how Talend controls order-of-execution of the components please?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I think I understand why I am confused, but not how to escape from the confusion&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Jon&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;R.J Lester&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Data Warehouse Developer&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Customer Support and Innovation Centre&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Maidstone &amp;amp; Tunbridge Wells Trust &amp;nbsp;Phone: 01622 225616&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Email: &lt;/STRONG&gt;&lt;STRONG&gt;&lt;A href="mailto:jon.lester@nhs.net" target="_blank" rel="nofollow noopener noreferrer"&gt;jon.lester@nhs.net&lt;/A&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 11:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Order-of-execution/m-p/2326999#M96417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-01T11:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Order of execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Order-of-execution/m-p/2327000#M96418</link>
      <description>&lt;P&gt;The order is what you expect but the result on the console (from tLogRow) comes when the job is finished.&lt;/P&gt;&lt;P&gt;Change the tJava by a tJavaRow component to access the &lt;SPAN&gt;tMSSQLInput_1&amp;nbsp;&lt;/SPAN&gt;result (get the fileds value using input_row.&lt;SPAN&gt;Num_Days instead of&amp;nbsp;row2.Num_Days&lt;/SPAN&gt;).&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 11:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Order-of-execution/m-p/2327000#M96418</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-09-01T11:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Order of execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Order-of-execution/m-p/2327001#M96419</link>
      <description>&lt;P&gt;Thanks very much TRF,&lt;/P&gt; 
&lt;P&gt;My small job works fine now!&lt;/P&gt; 
&lt;P&gt;I didn't understand the tJavaRow_1 component, so I had not tried it until I saw your answer.&lt;/P&gt; 
&lt;P&gt;This Talend Open Studio is very useful and I think it should be used more in the NHS (National Health Service, ie healthcare in the UK)&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Jon&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 12:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Order-of-execution/m-p/2327001#M96419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-01T12:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Order of execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Order-of-execution/m-p/2327002#M96420</link>
      <description>&lt;P&gt;Great! Thank's for the Kudo.&lt;/P&gt; 
&lt;P&gt;I'm not &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;&amp;nbsp;from Talend, but Talend people will be happy of your comment.&lt;/P&gt; 
&lt;P&gt;You're welcome if you need more help.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 12:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Order-of-execution/m-p/2327002#M96420</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-09-01T12:15:15Z</dc:date>
    </item>
  </channel>
</rss>

