<?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, update and commit in the same iteration in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Run-If-update-and-commit-in-the-same-iteration/m-p/2325911#M95456</link>
    <description>"if" links are evaluated during the END section of a component -- so they are not checked per-row as you expect in the job.&amp;nbsp;&lt;BR /&gt;a simple fix for this is to insert a tFlowToIterate component between your initial select and tJavaRow_2. Then you would connect this to the rest of the job using the "iterate" link.&amp;nbsp;&lt;BR /&gt;tFlowToIterate puts the row values in the globalMap for each iteration-- by default it uses the pattern for the globalMap keys: &amp;lt;row name&amp;gt;.&amp;lt;columnName&amp;gt; so an example call would look like: &lt;BR /&gt;&lt;PRE&gt;context.curr_row_value = (String)globalMap.get("row9.columnName");&lt;/PRE&gt;</description>
    <pubDate>Tue, 17 May 2016 22:40:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-17T22:40:47Z</dc:date>
    <item>
      <title>Run If, update and commit in the same iteration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-If-update-and-commit-in-the-same-iteration/m-p/2325908#M95453</link>
      <description>Hello, 
&lt;BR /&gt;I'm kind of new with Talend. And I have a problem with an update and a commit inside an iteration. 
&lt;BR /&gt;Here's my diagram 
&lt;BR /&gt; 
&lt;BR /&gt;As you can see I have a tOracleInput to start the iteration, and after a tJavaRow, tOracleRow and a tJavaRow. Here the subjob ends. If the Run If is true after tJavaRow_3 I make an update and a commit, and I need to do this for every iteration of the tOracleInput. But it seems that the update and the commit are done after all the iterations ended, i mean, they're executed only for the last row of the iteration. 
&lt;BR /&gt;Can anyone help me please.</description>
      <pubDate>Tue, 17 May 2016 18:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-If-update-and-commit-in-the-same-iteration/m-p/2325908#M95453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T18:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Run If, update and commit in the same iteration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-If-update-and-commit-in-the-same-iteration/m-p/2325909#M95454</link>
      <description>looks like your images are missing. if you can upload the images Im sure we can assist</description>
      <pubDate>Tue, 17 May 2016 18:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-If-update-and-commit-in-the-same-iteration/m-p/2325909#M95454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T18:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Run If, update and commit in the same iteration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-If-update-and-commit-in-the-same-iteration/m-p/2325910#M95455</link>
      <description>Thank you JohnGarrettMartin for your answer,&amp;nbsp; 
&lt;BR /&gt;I uploaded them. 
&lt;BR /&gt;I don't know what happened. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDsY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137554iBE48A3AB50C58C04/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDsY.png" alt="0683p000009MDsY.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Done it. Yeah!!!</description>
      <pubDate>Tue, 17 May 2016 19:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-If-update-and-commit-in-the-same-iteration/m-p/2325910#M95455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T19:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Run If, update and commit in the same iteration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-If-update-and-commit-in-the-same-iteration/m-p/2325911#M95456</link>
      <description>"if" links are evaluated during the END section of a component -- so they are not checked per-row as you expect in the job.&amp;nbsp;&lt;BR /&gt;a simple fix for this is to insert a tFlowToIterate component between your initial select and tJavaRow_2. Then you would connect this to the rest of the job using the "iterate" link.&amp;nbsp;&lt;BR /&gt;tFlowToIterate puts the row values in the globalMap for each iteration-- by default it uses the pattern for the globalMap keys: &amp;lt;row name&amp;gt;.&amp;lt;columnName&amp;gt; so an example call would look like: &lt;BR /&gt;&lt;PRE&gt;context.curr_row_value = (String)globalMap.get("row9.columnName");&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 May 2016 22:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-If-update-and-commit-in-the-same-iteration/m-p/2325911#M95456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T22:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Run If, update and commit in the same iteration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-If-update-and-commit-in-the-same-iteration/m-p/2325912#M95457</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;"if" links are evaluated during the END section of a component -- so they are not checked per-row as you expect in the job.&amp;nbsp;&lt;BR /&gt;a simple fix for this is to insert a tFlowToIterate component between your initial select and tJavaRow_2. Then you would connect this to the rest of the job using the "iterate" link.&amp;nbsp;&lt;BR /&gt;tFlowToIterate puts the row values in the globalMap for each iteration-- by default it uses the pattern for the globalMap keys: &amp;lt;row name&amp;gt;.&amp;lt;columnName&amp;gt; so an example call would look like: &lt;BR /&gt;&lt;PRE&gt;context.curr_row_value = (String)globalMap.get("row9.columnName");&lt;/PRE&gt;&lt;BR /&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Thank you JohnGarrettMartin!!!! 
&lt;BR /&gt;It works perfectly. 
&lt;BR /&gt;Thank you.</description>
      <pubDate>Wed, 18 May 2016 13:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-If-update-and-commit-in-the-same-iteration/m-p/2325912#M95457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-18T13:56:50Z</dc:date>
    </item>
  </channel>
</rss>

