<?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: Error boundary event did not work in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/error-boundary-event-did-not-work/m-p/35240#M14859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Calvin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see in your 'wait1' scriptTask:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border-width: 0px 0px 0px 2px; border-style: initial initial initial solid; border-color: initial initial initial #cccccc; font-size: 12pt; margin: 10px 0px; padding: 0px 0px 0px 20px;"&gt;&amp;lt;scriptTask id="&lt;SPAN style="color: #ff0000; border: 0px; font-weight: inherit; font-size: 16px;"&gt;wait1&lt;/SPAN&gt;" name="wait 1" scriptFormat="groovy" activiti:async="true" activiti:exclusive="false"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;long a = 1/0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/scriptTask&amp;gt;&lt;/PRE&gt;&lt;P&gt;You're dividing by zero, which in Javascript doesn't cause any errors as it is then concluded as 'Infinity' - however, in Groovy and Java, this same code snippet would conclude with an "java.lang.ArithmeticException: / by zero" error. I imagine that's your intention, and you're trying to catch this exception, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, as stated in the &lt;A href="https://www.activiti.org/userguide/#failRetry" rel="nofollow noopener noreferrer"&gt;User Guide&lt;/A&gt;, the behavior you're describing is intended:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"Activiti, in its default configuration, reruns a job 3 times in case of any exception in execution of a job. This holds also for asynchronous task jobs."&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-JEarles&lt;BR /&gt;bp3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Mar 2017 11:53:41 GMT</pubDate>
    <dc:creator>jearles</dc:creator>
    <dc:date>2017-03-27T11:53:41Z</dc:date>
    <item>
      <title>Error boundary event did not work</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-boundary-event-did-not-work/m-p/35239#M14858</link>
      <description>Hi,I'm trying to handle exceptions from a subprocess with a parallel gateway. I expect the subprocess to run into and endEvent with failure, but it didn't. The process is defined as follows:&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL</description>
      <pubDate>Fri, 24 Mar 2017 03:46:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-boundary-event-did-not-work/m-p/35239#M14858</guid>
      <dc:creator>guyuecanhui</dc:creator>
      <dc:date>2017-03-24T03:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error boundary event did not work</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-boundary-event-did-not-work/m-p/35240#M14859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Calvin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see in your 'wait1' scriptTask:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border-width: 0px 0px 0px 2px; border-style: initial initial initial solid; border-color: initial initial initial #cccccc; font-size: 12pt; margin: 10px 0px; padding: 0px 0px 0px 20px;"&gt;&amp;lt;scriptTask id="&lt;SPAN style="color: #ff0000; border: 0px; font-weight: inherit; font-size: 16px;"&gt;wait1&lt;/SPAN&gt;" name="wait 1" scriptFormat="groovy" activiti:async="true" activiti:exclusive="false"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;long a = 1/0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/scriptTask&amp;gt;&lt;/PRE&gt;&lt;P&gt;You're dividing by zero, which in Javascript doesn't cause any errors as it is then concluded as 'Infinity' - however, in Groovy and Java, this same code snippet would conclude with an "java.lang.ArithmeticException: / by zero" error. I imagine that's your intention, and you're trying to catch this exception, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, as stated in the &lt;A href="https://www.activiti.org/userguide/#failRetry" rel="nofollow noopener noreferrer"&gt;User Guide&lt;/A&gt;, the behavior you're describing is intended:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"Activiti, in its default configuration, reruns a job 3 times in case of any exception in execution of a job. This holds also for asynchronous task jobs."&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-JEarles&lt;BR /&gt;bp3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 11:53:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-boundary-event-did-not-work/m-p/35240#M14859</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-03-27T11:53:41Z</dc:date>
    </item>
  </channel>
</rss>

