<?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: More than one trigger (subjob dependencies)? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/More-than-one-trigger-subjob-dependencies/m-p/2339591#M107717</link>
    <description>Hi Olbu,
&lt;BR /&gt;A &amp;nbsp;---onSubJobOk--- C
&lt;BR /&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; |
&lt;BR /&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;Runif &amp;nbsp; &amp;nbsp;&amp;nbsp;
&lt;BR /&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; |
&lt;BR /&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;B
&lt;BR /&gt;
&lt;BR /&gt;Here , &amp;nbsp;In subJob B , try to set globalMap variable and In Runif ,try to get value and check &amp;nbsp;it is not null. &amp;nbsp;
&lt;BR /&gt;Note that You cannot have 2 onSubJobOk link on 1 Component. So you have to eliminate this limitation by using Runif link in second subjob.
&lt;BR /&gt;
&lt;BR /&gt;I hope, it will help you.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Amol</description>
    <pubDate>Wed, 10 Feb 2016 06:57:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-10T06:57:24Z</dc:date>
    <item>
      <title>More than one trigger (subjob dependencies)?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/More-than-one-trigger-subjob-dependencies/m-p/2339590#M107716</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;is it possible to run a Subjob only if two more Jobs ran sucessfully (more than one Job dependency).&amp;nbsp;&lt;BR /&gt;Something like that&lt;BR /&gt;Subjob&amp;nbsp;D waits for&amp;nbsp;finishing Subjob A&amp;nbsp;and&amp;nbsp;B&lt;BR /&gt;Subjob E waits for&amp;nbsp;Subjob A and C&lt;BR /&gt;Subjob F has to wait for D and E&lt;BR /&gt;...&lt;BR /&gt;Is it possible to run a Subjob if at least one Job has finished:&lt;BR /&gt;Subjob C waits until Subjob A OR Subjob B has finished&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Talend DI Newbie&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 05:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/More-than-one-trigger-subjob-dependencies/m-p/2339590#M107716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-10T05:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: More than one trigger (subjob dependencies)?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/More-than-one-trigger-subjob-dependencies/m-p/2339591#M107717</link>
      <description>Hi Olbu,
&lt;BR /&gt;A &amp;nbsp;---onSubJobOk--- C
&lt;BR /&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; |
&lt;BR /&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;Runif &amp;nbsp; &amp;nbsp;&amp;nbsp;
&lt;BR /&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; |
&lt;BR /&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;B
&lt;BR /&gt;
&lt;BR /&gt;Here , &amp;nbsp;In subJob B , try to set globalMap variable and In Runif ,try to get value and check &amp;nbsp;it is not null. &amp;nbsp;
&lt;BR /&gt;Note that You cannot have 2 onSubJobOk link on 1 Component. So you have to eliminate this limitation by using Runif link in second subjob.
&lt;BR /&gt;
&lt;BR /&gt;I hope, it will help you.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Amol</description>
      <pubDate>Wed, 10 Feb 2016 06:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/More-than-one-trigger-subjob-dependencies/m-p/2339591#M107717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-10T06:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: More than one trigger (subjob dependencies)?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/More-than-one-trigger-subjob-dependencies/m-p/2339592#M107718</link>
      <description>Hi Amol,
&lt;BR /&gt;thanks, but I think that this couldn't work. C depends on a successful run of A&amp;nbsp;
&lt;B&gt;and&lt;/B&gt; B. In your case Talend DI starts C also if only A would be ready.
&lt;BR /&gt;But, yes. We could implement this with few&amp;nbsp;"run if"-trigger. Today we would define a tPrejob wich defines a global variable (tSetGlobalVar)
&lt;BR /&gt;
&lt;I&gt;Name:&lt;/I&gt; 
&lt;BR /&gt;
&lt;PRE&gt;"myTriggerCount"&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;
&lt;I&gt;Value:&lt;/I&gt; 
&lt;BR /&gt;
&lt;PRE&gt;new java.util.concurrent.atomic.AtomicInteger(0)&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;The last component of our A and B would have the following "run if"-trigger 
&lt;I&gt;condition&lt;/I&gt;:
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;((java.util.concurrent.atomic.AtomicInteger) globalMap.get("myTriggerCount")).incrementAndGet()==2&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;, but we hoped that there would be&amp;nbsp;some stages which support such scenarios by default. (Perhaps we also need to check the Status of the last component of A and B)
&lt;BR /&gt;Thanks
&lt;BR /&gt;Oliver</description>
      <pubDate>Wed, 02 Mar 2016 13:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/More-than-one-trigger-subjob-dependencies/m-p/2339592#M107718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-02T13:19:43Z</dc:date>
    </item>
  </channel>
</rss>

