<?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 logic implemention in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/logic-implemention/m-p/2367195#M130600</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PFA screen shot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FLOW:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Parent-Job1:&lt;/P&gt;
&lt;P&gt;tinfinitteloop===&amp;gt;iterate(order1)====&amp;gt;tRunJob1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ====&amp;gt; iterate(Order2)===&amp;gt;tsleep&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;child job:&lt;/P&gt;
&lt;P&gt;1) comparison between two tables based on date values.&lt;/P&gt;
&lt;P&gt;2) if match found i.e&amp;nbsp;&amp;gt;=1 execute remaining logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Requirement:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After execution of child job.&lt;SPAN&gt;which is &amp;gt;=1.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;stop the child job.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;return to parent job.&lt;/P&gt;
&lt;P&gt;else&lt;/P&gt;
&lt;P&gt;continue loop&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if need any information. It's urgent&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Shree&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2017 05:57:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-04T05:57:23Z</dc:date>
    <item>
      <title>logic implemention</title>
      <link>https://community.qlik.com/t5/Talend-Studio/logic-implemention/m-p/2367195#M130600</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PFA screen shot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FLOW:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Parent-Job1:&lt;/P&gt;
&lt;P&gt;tinfinitteloop===&amp;gt;iterate(order1)====&amp;gt;tRunJob1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ====&amp;gt; iterate(Order2)===&amp;gt;tsleep&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;child job:&lt;/P&gt;
&lt;P&gt;1) comparison between two tables based on date values.&lt;/P&gt;
&lt;P&gt;2) if match found i.e&amp;nbsp;&amp;gt;=1 execute remaining logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Requirement:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After execution of child job.&lt;SPAN&gt;which is &amp;gt;=1.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;stop the child job.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;return to parent job.&lt;/P&gt;
&lt;P&gt;else&lt;/P&gt;
&lt;P&gt;continue loop&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if need any information. It's urgent&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Shree&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 05:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/logic-implemention/m-p/2367195#M130600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-04T05:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: logic implemention</title>
      <link>https://community.qlik.com/t5/Talend-Studio/logic-implemention/m-p/2367196#M130601</link>
      <description>Hi
&lt;BR /&gt;You should use tLoop with while type to implement this kind of logic, set the condition with a context variable, boolean type, it is true by default. The job looks like:
&lt;BR /&gt;main job:
&lt;BR /&gt;tLoop--iterate--trunJob--main--tJavaRow
&lt;BR /&gt;
&lt;BR /&gt;on tRunJob: uncheck the 'die on error' option.
&lt;BR /&gt;on tJavaRow:
&lt;BR /&gt;if(input_row.status.equals("ok"){
&lt;BR /&gt;context.condition=false;
&lt;BR /&gt;}else{
&lt;BR /&gt;context.condition=true;
&lt;BR /&gt;}
&lt;BR /&gt;
&lt;BR /&gt;child job:
&lt;BR /&gt;...
&lt;BR /&gt;--subjobok--&amp;gt;tFixedFlowInput1--main--tBufferOutput1
&lt;BR /&gt;--subjoberror--&amp;gt;tFixedFlowInput2--main--tBufferOutput2
&lt;BR /&gt;
&lt;BR /&gt;on tFixedFlowInput1, define one column called status, and set its value as "ok".
&lt;BR /&gt;on tFixedFlowInput2, define one column called status, and set its value as "failed".
&lt;BR /&gt;
&lt;BR /&gt;Hope it helps you!
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Oct 2017 08:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/logic-implemention/m-p/2367196#M130601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T08:04:29Z</dc:date>
    </item>
  </channel>
</rss>

