<?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: Talend Conditional Flow and Exit in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-Conditional-Flow-and-Exit/m-p/2372039#M134916</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You can use tInfiniteLoop to repeat the checks for N times, and use tDie to stop the job if the condition is met. The job looks like:&lt;/P&gt;&lt;P&gt;tInfiniteLoop--iterate--check your DB value and set the value of a context variable (boolean type) to true or false based on DB value) on a tJava or tJavaRow--runIf--tDie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set the condition of runIf as:&lt;/P&gt;&lt;P&gt;context.result==true||((Integer)globalMap.get("tInfiniteLoop_1_CURRENT_ITERATION"))==3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// ((Integer)globalMap.get("tInfiniteLoop_1_CURRENT_ITERATION")) is a global variable pre-defined on tInfiniteLoop, it counts the current iteration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try and let me know if you still have any questions/concerns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2020 02:15:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-30T02:15:32Z</dc:date>
    <item>
      <title>Talend Conditional Flow and Exit</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Conditional-Flow-and-Exit/m-p/2372038#M134915</link>
      <description>&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help with conditional flow in talend open studio 6.5.1. My requirement is to check a condition (DB value), if condition is met then exit the job (Stop executing the job and quit), if the condition is not met then sleep for 30 seconds and check the condition again, repeat the checks for 3 times. If condition is met the job should quit, if not check again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with some ideas how to quit the job and how to check the condition 3 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connect me to any link if you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 18:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Conditional-Flow-and-Exit/m-p/2372038#M134915</guid>
      <dc:creator>rchanda</dc:creator>
      <dc:date>2020-07-29T18:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Conditional Flow and Exit</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Conditional-Flow-and-Exit/m-p/2372039#M134916</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You can use tInfiniteLoop to repeat the checks for N times, and use tDie to stop the job if the condition is met. The job looks like:&lt;/P&gt;&lt;P&gt;tInfiniteLoop--iterate--check your DB value and set the value of a context variable (boolean type) to true or false based on DB value) on a tJava or tJavaRow--runIf--tDie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set the condition of runIf as:&lt;/P&gt;&lt;P&gt;context.result==true||((Integer)globalMap.get("tInfiniteLoop_1_CURRENT_ITERATION"))==3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// ((Integer)globalMap.get("tInfiniteLoop_1_CURRENT_ITERATION")) is a global variable pre-defined on tInfiniteLoop, it counts the current iteration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try and let me know if you still have any questions/concerns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 02:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Conditional-Flow-and-Exit/m-p/2372039#M134916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T02:15:32Z</dc:date>
    </item>
  </channel>
</rss>

