<?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: Run If Conditional Query in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Run-If-Conditional-Query/m-p/2336648#M105070</link>
    <description>The quick and dirty way would be to connect your OnSubjobOK coming out of "Create Client" to a dummy tJava component that does nothing (just leave the default in it)&amp;nbsp;and then create a "Run If" connection from there to your "Input Mambu..." subjob with the condition you mention above. Please let us know if this works for you.</description>
    <pubDate>Wed, 07 Sep 2016 21:59:54 GMT</pubDate>
    <dc:creator>JR1</dc:creator>
    <dc:date>2016-09-07T21:59:54Z</dc:date>
    <item>
      <title>Run If Conditional Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-If-Conditional-Query/m-p/2336645#M105067</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm not able to find the answer in the documentation so i was hoping someone might be able to help me understand something.&lt;BR /&gt;&lt;BR /&gt;I have a job which passes data into a child job through an iteration, the child job then passes back data which collects into a tHashOutput to be loaded in another subjob which contains the tHashInput.&lt;BR /&gt;&lt;BR /&gt;I was getting errors when the first part of the process didn't extract any data (a common scenario in this routine) and so i linked the subjob with the tHashInput with a RunIF connection (using a ((Integer)globalMap.get("'my_connection'_NB_LINE")) &amp;gt;0 clause).&lt;BR /&gt;However, on doing this i started getting null pointer exceptions on the tHashOutput, so i'm not sure this is a viable way of performing this logic?&lt;BR /&gt;&lt;BR /&gt;Basically, I want to know if there is a way of executing a subjob ONLY IF there is data populated in the hashInput, and i want to execute this subjob after all iterations in the first subjob have completed.&lt;BR /&gt;&lt;BR /&gt;A simple mock up of my routine:&lt;BR /&gt;&lt;BR /&gt;Subjob1)&lt;BR /&gt;&lt;BR /&gt;FixedFlowInput --&amp;gt; FlowToIterate --&amp;gt; ChildJob --&amp;gt; tHashOutput&lt;BR /&gt;&lt;BR /&gt;Subjob2)&lt;BR /&gt;&lt;BR /&gt;tHashInput --&amp;gt; Load to a database.&lt;BR /&gt;&lt;BR /&gt;Please help! Thanks&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 11:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-If-Conditional-Query/m-p/2336645#M105067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-07T11:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Run If Conditional Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-If-Conditional-Query/m-p/2336646#M105068</link>
      <description>Hi,&lt;BR /&gt;It should work as it. If no row in tHashInput, nothing goes to the next step, and that's all.&lt;BR /&gt;Can you capture the job and share it?&lt;BR /&gt;Regards,&lt;BR /&gt;TRF</description>
      <pubDate>Wed, 07 Sep 2016 15:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-If-Conditional-Query/m-p/2336646#M105068</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2016-09-07T15:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Run If Conditional Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-If-Conditional-Query/m-p/2336647#M105069</link>
      <description>&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFbf.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152049iFE9A9307A0DD57B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFbf.jpg" alt="0683p000009MFbf.jpg" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I've attached a screenshot of the job - as you can see it is a little more complicated than my sample. 
&lt;BR /&gt; 
&lt;BR /&gt;Basically - i just want the the brown subjob "Input Mambu Client ID into nCino" to only run when there is data placed in tHashOutput1. I'd tried connecting the brown subjob via a runIf as mentioned previously, but this didn't work. 
&lt;BR /&gt; 
&lt;BR /&gt;(RunIF condition was&amp;nbsp; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;((Integer)globalMap.get("'Out3_NB_LINE")) &amp;gt;0&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 07 Sep 2016 16:11:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-If-Conditional-Query/m-p/2336647#M105069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-07T16:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Run If Conditional Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-If-Conditional-Query/m-p/2336648#M105070</link>
      <description>The quick and dirty way would be to connect your OnSubjobOK coming out of "Create Client" to a dummy tJava component that does nothing (just leave the default in it)&amp;nbsp;and then create a "Run If" connection from there to your "Input Mambu..." subjob with the condition you mention above. Please let us know if this works for you.</description>
      <pubDate>Wed, 07 Sep 2016 21:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-If-Conditional-Query/m-p/2336648#M105070</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2016-09-07T21:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Run If Conditional Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-If-Conditional-Query/m-p/2336649#M105071</link>
      <description>Hey,&lt;BR /&gt;Thanks - i don't mind a dirty option! That certainly works for me - thanks for your help!</description>
      <pubDate>Thu, 08 Sep 2016 09:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-If-Conditional-Query/m-p/2336649#M105071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-08T09:24:43Z</dc:date>
    </item>
  </channel>
</rss>

