<?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: trigger run if in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257137#M39313</link>
    <description>I just want to make sure if there is an error, the connections are closing properly. No need to use tDie?  What is the tDie for?  &lt;BR /&gt;Thanks.</description>
    <pubDate>Wed, 13 Jun 2012 14:39:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-13T14:39:20Z</dc:date>
    <item>
      <title>trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257135#M39311</link>
      <description>If I have 2 tOracleConnection to connect to a source DB and a target DB&lt;BR /&gt;tRunJob----onSubJobError---&amp;gt;tDie----If(order:1)--&amp;gt;tOracleClose_1&lt;BR /&gt;                                                -----If(order:2)--&amp;gt;tOracleClose_2&lt;BR /&gt;Is this a good way to making sure both connections are closed when the job Die?  Should I use onComponentOK on the tDie?&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 12 Jun 2012 19:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257135#M39311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-12T19:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257136#M39312</link>
      <description>Hi&lt;BR /&gt;I think there is no need to put tDie here.&lt;BR /&gt;What's your purpose?&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Wed, 13 Jun 2012 04:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257136#M39312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-13T04:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257137#M39313</link>
      <description>I just want to make sure if there is an error, the connections are closing properly. No need to use tDie?  What is the tDie for?  &lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 13 Jun 2012 14:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257137#M39313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-13T14:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257138#M39314</link>
      <description>Hi
&lt;BR /&gt;The tDie component is used to shut down the job itself.
&lt;BR /&gt;You might create job like this.
&lt;BR /&gt;tRunJob----onSubJobError----If(order:1)--&amp;gt;tOracleClose_1
&lt;BR /&gt; -----If(order:2)--&amp;gt;tOracleClose_2
&lt;BR /&gt;Remember not to check "Die on child error" on tRunJob.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 14 Jun 2012 02:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257138#M39314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-14T02:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257139#M39315</link>
      <description>I have an issue i.e i am returning value from a stored procedure and depending upon that value i have to trigger the mail, Y =trigger,N=do not trigger,how to do that through runif trigger,procedure is returning proper values(Y/N).&lt;BR /&gt;I am connecting toraclesp component with runif to tsendmail but no results ,please guide.</description>
      <pubDate>Tue, 10 Jul 2012 11:46:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257139#M39315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-10T11:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257140#M39316</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;I have an issue i.e i am returning value from a stored procedure and depending upon that value i have to trigger the mail, Y =trigger,N=do not trigger,how to do that through runif trigger,procedure is returning proper values(Y/N).&lt;BR /&gt;I am connecting toraclesp component with runif to tsendmail but no results ,please guide.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;According to your request description, the job design looks like:
&lt;BR /&gt;tOracleSP--main--tJavaRow--runIf--&amp;gt;tSendMail 
&lt;BR /&gt;on tJavaRow:
&lt;BR /&gt;if(input_row.value.equals("Y")){ //value is the column name on tOracleSP, it stores the return value of SP)
&lt;BR /&gt;globalMap.put("isSend", true);
&lt;BR /&gt;}
&lt;BR /&gt;if(input_row.value.equals("N")){
&lt;BR /&gt;globalMap.put("isSend",false);
&lt;BR /&gt;}
&lt;BR /&gt;set the condition of runIf as:
&lt;BR /&gt;(Boolean)globalMap.get("isSend")
&lt;BR /&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 11 Jul 2012 13:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257140#M39316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-11T13:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257141#M39317</link>
      <description>Thanks for the reply Shong,but now the error is "Exception in component tJavaRow_1 java.lang.NullPointerException..."
&lt;BR /&gt;the flow is oralceSp -&amp;gt;(row)-&amp;gt;tjavarow-&amp;gt;(if)-&amp;gt;tsendmail,now depending on if condition the send mail is to be executed.code in javarow is what you gave above and if(row) also what you have provided,reason i found was that the if(row) condition is executed before and tjavarow afterwards,i also saw this in code that get values is before put value hence the error,how to resolve this,please guide.</description>
      <pubDate>Fri, 13 Jul 2012 10:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257141#M39317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-13T10:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257142#M39318</link>
      <description>Hi
&lt;BR /&gt;It is a NullPointerException here, do you always have a return value "Y" or "N"? Do it return null? If so, try this code on tJavaRow:
&lt;BR /&gt;if(input_row.value.equals("N")||input_row.value==null){
&lt;BR /&gt;globalMap.put("isSend",false);
&lt;BR /&gt;}else{
&lt;BR /&gt;globalMap.put("isSend", true);
&lt;BR /&gt;}
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 13 Jul 2012 10:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257142#M39318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-13T10:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257143#M39319</link>
      <description>Thanks shong,the procedure never return null ,always S or E.</description>
      <pubDate>Fri, 13 Jul 2012 10:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257143#M39319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-13T10:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257144#M39320</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Thanks shong,the procedure never return null ,always S or E.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;You told me that the stored procedure returns Y or N in your previous post, right?</description>
      <pubDate>Fri, 13 Jul 2012 11:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257144#M39320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-13T11:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257145#M39321</link>
      <description>Shong,the issue still exists,the mail gets fired even when the code send 'E',actually as i had told in previous post the globalmap.get does not work,it returns null,that is it fail to get the globalmap.set as in the code set comes before get,is there any way to change the code.please guide.S/E or Y/N they are the same s=success &amp;amp; E=Error.</description>
      <pubDate>Fri, 13 Jul 2012 11:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257145#M39321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-13T11:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257146#M39322</link>
      <description>Hi Shong after putting tlogrow the results are printed as 'S' or 'E' depends on the data.</description>
      <pubDate>Fri, 13 Jul 2012 13:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257146#M39322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-13T13:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257147#M39323</link>
      <description>Hi Shong What is wrong with this stupid code (input_row.st gives E/S) ,but the code does not get fired for either if's
&lt;BR /&gt;if (input_row.st == "E") {
&lt;BR /&gt;System.out.println("inside if" );
&lt;BR /&gt;}else if (input_row.st == "S") {
&lt;BR /&gt;System.out.println("outside if" );
&lt;BR /&gt;globalMap.put("msg_val","Success for ");
&lt;BR /&gt;System.out.println(input_row.st);
&lt;BR /&gt;}
&lt;BR /&gt;Please guide</description>
      <pubDate>Mon, 16 Jul 2012 11:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257147#M39323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-16T11:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257148#M39324</link>
      <description>Hi 
&lt;BR /&gt;In Java, to check one string is equals to another string, should use the method A.equals(B). In your case, the Java code should be: 
&lt;BR /&gt;input_row.st.equals("E") 
&lt;BR /&gt;Please modify your code! 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 16 Jul 2012 12:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257148#M39324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-16T12:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257149#M39325</link>
      <description>Hi Shong no success,changed code,still not getting in the if conditions,please guide(this in a tjavarow component)
&lt;BR /&gt;if (input_row.st.equals("E")) {
&lt;BR /&gt;globalMap.put("msg_val",input_row.st);
&lt;BR /&gt;System.out.println("inside if" );
&lt;BR /&gt;}else if (input_row.st == "S") {
&lt;BR /&gt;System.out.println("outside if" );
&lt;BR /&gt;globalMap.put("msg_val","Error" +input_row.st);
&lt;BR /&gt;System.out.println(input_row.st);
&lt;BR /&gt;}</description>
      <pubDate>Mon, 16 Jul 2012 12:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257149#M39325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-16T12:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257150#M39326</link>
      <description>Hi Shong thanks for your help, had to take help of a java programmer,actually he put one more line after sysout and we came to see that it(procedure output i e E/S) was taking a new line,so it was returning E along with a new line,after putting trim the code worked.</description>
      <pubDate>Tue, 17 Jul 2012 09:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257150#M39326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-17T09:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257151#M39327</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi Shong thanks for your help, had to take help of a java programmer,actually he put one more line after sysout and we came to see that it(procedure output i e E/S) was taking a new line,so it was returning E along with a new line,after putting trim the code worked.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;good news! 
&lt;BR /&gt;Glad to see you get it works now! 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 17 Jul 2012 12:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257151#M39327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-17T12:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: trigger run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257152#M39328</link>
      <description>hi Shong,i have a job which has four components mssqlinput (row)-&amp;gt;tjavarow(row)-&amp;gt;tjava(row)-&amp;gt;tlogrow
&lt;BR /&gt;in tjavarow the code is globalMap.put("var1","test"); &amp;amp; 
&lt;BR /&gt;in tjava the code is System.out.println("tjava " + globalMap.get("var1")); 
&lt;BR /&gt;when i execute this job i get message " tjava null"
&lt;BR /&gt;why this is null when the answer should be " tjava test",
&lt;BR /&gt;I have observed from the code that get comes BEFORE put ,hence null.</description>
      <pubDate>Wed, 18 Jul 2012 08:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trigger-run-if/m-p/2257152#M39328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-18T08:03:57Z</dc:date>
    </item>
  </channel>
</rss>

