<?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: Looping on finding a column of a Table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289412#M62799</link>
    <description>&lt;P&gt;Can anyone please help&lt;/P&gt;</description>
    <pubDate>Sat, 24 Feb 2018 15:06:45 GMT</pubDate>
    <dc:creator>abhi90</dc:creator>
    <dc:date>2018-02-24T15:06:45Z</dc:date>
    <item>
      <title>Looping on finding a column of a Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289411#M62798</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have a scenario. In One of my Master Job 3 Child Job will run. Now after Each Child Job On SubJobOk in toraclerow an update will run to update status in Database for that Particular Table based upon Maximum(Update_Date). in next tOracleInput I am selecting the status of the Table which ran in the First Child Job and passing to that tjavarow where I am passing that Status Value to a Context. From tjavarow using RunIF condition I am triggering the 2nd ChildJob. Now I am using the RunIF Condition like context.status.equals("Y"). Now I want to do a negetive testing where I want to loop based upon some iteration to check for some time whether Status Value changed to N to Y.My Job Design is like this now&lt;/P&gt;
&lt;P&gt;ChildJob1---OnComponentOk---toracleRow(UpdateRunning to change status from N to Y)---OnComponentOk---toracleinput(selecting the status of the table related to ChildJob1)----&amp;gt;tjavarow(Passing the STATUS Value to context)--------RunIF(context value equals "Y")-----&amp;gt;ChildJob2&lt;/P&gt;
&lt;P&gt;I want to loop now whether the status is still N. It will check whether Status changed to Y or not. Zero Byte file based option can't be taken.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 07:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289411#M62798</guid>
      <dc:creator>abhi90</dc:creator>
      <dc:date>2018-02-24T07:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Looping on finding a column of a Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289412#M62799</link>
      <description>&lt;P&gt;Can anyone please help&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 15:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289412#M62799</guid>
      <dc:creator>abhi90</dc:creator>
      <dc:date>2018-02-24T15:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Looping on finding a column of a Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289413#M62800</link>
      <description>I may have completely misunderstood here (I think your description of what is happening is a bit distracting from the problem.... but I may be wrong if I've misunderstood &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;), but I think you want to loop and try again until your query returns a "Y". Is that right? If so, maybe what I've done with a tLoop here (
&lt;A href="https://www.rilhia.com/tutorials/using-talend-get-your-spotify-listening-history-facebook" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/tutorials/using-talend-get-your-spotify-listening-history-facebook&lt;/A&gt;) will point you in the right direction. I am looping while a particular field is not null. When it is null, I stop the loop. You could do that while the value returned is "N". You'd need to store that value in the globalMap to do that.</description>
      <pubDate>Sat, 24 Feb 2018 20:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289413#M62800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-24T20:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Looping on finding a column of a Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289414#M62801</link>
      <description>&lt;P&gt;Yes rhall. I want to keep a looping from tjavarow where I will check for Update Status. For Value N it will be on loop and wait for 10mins and again will go to my toracleinput component where I am selecting status from Audit Table and passing that to next tjavarow in context. If time exceeds (e.g 20mins it will exit the loop and send an email.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 07:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289414#M62801</guid>
      <dc:creator>abhi90</dc:creator>
      <dc:date>2018-02-25T07:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Looping on finding a column of a Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289415#M62802</link>
      <description>&lt;P&gt;There are ways to achieve exactly this using a tLoop and a bit of Java code. However, do you really want to wait 1o minutes in-between checks? A maximum wait time is a good idea, but would it not be better to loop (carry out the checks) every 10 seconds (for example) for 10 mins? Then if after 10 mins there is no change, send the email and end the job?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To do this, you could have a configuration similar to below....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tJava&lt;/P&gt; 
&lt;P&gt;|&lt;/P&gt; 
&lt;P&gt;tLoop ------&amp;gt; t{DB}Input ------&amp;gt;tJavaFlex----RunIf----&amp;gt;{The rest of the logic}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) The tJava would create a globalMap variable (maybe a boolean called "loop") to be used in the tLoop and create a globalMap to hold the start date and time of the tLoop.&lt;/P&gt; 
&lt;P&gt;2) The tLoop would be set to a While loop. For example ....&lt;/P&gt; 
&lt;PRE&gt;((Boolean)globalMap.get("loop"))&lt;/PRE&gt; 
&lt;P&gt;3) The DB component would return the status&lt;/P&gt; 
&lt;P&gt;4) The tJavaFlex would test the status returned AND check the current time against the time variable created in the tJava. If the status is what you want, you can end the tLoop after this iteration by setting "loop" to false. This can also be done if the time limit has expired.&lt;/P&gt; 
&lt;P&gt;5) Your RunIf can be used to choose to execute further code on this iteration or not.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There is a lot of extra logic you will need to fill in for yourself, but this is the basic flow I would advise you use.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 14:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289415#M62802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-25T14:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Looping on finding a column of a Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289416#M62803</link>
      <description>Hi rhall, 
&lt;BR /&gt;Yess I want to achieve something like this. If Update doesnot happens then A loop will start.which will check for 10mins in 10secs iteration each. Can you elaborate more as how to go to tdbinput component again if loop does not returned Y.</description>
      <pubDate>Sun, 25 Feb 2018 17:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289416#M62803</guid>
      <dc:creator>abhi90</dc:creator>
      <dc:date>2018-02-25T17:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Looping on finding a column of a Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289417#M62804</link>
      <description>&lt;P&gt;Given what I have shown you the tDBInput component will keep firing the same query for each iteration of the loop. You do not need to do anything special to the tDBInput&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 21:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289417#M62804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-25T21:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Looping on finding a column of a Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289418#M62805</link>
      <description>&lt;P&gt;I have did this one with some other approach. What I did was in my tloop component in while I gave loop condition like&lt;/P&gt;&lt;P&gt;i=1(loop will start)&lt;/P&gt;&lt;P&gt;context.status.equals("N")&lt;/P&gt;&lt;P&gt;i++&lt;/P&gt;&lt;P&gt;So untill context.status becomes Y loop will not break.I tested this and was working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 07:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-on-finding-a-column-of-a-Table/m-p/2289418#M62805</guid>
      <dc:creator>abhi90</dc:creator>
      <dc:date>2018-03-19T07:30:26Z</dc:date>
    </item>
  </channel>
</rss>

