<?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: Gaining access to an error code value from Script Task? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/gaining-access-to-an-error-code-value-from-script-task/m-p/131132#M92131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was that other developer &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; As the use case he described was actually a technical error that should be handled in the process, turning the technical error in a business-error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use multiple catching-events (which have their ow error-code). Some service/scripttask/listener after each catching-event could store a variable in the process, which could be accessed by the service-task that has the logic in it to handle the error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2013 12:41:37 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-03-14T12:41:37Z</dc:date>
    <item>
      <title>Gaining access to an error code value from Script Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/gaining-access-to-an-error-code-value-from-script-task/m-p/131129#M92128</link>
      <description>Hi all, quick question… in Activiti, after a Boundary Error Event has fired in response to a BPMNError thrown from Java code, is there a way to gain access to the value of the error code which the BEE fired on, in a script task following the BEE?&amp;nbsp; Is it stored as a process variable, or is there an A</description>
      <pubDate>Tue, 12 Mar 2013 20:47:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/gaining-access-to-an-error-code-value-from-script-task/m-p/131129#M92128</guid>
      <dc:creator>mindcrime</dc:creator>
      <dc:date>2013-03-12T20:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Gaining access to an error code value from Script Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/gaining-access-to-an-error-code-value-from-script-task/m-p/131130#M92129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'd like to handle multiple potential "technical" errors by rethrowing as a BPMNError,&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't you need multiple boundary events then?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Technical exceptions should be handled differently, as the BpmnError is actually build for business errors.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 09:16:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/gaining-access-to-an-error-code-value-from-script-task/m-p/131130#M92129</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-13T09:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Gaining access to an error code value from Script Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/gaining-access-to-an-error-code-value-from-script-task/m-p/131131#M92130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'd like to handle multiple potential "technical" errors by rethrowing as a BPMNError,&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Don't you need multiple boundary events then?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean, from different service tasks.&amp;nbsp; For now, we're treating any "technical error" as equivalent to any other, but any service&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;task can potentially generate one.&amp;nbsp; So after the User Task completes (once somebody in support has fixed the problem, presumably) we want to branch back to the appropriate point in the workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Technical exceptions should be handled differently, as the BpmnError is actually build for business errors.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;LOL… yeah, that's exactly what the docs say, and the approach I *was* taking.&amp;nbsp; Then another Activiti Developer pointed out that&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;just turning the Java exceptions into BpmnError is the most straightforward way to use normal BPMN constructs for dealing with this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;situation, and when I sat down and looked at it, it does seem to be the most straightforward path.&amp;nbsp;&amp;nbsp; The BEE fires, we branch&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to a User Task, and then go back.&amp;nbsp; Unless there's something I'm missing, this seems pretty clean and straight-forward.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 20:08:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/gaining-access-to-an-error-code-value-from-script-task/m-p/131131#M92130</guid>
      <dc:creator>mindcrime</dc:creator>
      <dc:date>2013-03-13T20:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Gaining access to an error code value from Script Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/gaining-access-to-an-error-code-value-from-script-task/m-p/131132#M92131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was that other developer &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; As the use case he described was actually a technical error that should be handled in the process, turning the technical error in a business-error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use multiple catching-events (which have their ow error-code). Some service/scripttask/listener after each catching-event could store a variable in the process, which could be accessed by the service-task that has the logic in it to handle the error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 12:41:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/gaining-access-to-an-error-code-value-from-script-task/m-p/131132#M92131</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-14T12:41:37Z</dc:date>
    </item>
  </channel>
</rss>

