<?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: how to merge two process branches back into one? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-merge-two-process-branches-back-into-one/m-p/2297870#M70396</link>
    <description>Just add a 3rd "if" statement (order 3) after the tFileExists component with a condition which evaluates to "True" at anytime such as "1 == 1" and connect the desired sequence after this new "if".&lt;BR /&gt;That's all.</description>
    <pubDate>Sun, 13 Aug 2017 20:40:33 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2017-08-13T20:40:33Z</dc:date>
    <item>
      <title>how to merge two process branches back into one?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-merge-two-process-branches-back-into-one/m-p/2297869#M70395</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code starts with tPrejob =&amp;gt; tFileExist to check if external context file exist,&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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IF not create a new file, and dump contexts into this file (5-6 components);&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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IF exists, run tContextLoad to load all contexts from external file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Then I want to do a few other tasks in tPrejob which only can be run after one of the above process is finished, how can I merge those two branches into one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Certainly I add those other tasks into both branches via OnSubjobOk, but I don't want to duplicate the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2017 14:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-merge-two-process-branches-back-into-one/m-p/2297869#M70395</guid>
      <dc:creator>wangbinlxx</dc:creator>
      <dc:date>2017-08-13T14:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge two process branches back into one?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-merge-two-process-branches-back-into-one/m-p/2297870#M70396</link>
      <description>Just add a 3rd "if" statement (order 3) after the tFileExists component with a condition which evaluates to "True" at anytime such as "1 == 1" and connect the desired sequence after this new "if".&lt;BR /&gt;That's all.</description>
      <pubDate>Sun, 13 Aug 2017 20:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-merge-two-process-branches-back-into-one/m-p/2297870#M70396</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-08-13T20:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge two process branches back into one?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-merge-two-process-branches-back-into-one/m-p/2297871#M70397</link>
      <description>&lt;P&gt;Thanks TRF.&lt;/P&gt; 
&lt;P&gt;I found a way: Use OnSubjobOK from tFileExists component. &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9xp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153774i2D37DB4356C217DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9xp.png" alt="0683p000009M9xp.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 06:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-merge-two-process-branches-back-into-one/m-p/2297871#M70397</guid>
      <dc:creator>wangbinlxx</dc:creator>
      <dc:date>2017-08-14T06:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge two process branches back into one?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-merge-two-process-branches-back-into-one/m-p/2297872#M70398</link>
      <description>This is another way, as there are often many solutions for the same problem.&lt;BR /&gt;However, don't forget to mark the case as solved.&lt;BR /&gt;Kudos also accepted.</description>
      <pubDate>Mon, 14 Aug 2017 09:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-merge-two-process-branches-back-into-one/m-p/2297872#M70398</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-08-14T09:16:47Z</dc:date>
    </item>
  </channel>
</rss>

