<?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: How to use Trigger Run If in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203779#M4940</link>
    <description>Does the Run If (that you explained) in the prior posts only work with Boolean expressions? Can we use it with an Integer (for example), 
&lt;BR /&gt;Run If (flag ==1), Run If (flag ==2) etc etc</description>
    <pubDate>Sun, 29 Aug 2010 18:17:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-08-29T18:17:01Z</dc:date>
    <item>
      <title>How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203769#M4930</link>
      <description>&lt;P&gt;How can I use trigger Run If in my application.I am using tReplicate to replicate data into n nuber of branch. I want branches should be executed on certain condition.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 13:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203769#M4930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203770#M4931</link>
      <description>Have a look at 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCj07CAC" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Runif-condition/td-p/65633&lt;/A&gt;.</description>
      <pubDate>Wed, 30 Jun 2010 23:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203770#M4931</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-06-30T23:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203771#M4932</link>
      <description>I am unable to understand that post. Please see image attached. after tReplicate job should be executed on certain condition.</description>
      <pubDate>Mon, 05 Jul 2010 12:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203771#M4932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-05T12:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203772#M4933</link>
      <description>Hi shaky,&lt;BR /&gt;Have you considered putting tFilterRow components after your tReplicate? Your branches could then be executed based on certain conditions on your data. It is not an all-or-nothing-run-if component, but a per-row-run-if component.&lt;BR /&gt;Daniel</description>
      <pubDate>Mon, 05 Jul 2010 15:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203772#M4933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-05T15:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203773#M4934</link>
      <description>How can I execute all or nothing condition...</description>
      <pubDate>Tue, 06 Jul 2010 05:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203773#M4934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-06T05:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203774#M4935</link>
      <description>You can't.  As I suggested in the post I referred you to, the best you can do (other than filtering) is to use a tHashOutput or tFileDelimitedOutput instead of tReplicate and then have a series of RunIfs with your condition from that output component to a corresponding input component.</description>
      <pubDate>Tue, 06 Jul 2010 06:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203774#M4935</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-07-06T06:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203775#M4936</link>
      <description>how to set if condition..in your image its If(order:1). how did you set that? order is field in schema?</description>
      <pubDate>Tue, 06 Jul 2010 06:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203775#M4936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-06T06:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203776#M4937</link>
      <description>Right click on a component and select Trigger &amp;gt; Run if. Then click on the If link and in the Component tab, type your boolean expression e.g. context.ExecutePath==1. Click on the link again to name it with something meaningful. 
&lt;BR /&gt;The displayed order of the If conditions is the order they are executed. That order defaults to the order you create them but you can right-click on any of them and "Modify If links order".</description>
      <pubDate>Tue, 06 Jul 2010 06:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203776#M4937</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-07-06T06:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203777#M4938</link>
      <description>I want to read properties files along with my job running and frpm properties files i want value to check condition. how can I use contextload along with my job</description>
      <pubDate>Tue, 06 Jul 2010 07:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203777#M4938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-06T07:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203778#M4939</link>
      <description>Read the help on tContextLoad, which sets out an example of how to read properties from a file and apply them in a job. Then simply reference the context values in your RunIf expressions.</description>
      <pubDate>Tue, 06 Jul 2010 07:24:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203778#M4939</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-07-06T07:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203779#M4940</link>
      <description>Does the Run If (that you explained) in the prior posts only work with Boolean expressions? Can we use it with an Integer (for example), 
&lt;BR /&gt;Run If (flag ==1), Run If (flag ==2) etc etc</description>
      <pubDate>Sun, 29 Aug 2010 18:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203779#M4940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-29T18:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203780#M4941</link>
      <description>The result of the expression must be true or false but you can use any data types or methods you want in determining the end result e.g. 
&lt;PRE&gt;context.FilePath.startsWith("C:\\") &amp;amp;&amp;amp; context.TestDate.before(TalendDate.parseDate("yyyy-MM-dd","2009-06-30"))&lt;BR /&gt;|| context.RunNumber==1 &amp;amp;&amp;amp; context.MaxValue.compareTo(BigDecimal.valueOf(100000.00))&amp;lt;0&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Aug 2010 10:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203780#M4941</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-08-30T10:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203781#M4942</link>
      <description>Thanks for your response alevy! 
&lt;BR /&gt;Well, that is where I am confused. If you use a boolean expression for the Run_If branches, we can only have two branches right (true or false). What if we needed more than three "Run_if" branches from a tJavaRow or a tJava component? That led me to use a flag of type Integer (flag =1 or flag =2 or flag =3) but I am getting a tJavaRow error with a type mismatch.</description>
      <pubDate>Mon, 30 Aug 2010 21:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203781#M4942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-30T21:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203782#M4943</link>
      <description>The expressions in each of the RunIfs are independent and do not have to be complementary i.e. you can have none or more than one RunIf triggered if that's what you want e.g. 
&lt;BR /&gt; RunIf (order:1) - context.FilePath.startsWith("C:\\") 
&lt;BR /&gt; RunIf (order:2) - context.FilePath.equals("") 
&lt;BR /&gt; RunIf (order:3) - context.TestDate==null 
&lt;BR /&gt; RunIf (order:4) - context.RunNumber&amp;gt;1 
&lt;BR /&gt;It's just like having multiple output flows from a tMap, each with different expression filters.</description>
      <pubDate>Mon, 30 Aug 2010 23:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203782#M4943</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-08-30T23:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203783#M4944</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I am getting a tJavaRow error&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I think it's very unlikely you would want a RunIf directly from a tJavaRow. All flows are completed before a RunIf link is tested so if your RunIf expression depends on data in the flow, it will only be tested from the last row of the flow. If you do want your RunIf tested for each row of the flow, you would need to have a tFlowToIterate.</description>
      <pubDate>Tue, 31 Aug 2010 00:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203783#M4944</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-08-31T00:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203784#M4945</link>
      <description>hi alevy,&lt;BR /&gt;Thanks for your quick responses and the caveat about the tJavaRow and Iterate.&lt;BR /&gt;Actually, I am only checking for one row in a file for the Run IF conditional so I should be ok without the Iterate.  I do use the contents of the file later on for other purposes.&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Tue, 31 Aug 2010 01:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203784#M4945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-31T01:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203785#M4946</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I think it's very unlikely you would want a RunIf directly from a tJavaRow. All flows are completed before a RunIf link is tested so if your RunIf expression depends on data in the flow, it will only be tested from the last row of the flow. If you do want your RunIf tested for each row of the flow, you would need to have a tFlowToIterate.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I have to say thank you for this Alevy 
&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;</description>
      <pubDate>Mon, 04 Apr 2011 11:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203785#M4946</guid>
      <dc:creator>vladika</dc:creator>
      <dc:date>2011-04-04T11:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203786#M4947</link>
      <description>.</description>
      <pubDate>Thu, 31 Mar 2016 17:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203786#M4947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-31T17:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Trigger Run If</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203787#M4948</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt; 
     &lt;BLOCKQUOTE&gt; 
      &lt;TABLE border="1"&gt; 
       &lt;TBODY&gt; 
        &lt;TR&gt; 
         &lt;TD&gt;I am getting a tJavaRow error&lt;/TD&gt; 
        &lt;/TR&gt; 
       &lt;/TBODY&gt; 
      &lt;/TABLE&gt; 
     &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;I think it's very unlikely you would want a RunIf directly from a tJavaRow. &amp;nbsp;All flows are completed before a RunIf link is tested so if your RunIf expression depends on data in the flow, it will only be tested from the last row of the flow. &amp;nbsp;If you do want your RunIf tested for each row of the flow, you would need to have a tFlowToIterate.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Alevy, 
&lt;BR /&gt;I have the exact situation you explained. I am reading a input redshift table for all the rows, and depending upon a column value each row has, i am triggering a new talend flow. 
&lt;BR /&gt;I am using tJavaRow (passing context variables) and my RunIf is only writing one record (as you correctely said), where do add tFlowToIterate to read all the rows and write ouputs accordingly?</description>
      <pubDate>Thu, 15 Dec 2016 03:41:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Trigger-Run-If/m-p/2203787#M4948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-15T03:41:33Z</dc:date>
    </item>
  </channel>
</rss>

