<?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: Flow control and raising errors in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/flow-control-and-raising-errors/m-p/218422#M171552</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 would just throw Runtime exception and Rest endpoint should transform the exception into the meaningful message. (If it is not supported in the REST api - create a pull request)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Feb 2016 12:30:37 GMT</pubDate>
    <dc:creator>martin_grofcik</dc:creator>
    <dc:date>2016-02-29T12:30:37Z</dc:date>
    <item>
      <title>Flow control and raising errors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flow-control-and-raising-errors/m-p/218417#M171547</link>
      <description>Good day.I'd like to know the best practice in setting up the following workflow.I have a process with a start form.After the user submits the form and the process starts, I want to be able to check the input values and depending on some logic, raise an error so that the process does not start or is</description>
      <pubDate>Thu, 25 Feb 2016 15:51:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flow-control-and-raising-errors/m-p/218417#M171547</guid>
      <dc:creator>maudrid</dc:creator>
      <dc:date>2016-02-25T15:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Flow control and raising errors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flow-control-and-raising-errors/m-p/218418#M171548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also, how do I throw a BpmnError from a script task using javascript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var BpmnError = Java.type(org.activiti.engine.delegate.BpmnError');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;throw new BpmnError("BusinessExeptionOccured","a Message");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it has no effect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 16:53:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flow-control-and-raising-errors/m-p/218418#M171548</guid>
      <dc:creator>maudrid</dc:creator>
      <dc:date>2016-02-25T16:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flow control and raising errors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flow-control-and-raising-errors/m-p/218419#M171549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got this working:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var BpmnError = Java.type('org.activiti.engine.delegate.BpmnError');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;throw new BpmnError("BusinessExeptionOccured","a Message");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There was a missing quote.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the best practice though? How should the error be handled? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now I get &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;HTTP Status 500 - Request processing failed; nested exception is org.activiti.engine.delegate.BpmnError: No catching boundary event found for error with errorCode 'BusinessExeptionOccured', neither in same process nor in parent process.&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 11:06:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flow-control-and-raising-errors/m-p/218419#M171549</guid>
      <dc:creator>maudrid</dc:creator>
      <dc:date>2016-02-26T11:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Flow control and raising errors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flow-control-and-raising-errors/m-p/218420#M171550</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;The error was thrown, but there is no catching event which could catch this error. That's the reason why engine is not able to continue in the process execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 08:10:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flow-control-and-raising-errors/m-p/218420#M171550</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-02-29T08:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Flow control and raising errors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flow-control-and-raising-errors/m-p/218421#M171551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I understand. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact I do not want to continue execution. I'm using the REST API and I do want to show an error message to the user trying to complete the task. Trying to show a user friendly error message is hard when you have to rely on error 500.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is why I would like to know what is the best practice when using the REST API. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If there is some error validating the user input, how do I let them know?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 09:53:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flow-control-and-raising-errors/m-p/218421#M171551</guid>
      <dc:creator>maudrid</dc:creator>
      <dc:date>2016-02-29T09:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Flow control and raising errors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flow-control-and-raising-errors/m-p/218422#M171552</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 would just throw Runtime exception and Rest endpoint should transform the exception into the meaningful message. (If it is not supported in the REST api - create a pull request)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 12:30:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flow-control-and-raising-errors/m-p/218422#M171552</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-02-29T12:30:37Z</dc:date>
    </item>
  </channel>
</rss>

