<?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: tRunJob - how to send e-mail on success AND failure? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-how-to-send-e-mail-on-success-AND-failure/m-p/2218126#M13448</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;You can use a Run If condition in this case so that you can connect to same tSendEmail component. But make sure that you are having proper messages for both success and failure scenario.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Personally I would prefer to have it separate so that it will enhance readability of the code. You can refer the Talend Best Practices 4 part series and there also we are following separate components for both success and failure scenarios.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2019 22:42:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-12-16T22:42:43Z</dc:date>
    <item>
      <title>tRunJob - how to send e-mail on success AND failure?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-how-to-send-e-mail-on-success-AND-failure/m-p/2218125#M13447</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a child job which is executed by a tRunJob component.&lt;/P&gt;&lt;P&gt;If the child job has finished execution I want to send an email if job succeeded or failed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I have done it using following components:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tRunJob --&amp;gt; OnComponentOK --&amp;gt; tSendMail1&lt;/P&gt;&lt;P&gt;tRunJob --&amp;gt; OnComponentError --&amp;gt; tSendMail2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to only use one tSendMail component? O don't want to do double work to setup two times a tSendMail component.&lt;BR /&gt;I need some component which leads&amp;nbsp;OnComponentOK and&amp;nbsp;OnComponentError outputs into one input which I can feed into tSendMail.&lt;BR /&gt;Something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tRunJob --&amp;gt; OnComponentOK&amp;nbsp; &amp;nbsp;\&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ??? --&amp;gt; tSendMail_1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /&lt;/P&gt;&lt;P&gt;tRunJob --&amp;gt; OnComponentError /&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help...&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRunJob-how-to-send-e-mail-on-success-AND-failure/m-p/2218125#M13447</guid>
      <dc:creator>mr_burns</dc:creator>
      <dc:date>2024-11-16T03:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: tRunJob - how to send e-mail on success AND failure?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-how-to-send-e-mail-on-success-AND-failure/m-p/2218126#M13448</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;You can use a Run If condition in this case so that you can connect to same tSendEmail component. But make sure that you are having proper messages for both success and failure scenario.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Personally I would prefer to have it separate so that it will enhance readability of the code. You can refer the Talend Best Practices 4 part series and there also we are following separate components for both success and failure scenarios.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 22:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRunJob-how-to-send-e-mail-on-success-AND-failure/m-p/2218126#M13448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-16T22:42:43Z</dc:date>
    </item>
  </channel>
</rss>

