<?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 Activiti 6 - JavaDelegate throw exception in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-javadelegate-throw-exception/m-p/5763#M2832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the user guide, it seems like&amp;nbsp;the execute method in the interface&amp;nbsp;JavaDelegate is supposed to be able to throw an exception (The examples in that area show exactly this).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.activiti.org/userguide/index.html#bpmnJavaServiceTask" rel="nofollow noopener noreferrer"&gt;https://www.activiti.org/userguide/index.html#bpmnJavaServiceTask&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I am having with Activiti 6 is that the execute method in the&amp;nbsp;JavaDelegate doesn't allow throwing of exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.activiti.org/javadocs/6.latest/" rel="nofollow noopener noreferrer"&gt;https://www.activiti.org/javadocs/6.latest/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It did allow it in&amp;nbsp;Activti 5.x according to the JavaDocs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.activiti.org/javadocs/org/activiti/engine/delegate/JavaDelegate.html" rel="nofollow noopener noreferrer"&gt;https://www.activiti.org/javadocs/org/activiti/engine/delegate/JavaDelegate.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my implementation of the JavaDelegate, I&amp;nbsp;would like to be able to throw an exception&amp;nbsp;so that I can utilize the "Fail Retry" feature in activiti.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.activiti.org/userguide/index.html#failRetry" rel="nofollow noopener noreferrer"&gt;https://www.activiti.org/userguide/index.html#failRetry&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is not being able to throw an exception in the JavaDelegate expected behavior in Activiti 6? If so, is there another way to use this fail retry feature?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Feb 2018 21:29:38 GMT</pubDate>
    <dc:creator>heyjustyn</dc:creator>
    <dc:date>2018-02-15T21:29:38Z</dc:date>
    <item>
      <title>Activiti 6 - JavaDelegate throw exception</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-javadelegate-throw-exception/m-p/5763#M2832</link>
      <description>Hello,According to the user guide, it seems like&amp;nbsp;the execute method in the interface&amp;nbsp;JavaDelegate is supposed to be able to throw an exception (The examples in that area show exactly this).https://www.activiti.org/userguide/index.html#bpmnJavaServiceTaskThe issue I am having with Activiti 6 is that</description>
      <pubDate>Thu, 15 Feb 2018 21:29:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-6-javadelegate-throw-exception/m-p/5763#M2832</guid>
      <dc:creator>heyjustyn</dc:creator>
      <dc:date>2018-02-15T21:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 6 - JavaDelegate throw exception</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-javadelegate-throw-exception/m-p/5764#M2833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Certainly the test for failRetry&amp;nbsp;is there in the v6 engine -&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/6.x/modules/activiti-engine/src/test/java/org/activiti/engine/test/jobexecutor/JobExecutorFailRetryTest.java" title="https://github.com/Activiti/Activiti/blob/6.x/modules/activiti-engine/src/test/java/org/activiti/engine/test/jobexecutor/JobExecutorFailRetryTest.java" rel="nofollow noopener noreferrer"&gt;Activiti/JobExecutorFailRetryTest.java at 6.x · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;The delegate that the test uses doesn't actually declare that it throws an exception&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/6.x/modules/activiti-engine/src/test/java/org/activiti/engine/test/jobexecutor/RetryFailingDelegate.java" title="https://github.com/Activiti/Activiti/blob/6.x/modules/activiti-engine/src/test/java/org/activiti/engine/test/jobexecutor/RetryFailingDelegate.java" rel="nofollow noopener noreferrer"&gt;Activiti/RetryFailingDelegate.java at 6.x · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;so you should be able to use this feature. Are you able to use that test as an example for your scenario?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 11:35:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-6-javadelegate-throw-exception/m-p/5764#M2833</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-02-16T11:35:24Z</dc:date>
    </item>
  </channel>
</rss>

