<?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: Sending mails when certains contdition remains true in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Sending-mails-when-certains-contdition-remains-true/m-p/2289056#M62475</link>
    <description>You can use run-if trigger from Your tJavaRow component to the tMailSend&lt;BR /&gt;in tJavaRow depending from query result set variable v_send_mail =0/1&lt;BR /&gt;and trigger condition will be just check - is this variable == 1? You can create second trigger (as many as You need) and send different eMail if condition ==0 and etc</description>
    <pubDate>Wed, 16 Nov 2016 03:59:21 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2016-11-16T03:59:21Z</dc:date>
    <item>
      <title>Sending mails when certains contdition remains true</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sending-mails-when-certains-contdition-remains-true/m-p/2289055#M62474</link>
      <description>Hello reader, 
&lt;BR /&gt;I have specific use case scenario where i need to trigger a mail only when the desired contdition is being fulfilled 
&lt;BR /&gt; 
&lt;BR /&gt;I have a redshift table with table name validation 
&lt;BR /&gt;and it has 3 columns with names 
&lt;BR /&gt;restaurant_id,order_time_mysql,order_time_redshift 
&lt;BR /&gt; 
&lt;BR /&gt;what i am doing via query is comparing the time time between 
&lt;BR /&gt;where order_time_mysql=order_time_redshift 
&lt;BR /&gt;(if the result comes out to be null) ===&amp;gt; no actions required 
&lt;BR /&gt; 
&lt;BR /&gt;(if the result comes out to be NOT NULL)===&amp;gt; trigger a mail to desired recipents 
&lt;BR /&gt; 
&lt;BR /&gt;What i have accomplished till now is i have created a job which will trigger a mail irrescpective of result is null or not 
&lt;BR /&gt; 
&lt;BR /&gt;"this is the restaurant_id:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "+context.restaurant_id+"&amp;nbsp;&amp;nbsp;&amp;nbsp; \n last updated entry for this restaurant in redshift was made on date:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "+context.order_date_redshift+" \n&amp;nbsp;&amp;nbsp;&amp;nbsp; last updated entry for this restaurant in mysql was made on date:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "+context.order_date_mysql 
&lt;BR /&gt; 
&lt;BR /&gt;How do i apply the contidion login in the existing scenario 
&lt;BR /&gt;regards 
&lt;BR /&gt;Ankit Khanduri 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFzF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128163i1428AB1566B28DEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFzF.png" alt="0683p000009MFzF.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFlV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151620iCF6E842B12914D14/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFlV.png" alt="0683p000009MFlV.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFqB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131405i914D1AAEAD8E9B10/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFqB.png" alt="0683p000009MFqB.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sending-mails-when-certains-contdition-remains-true/m-p/2289055#M62474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sending mails when certains contdition remains true</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sending-mails-when-certains-contdition-remains-true/m-p/2289056#M62475</link>
      <description>You can use run-if trigger from Your tJavaRow component to the tMailSend&lt;BR /&gt;in tJavaRow depending from query result set variable v_send_mail =0/1&lt;BR /&gt;and trigger condition will be just check - is this variable == 1? You can create second trigger (as many as You need) and send different eMail if condition ==0 and etc</description>
      <pubDate>Wed, 16 Nov 2016 03:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sending-mails-when-certains-contdition-remains-true/m-p/2289056#M62475</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-11-16T03:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sending mails when certains contdition remains true</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sending-mails-when-certains-contdition-remains-true/m-p/2289057#M62476</link>
      <description>thanks for the answer
&lt;BR /&gt;But can u also share how to update tjava component and how to utilize run/if trigger
&lt;BR /&gt;and also i don't want any mail to be trigger if ==0 
&lt;BR /&gt;I am new to talend so help will be really appreciated
&lt;BR /&gt;regards</description>
      <pubDate>Wed, 16 Nov 2016 04:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sending-mails-when-certains-contdition-remains-true/m-p/2289057#M62476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-16T04:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sending mails when certains contdition remains true</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sending-mails-when-certains-contdition-remains-true/m-p/2289058#M62477</link>
      <description>I just show example with context for make type conversion more easy and shorter variables, but same with global variable: 
&lt;BR /&gt; 
&lt;BR /&gt;- add context variable 
&lt;B&gt;send_mail_if&lt;/B&gt;, type INT. You already have few - so this must be easy 
&lt;BR /&gt;in Your already presented tJavaRow: 
&lt;BR /&gt;at the begin insert row: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;context.send_mail_if = 0;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;after all Your rows insert next: 
&lt;BR /&gt; 
&lt;PRE&gt;if (out2.order_date_redshift!=out2.order_date_mysql) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; context.send_mail_if = 1;&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;delete connection between tJavaRow and tSendMail, and right click mouse choose run-if, connect it to tSendMail 
&lt;BR /&gt;then click mouse on this line and edit conditions 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;context.send_mail_if==1;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFzK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145994iC2464BC1B8B80E33/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFzK.png" alt="0683p000009MFzK.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFzG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142451i09725F554520B3BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFzG.png" alt="0683p000009MFzG.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 16 Nov 2016 05:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sending-mails-when-certains-contdition-remains-true/m-p/2289058#M62477</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-11-16T05:12:33Z</dc:date>
    </item>
  </channel>
</rss>

