<?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: Business exception handling in Activiti and Share forms in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/business-exception-handling-in-activiti-and-share-forms/m-p/294306#M247436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you can throw an error in any of the event thrown by activiti, i.e. before leaving the current task, before creating a new one, on the transition itself (&lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.1/concepts/wf-process-def-listeners.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.1/concepts/wf-process-def-listeners.html&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The handling of the error on the UI side remains to be done, as by default it will be done by a plain YUI dialog…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2014 07:21:55 GMT</pubDate>
    <dc:creator>jservajean</dc:creator>
    <dc:date>2014-06-30T07:21:55Z</dc:date>
    <item>
      <title>Business exception handling in Activiti and Share forms</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/business-exception-handling-in-activiti-and-share-forms/m-p/294303#M247433</link>
      <description>I'm developping custom workflows in Alfresco Share using Activiti.I was wandering how to handle "business exceptions", that is to say exception raised from the script layer that I want to display nicely in the sahre form to the user.Let me give you an example :Let's define a model with mandatory bpm</description>
      <pubDate>Thu, 23 Jan 2014 17:05:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/business-exception-handling-in-activiti-and-share-forms/m-p/294303#M247433</guid>
      <dc:creator>jservajean</dc:creator>
      <dc:date>2014-01-23T17:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Business exception handling in Activiti and Share forms</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/business-exception-handling-in-activiti-and-share-forms/m-p/294304#M247434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as far as I know there is now way for you to pass a clean exception message from a script executed within a workflow to the Share user interface. The problem is that there are many application layers that this exception passes through and every layer usually adds some kind of information to the message whenever it handles an error that is unknown / not specific to that layer. Since the layer that executes scripts does not know (or care) about the specific types of errors any script may throw, it can not know which ones should be passed on unaltered and which need more information - it also does not know or particularily care about the fact that the script is executed within a workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is one use case where clean isolation of concerns results in situation that may be neither logical nor helpful to the developer / user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One way I see you can handle this (and other kinds of errors) is by customizing the Alfresco Share JavaScript utility that handles error responses from the submission of the task form, and come up with a way to reliably strip out the unwanted pre-/suffixed information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another way would be by implementing your own AlfrescoScriptDelegate / AlfrescoJavaScript utility and handle the Java exception you receive from the script processor yourself, i.e. extracting the original error message and passing that up the stack to the Share user interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 19:06:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/business-exception-handling-in-activiti-and-share-forms/m-p/294304#M247434</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2014-01-23T19:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Business exception handling in Activiti and Share forms</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/business-exception-handling-in-activiti-and-share-forms/m-p/294305#M247435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you (or anyone) manage to handle errors on transitions in Share forms ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The workarounds AFaust suggested could do the trick but is there a "clean" way to do some checks before a transition is processed and return an error message to the user.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 07:35:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/business-exception-handling-in-activiti-and-share-forms/m-p/294305#M247435</guid>
      <dc:creator>tonyrivet</dc:creator>
      <dc:date>2014-06-27T07:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Business exception handling in Activiti and Share forms</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/business-exception-handling-in-activiti-and-share-forms/m-p/294306#M247436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you can throw an error in any of the event thrown by activiti, i.e. before leaving the current task, before creating a new one, on the transition itself (&lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.1/concepts/wf-process-def-listeners.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.1/concepts/wf-process-def-listeners.html&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The handling of the error on the UI side remains to be done, as by default it will be done by a plain YUI dialog…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 07:21:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/business-exception-handling-in-activiti-and-share-forms/m-p/294306#M247436</guid>
      <dc:creator>jservajean</dc:creator>
      <dc:date>2014-06-30T07:21:55Z</dc:date>
    </item>
  </channel>
</rss>

