<?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 Combine tFlowtoIterate with condition (run if) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Combine-tFlowtoIterate-with-condition-run-if/m-p/2240115#M27709</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to make API REST calls that use certains parameters included in a csv file.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My flow is like this:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tFileInputDelimited&lt;/STRONG&gt;--&amp;gt;Main--&amp;gt;&lt;STRONG&gt;tJavaRow&amp;nbsp;&lt;/STRONG&gt;--&amp;gt; Main--&amp;gt; &lt;STRONG&gt;tMap&lt;/STRONG&gt;--&amp;gt; Main --&amp;gt; &lt;STRONG&gt;tFlowToIterate&lt;/STRONG&gt; --&amp;gt; Iterate --&amp;gt; &lt;STRONG&gt;tJava&lt;/STRONG&gt; --&amp;gt; Iterate --&amp;gt;&amp;nbsp;&lt;STRONG&gt;tLoop&lt;/STRONG&gt;--&amp;gt; Iterate --&amp;gt;&lt;STRONG&gt; tRest&lt;/STRONG&gt;&amp;nbsp;--&amp;gt; Main --&amp;gt;&lt;STRONG&gt; tExtractJSONFields&lt;/STRONG&gt; --&amp;gt; Main...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I use tLoop to loop through all pages of the API in component tRest. The problem appears when tRest return an error. How can I implement a condition between tRest and tExtractJSONFields to avoid when ERROR_CODE returned by tRest is not null?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2020-06-29 a las 17.19.07.png" style="width: 447px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaYB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150167i9181B30599C695F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaYB.png" alt="0683p000009MaYB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I have tried to include tJavaRow_4, tHashOutput and tHashInput between tRest and tExtractJSONFields. In tJavaRow_4 I create a global variable whose value depends on the value of the ERROR_CODE, and the condition between tHashOutput and tHashInput tests the value of the global variable.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem is: my flows doesn't go further than the component &lt;STRONG&gt;tHashInput&lt;/STRONG&gt;, so I'm not able to extract the Body response in tExtractJSONFields. When my flow reaches tHashInput, another iteration starts. Why is this happening?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:01:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T02:01:52Z</dc:date>
    <item>
      <title>Combine tFlowtoIterate with condition (run if)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Combine-tFlowtoIterate-with-condition-run-if/m-p/2240115#M27709</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to make API REST calls that use certains parameters included in a csv file.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My flow is like this:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tFileInputDelimited&lt;/STRONG&gt;--&amp;gt;Main--&amp;gt;&lt;STRONG&gt;tJavaRow&amp;nbsp;&lt;/STRONG&gt;--&amp;gt; Main--&amp;gt; &lt;STRONG&gt;tMap&lt;/STRONG&gt;--&amp;gt; Main --&amp;gt; &lt;STRONG&gt;tFlowToIterate&lt;/STRONG&gt; --&amp;gt; Iterate --&amp;gt; &lt;STRONG&gt;tJava&lt;/STRONG&gt; --&amp;gt; Iterate --&amp;gt;&amp;nbsp;&lt;STRONG&gt;tLoop&lt;/STRONG&gt;--&amp;gt; Iterate --&amp;gt;&lt;STRONG&gt; tRest&lt;/STRONG&gt;&amp;nbsp;--&amp;gt; Main --&amp;gt;&lt;STRONG&gt; tExtractJSONFields&lt;/STRONG&gt; --&amp;gt; Main...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I use tLoop to loop through all pages of the API in component tRest. The problem appears when tRest return an error. How can I implement a condition between tRest and tExtractJSONFields to avoid when ERROR_CODE returned by tRest is not null?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2020-06-29 a las 17.19.07.png" style="width: 447px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaYB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150167i9181B30599C695F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaYB.png" alt="0683p000009MaYB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I have tried to include tJavaRow_4, tHashOutput and tHashInput between tRest and tExtractJSONFields. In tJavaRow_4 I create a global variable whose value depends on the value of the ERROR_CODE, and the condition between tHashOutput and tHashInput tests the value of the global variable.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem is: my flows doesn't go further than the component &lt;STRONG&gt;tHashInput&lt;/STRONG&gt;, so I'm not able to extract the Body response in tExtractJSONFields. When my flow reaches tHashInput, another iteration starts. Why is this happening?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Combine-tFlowtoIterate-with-condition-run-if/m-p/2240115#M27709</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:01:52Z</dc:date>
    </item>
  </channel>
</rss>

