<?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: [resolved] Run If rownnum&amp;gt;1 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Run-If-rownnum-gt-1/m-p/2299262#M71622</link>
    <description>I figured it out. &amp;nbsp;I was putting my condition in the java components instead of in the run if. &amp;nbsp;Thanks all!</description>
    <pubDate>Fri, 09 Dec 2016 17:53:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-09T17:53:57Z</dc:date>
    <item>
      <title>[resolved] Run If rownnum&gt;1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Run-If-rownnum-gt-1/m-p/2299259#M71619</link>
      <description>&lt;P&gt;I need to add a conditional requirement to my job to end the job if no new records from a oracle component have been inserted into a record. &amp;nbsp;If new records have been added then I want to finish the rest of the job (run a stored procedure). &amp;nbsp;I think i can use 2 conditional run if components to accomplish this but I am running into issues with the syntax&lt;BR /&gt;i am going from a oracle_bulk component&amp;gt;&amp;gt;tjava&amp;gt;&amp;gt; run if true(tjava) or run if false(tjava) to try and accomplish this&lt;BR /&gt;i have the following code in the first java component which runs and returns true if the record count from the oracle component is greater than one. &amp;nbsp;However when I add the true/false i can a sytanx error. &amp;nbsp;What am I missing in the true and false tjava components?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;int nb_line=((Integer)globalMap.get("tOracleOutputBulk_1_NB_LINE"));&lt;BR /&gt;if(nb_line&amp;gt;0){&lt;BR /&gt;globalMap.put("hasRows", true);&lt;BR /&gt;}else{&lt;BR /&gt;globalMap.put("hasRows", false);&lt;BR /&gt;}&lt;BR /&gt;System.out.println("hasRows: " + globalMap.get("hasRows"));&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 23:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Run-If-rownnum-gt-1/m-p/2299259#M71619</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-08T23:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Run If rownnum&gt;1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Run-If-rownnum-gt-1/m-p/2299260#M71620</link>
      <description>We can get the rows count with the variable &amp;nbsp;"tMysqlInput_1_NB_LINE" and placed it in link condition like below.&amp;nbsp;&lt;BR /&gt;((Integer)globalMap.get("tMysqlInput_1_NB_LINE")) &amp;gt; 1&lt;BR /&gt;You can use Oracle component instead of mysql.</description>
      <pubDate>Fri, 09 Dec 2016 05:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Run-If-rownnum-gt-1/m-p/2299260#M71620</guid>
      <dc:creator>lvsiva</dc:creator>
      <dc:date>2016-12-09T05:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Run If rownnum&gt;1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Run-If-rownnum-gt-1/m-p/2299261#M71621</link>
      <description>Looks like the screenshots of my job did not upload. &amp;nbsp;I am unclear what I need to update? &amp;nbsp;Should I remove the first java component that I have with the if then else condition? 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/387454/full-job_20161209-0815.jpg" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG5O.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134480i4E70EFDB4EF16D08/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG5O.jpg" alt="0683p000009MG5O.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/A&gt; 
&lt;BR /&gt;false condition&amp;nbsp; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/387454/false-component_20161209-0815.jpg" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG6G.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131454iAEA9FF048D91EB6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG6G.jpg" alt="0683p000009MG6G.jpg" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;true condition 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/387454/true-component_20161209-0816.jpg" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFsl.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146117iD5474F790B535AF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFsl.jpg" alt="0683p000009MFsl.jpg" /&gt;&lt;/span&gt; &lt;/A&gt;</description>
      <pubDate>Fri, 09 Dec 2016 16:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Run-If-rownnum-gt-1/m-p/2299261#M71621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-09T16:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Run If rownnum&gt;1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Run-If-rownnum-gt-1/m-p/2299262#M71622</link>
      <description>I figured it out. &amp;nbsp;I was putting my condition in the java components instead of in the run if. &amp;nbsp;Thanks all!</description>
      <pubDate>Fri, 09 Dec 2016 17:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Run-If-rownnum-gt-1/m-p/2299262#M71622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-09T17:53:57Z</dc:date>
    </item>
  </channel>
</rss>

