<?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: Handling exceptions of Spring ServiceTasks in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/handling-exceptions-of-spring-servicetasks/m-p/55608#M33445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Folks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm also in doubt on how to handle exceptions in Spring Service Tasks. Does anyone know?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Diogo.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2011 18:58:51 GMT</pubDate>
    <dc:creator>diogosaad</dc:creator>
    <dc:date>2011-11-28T18:58:51Z</dc:date>
    <item>
      <title>Handling exceptions of Spring ServiceTasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/handling-exceptions-of-spring-servicetasks/m-p/55607#M33444</link>
      <description>Hi folks,in the Userguide you're going to find a sample on how to implement dedicated Exception handling for java services. More precisely there is a chapter Handling exceptions describing how to route process execution through another path in case some exception occurs: we just have to implement Ac</description>
      <pubDate>Wed, 16 Nov 2011 19:21:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/handling-exceptions-of-spring-servicetasks/m-p/55607#M33444</guid>
      <dc:creator>gunnar1</dc:creator>
      <dc:date>2011-11-16T19:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Handling exceptions of Spring ServiceTasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/handling-exceptions-of-spring-servicetasks/m-p/55608#M33445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Folks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm also in doubt on how to handle exceptions in Spring Service Tasks. Does anyone know?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Diogo.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 18:58:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/handling-exceptions-of-spring-servicetasks/m-p/55608#M33445</guid>
      <dc:creator>diogosaad</dc:creator>
      <dc:date>2011-11-28T18:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Handling exceptions of Spring ServiceTasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/handling-exceptions-of-spring-servicetasks/m-p/55609#M33446</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;You could do a similar implementation like the ActivityBehavior class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When invoking the Spring bean in the BPMN 2.0 XML you can pass the Execution instance and you can do the same thing like you included in your post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so activiti:expression="#{springBean.method(execution)}"&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>Mon, 28 Nov 2011 21:19:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/handling-exceptions-of-spring-servicetasks/m-p/55609#M33446</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-11-28T21:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Handling exceptions of Spring ServiceTasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/handling-exceptions-of-spring-servicetasks/m-p/55610#M33447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your hint. I already tried that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you a working sample using activiti:expression="#{springBean.method(execution)}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and calling "execution.take(transition);" from the source code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My experience is that setting process variables using the execution parameter works well ("execution.setVariable(…)"), but explicitely calling "execution.take(transition)" leads to exceptions signalling database unique constraint violations &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gunnar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 12:01:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/handling-exceptions-of-spring-servicetasks/m-p/55610#M33447</guid>
      <dc:creator>gunnar1</dc:creator>
      <dc:date>2011-11-30T12:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Handling exceptions of Spring ServiceTasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/handling-exceptions-of-spring-servicetasks/m-p/55611#M33448</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;I use a boundary error event to handle exceptions in spring service tasks. but you have to add this construct directly in the xml, since you can't model it in the designer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created my own BoundaryEventAwareServiceTaskExpressionActivityBehavior class to handle the exception and changed BPMNParse to instantiate this. instaed of standard ServiceTaskExpressionActivityBehavior. If an exception occurs while calling my service, i signal the boundary error event (after evaluating the errorCode).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 17:18:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/handling-exceptions-of-spring-servicetasks/m-p/55611#M33448</guid>
      <dc:creator>gant</dc:creator>
      <dc:date>2011-11-30T17:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Handling exceptions of Spring ServiceTasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/handling-exceptions-of-spring-servicetasks/m-p/55612#M33449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Michael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you very much. Looks like this would be the preferred BPMN like way&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll have a look at ServiceTaskExpressionActivityBehavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gunnar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 07:45:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/handling-exceptions-of-spring-servicetasks/m-p/55612#M33449</guid>
      <dc:creator>gunnar1</dc:creator>
      <dc:date>2011-12-01T07:45:11Z</dc:date>
    </item>
  </channel>
</rss>

