<?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 implement OnComponentError? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-OnComponentError/m-p/2260617#M41699</link>
    <description>For anyone coming across this thread:&lt;BR /&gt;The OnComponentError workflows are only triggered when the components code throws an error.&amp;nbsp; If the component catches and ignores errors then it will never be used.&amp;nbsp; Typically only useful for those components that have a "Die on Error" option.</description>
    <pubDate>Thu, 16 Apr 2015 09:32:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-16T09:32:45Z</dc:date>
    <item>
      <title>How to implement OnComponentError?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-OnComponentError/m-p/2260615#M41697</link>
      <description>I find that many components (for example tXSLT) do not support OnComponentError, even though they allow you to use the flow.
&lt;BR /&gt;It's also not clear how to implement such a feature when creating components.&amp;nbsp; At the moment I'm using the following code snippet to implement the functionality within a custom component:
&lt;BR /&gt;
&lt;PRE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;% if (("true").equals(useErrorWorkflow)) {%&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // A horrible hack to support OnComponentError workflows&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;%=cid%&amp;gt;_error(e, "&amp;lt;%=cid%&amp;gt;", globalMap);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;% } %&amp;gt;&lt;/PRE&gt;
&lt;BR /&gt;I assume there must be a better way to implement this as it is using a 'hidden' function to implement the flow.
&lt;BR /&gt;Could somebody point me in the right direction for how to implement the support for OnComponentError within my components?</description>
      <pubDate>Sat, 16 Nov 2024 11:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-implement-OnComponentError/m-p/2260615#M41697</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T11:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement OnComponentError?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-OnComponentError/m-p/2260616#M41698</link>
      <description>Hi,&lt;BR /&gt;Have you already checked talend KB articles about:&lt;A href="https://help.talend.com/search/all?query=What+is+a+Talend+component&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:What is a Talend component&lt;/A&gt; and&amp;nbsp;&lt;A href="https://help.talend.com/search/all?query=How+to+create+a+custom+component&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:How to create a custom component?&lt;/A&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 14 Apr 2015 03:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-implement-OnComponentError/m-p/2260616#M41698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T03:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement OnComponentError?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-implement-OnComponentError/m-p/2260617#M41699</link>
      <description>For anyone coming across this thread:&lt;BR /&gt;The OnComponentError workflows are only triggered when the components code throws an error.&amp;nbsp; If the component catches and ignores errors then it will never be used.&amp;nbsp; Typically only useful for those components that have a "Die on Error" option.</description>
      <pubDate>Thu, 16 Apr 2015 09:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-implement-OnComponentError/m-p/2260617#M41699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-16T09:32:45Z</dc:date>
    </item>
  </channel>
</rss>

