<?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 with multiples choices in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371736#M134641</link>
    <description>&lt;P&gt;This is because the last value will overwrite the previous values, if you want to iterate each table, change the job design as below；&lt;/P&gt;&lt;P&gt;tFileInputDelimitd--main(row1)--tFlowToiterate--iterate--tJava--runif1--tRunJob3&lt;/P&gt;&lt;P&gt;                                                                                                   --runif2---tRunJob4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set the condition of runIf1 as:&lt;/P&gt;&lt;P&gt;row1.columnName.equals("table1")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set the condition of runIf2 as:&lt;/P&gt;&lt;P&gt;row1.columnName.equals("table3")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2020 07:17:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-29T07:17:26Z</dc:date>
    <item>
      <title>Run if with multiples choices</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371731#M134636</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question, I know how to use the run if on Talend, using a tSetGlobalVar, but I want to do a more difficoult job.&lt;/P&gt;&lt;P&gt;I want to make a join between two different metadata tables, to know which tables I have to refresh, with the relative tRunJob.&lt;/P&gt;&lt;P&gt;I am trying this solution using a file, in which I put the name of the tables, putting them on a &lt;/P&gt;&lt;P&gt;tSetGlobalVar, but it doesn't work, so there is a method that I can use to make this thing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: I have to refresh table 1 and table 3, my file tells me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to make a "Run if" trigger without losing any records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using these condition:&lt;/P&gt;&lt;P&gt;((String)globalMap.get("test2")).equals("table1")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((String)globalMap.get("test2")).equals("table3")&lt;/P&gt;&lt;P&gt;But only the job of table3 starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how can I do?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371731#M134636</guid>
      <dc:creator>vincecassel</dc:creator>
      <dc:date>2024-11-16T01:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Run if with multiples choices</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371732#M134637</link>
      <description>&lt;P&gt;How do you load the value of file? Using tContextLoad? Can you please share a screenshot of your job?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 14:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371732#M134637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-28T14:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Run if with multiples choices</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371733#M134638</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;already to start, it is advisable to compare the variable to the fixed value&lt;/P&gt;&lt;P&gt;so "test1" .equals (...) to avoid null values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, can you share your job because there is no particular difficulty?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can have for example this pattern&lt;/P&gt;&lt;P&gt;tWarn1 - RunIf_1 (condition) -&amp;gt; tRunJob_1&lt;/P&gt;&lt;P&gt;|&lt;/P&gt;&lt;P&gt;|&lt;/P&gt;&lt;P&gt;tWarn2 - RunIf_2 (condition) -&amp;gt; tRunJob_2&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;with : |&lt;/P&gt;&lt;P&gt;          |&lt;/P&gt;&lt;P&gt; OnSubjobOk&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 14:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371733#M134638</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-07-28T14:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Run if with multiples choices</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371734#M134639</link>
      <description>&lt;P&gt;I am using a little job to better understand how can I do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is so simple, but when I run it, it doesn't work for the first if (although there is "table1" on the file)&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 15:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371734#M134639</guid>
      <dc:creator>vincecassel</dc:creator>
      <dc:date>2020-07-28T15:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Run if with multiples choices</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371735#M134640</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009H7zcAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128406i93B7ADFA377BB1EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009H7zcAAC.png" alt="0693p000009H7zcAAC.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 15:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371735#M134640</guid>
      <dc:creator>vincecassel</dc:creator>
      <dc:date>2020-07-28T15:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Run if with multiples choices</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371736#M134641</link>
      <description>&lt;P&gt;This is because the last value will overwrite the previous values, if you want to iterate each table, change the job design as below；&lt;/P&gt;&lt;P&gt;tFileInputDelimitd--main(row1)--tFlowToiterate--iterate--tJava--runif1--tRunJob3&lt;/P&gt;&lt;P&gt;                                                                                                   --runif2---tRunJob4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set the condition of runIf1 as:&lt;/P&gt;&lt;P&gt;row1.columnName.equals("table1")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set the condition of runIf2 as:&lt;/P&gt;&lt;P&gt;row1.columnName.equals("table3")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 07:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371736#M134641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T07:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Run if with multiples choices</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371737#M134642</link>
      <description>&lt;P&gt;It works! &lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 09:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-with-multiples-choices/m-p/2371737#M134642</guid>
      <dc:creator>vincecassel</dc:creator>
      <dc:date>2020-07-29T09:29:24Z</dc:date>
    </item>
  </channel>
</rss>

