<?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: Exception Handling by error boundary in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-by-error-boundary/m-p/63463#M39809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An error boundary event is a logical error inside a process definition, so no support for Java exceptions there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In other words, you can throw a logical error using a error end event that can be caught be an error boundary event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But you can catch a Java exception within a Java service task and take an error sequence flow from there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So you can add two sequence flows to the Java service task, one for normal process flow (without the exception occurring),&amp;nbsp; and one for error process flow with the sub process you want to execute in case an exception does occur inside the Java service task. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To implement the error routing logic in a Java service task you should implement the ActivityBehaviour interface instead of a JavaDelegate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find more information in the userguide, under Java service task - Handling exceptions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Jun 2011 09:01:48 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2011-06-12T09:01:48Z</dc:date>
    <item>
      <title>Exception Handling by error boundary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-by-error-boundary/m-p/63462#M39808</link>
      <description>Hi!Is it possible to catch java exceptions (may be happens during process execution) by using error-boundary element?If not - what a good strategy for it?I need in case some java exception happens during process execution run special "compensation" subprocess - error-bounudary looks like a most comf</description>
      <pubDate>Sun, 12 Jun 2011 08:40:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-by-error-boundary/m-p/63462#M39808</guid>
      <dc:creator>akakunin</dc:creator>
      <dc:date>2011-06-12T08:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Handling by error boundary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-handling-by-error-boundary/m-p/63463#M39809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An error boundary event is a logical error inside a process definition, so no support for Java exceptions there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In other words, you can throw a logical error using a error end event that can be caught be an error boundary event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But you can catch a Java exception within a Java service task and take an error sequence flow from there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So you can add two sequence flows to the Java service task, one for normal process flow (without the exception occurring),&amp;nbsp; and one for error process flow with the sub process you want to execute in case an exception does occur inside the Java service task. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To implement the error routing logic in a Java service task you should implement the ActivityBehaviour interface instead of a JavaDelegate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find more information in the userguide, under Java service task - Handling exceptions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2011 09:01:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-handling-by-error-boundary/m-p/63463#M39809</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-06-12T09:01:48Z</dc:date>
    </item>
  </channel>
</rss>

