<?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] Limiting tLoop in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340867#M108865</link>
    <description>That makes tLoop loop within itself 9 times and execute "print_loop_#" once. My goal is to loop on "print_loop_#" 9 times, then stop looping and execute the rest of the job once.</description>
    <pubDate>Tue, 02 Sep 2014 13:03:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-02T13:03:19Z</dc:date>
    <item>
      <title>[resolved] Limiting tLoop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340865#M108863</link>
      <description>Hi, 
&lt;BR /&gt;I am confused about the way tLoop works. I want to loop the one component that it is linked to, but instead it loops the rest of the job after tLoop. Example: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="http://postimage.org/" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;How do I limit its looping to the first tJava and NOT loop on the second one? (tJava's are examples, the real job is more complicated) 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 02 Sep 2014 12:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340865#M108863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-02T12:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Limiting tLoop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340866#M108864</link>
      <description>Hi,&lt;BR /&gt;On the component tLoop, use a OnSubjobOK trigger and link it to the HappenOnce.&amp;nbsp;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 02 Sep 2014 12:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340866#M108864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-02T12:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Limiting tLoop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340867#M108865</link>
      <description>That makes tLoop loop within itself 9 times and execute "print_loop_#" once. My goal is to loop on "print_loop_#" 9 times, then stop looping and execute the rest of the job once.</description>
      <pubDate>Tue, 02 Sep 2014 13:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340867#M108865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-02T13:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Limiting tLoop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340868#M108866</link>
      <description>Hi neofit, 
&lt;BR /&gt;mgainho had replied correctly your question 
&lt;BR /&gt;please look below screenshot&amp;nbsp; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEon.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149437i1BDE752F9F418D92/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEon.png" alt="0683p000009MEon.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 02 Sep 2014 13:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340868#M108866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-02T13:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Limiting tLoop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340869#M108867</link>
      <description>Hi neofit,&lt;BR /&gt;if you need to stop the tLoop based on a condition you can check the data in the tJava (you already have) and simply call &lt;BR /&gt;&lt;PRE&gt;break;&lt;/PRE&gt;&lt;BR /&gt; or &lt;BR /&gt;&lt;PRE&gt;continue;&lt;/PRE&gt;&lt;BR /&gt; (if you want to skip over a value).&lt;BR /&gt;Keep in mid the whole magic of the tLoop is done by a while or for loop &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Tue, 02 Sep 2014 19:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340869#M108867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-02T19:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Limiting tLoop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340870#M108868</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;mgainho had replied correctly your question&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hello, 
&lt;BR /&gt;Technically I did what was advised and replaced the Iterate link with an OnSubjobOK and got what I said 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; : 
&lt;BR /&gt; 
&lt;A href="http://postimage.org/" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Now, if I do it the way it is on your screenshot, with the two paths, is there a guarantee that the Iterate link and all the 1, 2 or 10 components that follow will all be performed before the Job starts on the OnsubjobOK link? And if so, is this order of precedence documented somewhere? 
&lt;BR /&gt;Here is a simplified example of what I am trying to do: 
&lt;BR /&gt; 
&lt;A href="http://postimage.org/" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;10 tables, wisely named tbl1 to tbl10, are to be read into a temporary table, then some processing is to be done, one by one. When all 10 are processed I need to read the resulting temporary table and extract it into a file. 
&lt;BR /&gt;So is there a guarantee that all the components after the Iterate link will all be processed before the OnSubjOK is done? I know of some particular behaviour, if for example I throw some components onto the canvas without linking each of them, theye will be executed in the order of creation. Won't the links going out of the tLoop component be processed in the order of creation too?</description>
      <pubDate>Wed, 03 Sep 2014 09:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340870#M108868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-03T09:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Limiting tLoop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340871#M108869</link>
      <description>because if it doesn't , it's a bug 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;more seriously, each blue part are subjob. In your example tloop component + 4 Db components are in the same blue part (subjob). 
&lt;BR /&gt;For my point of view, I'll do my iteration in a child Job : 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;tLoop ---- iterate ---- tRunJob&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;by that what you can do some unit test on data (read, insert, update) without be aware about iteration or trigger action. 
&lt;BR /&gt;regards</description>
      <pubDate>Wed, 03 Sep 2014 09:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340871#M108869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-03T09:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Limiting tLoop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340872#M108870</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;because if it doesn't , it's a bug &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;BR /&gt;more seriously, each blue part are subjob. In your example tloop component + 4 Db components are in the same blue part (subjob).&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Oh &amp;lt;where is that emoticon with a lightbulb lighting up&amp;gt;. 
&lt;BR /&gt;What I was worried about is the following. Let's say each DB operation takes 1 minute. I was worried that as soon as the tLoop finishes its last loop and gives control to the 1st Iterate component ('Read current table'), that it is free to so give control to the other link originiating from it on that very second withouyt waiting for the rest of the processing chain, since the component itself is done. But hey, the link is called "OnSubobjOK", not "OnComponentOK", so it will only gain control when the whole blue thingy ends, oops. 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 03 Sep 2014 10:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Limiting-tLoop/m-p/2340872#M108870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-03T10:04:47Z</dc:date>
    </item>
  </channel>
</rss>

