<?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 Difference between throwing BpmnError and using transitions with ActivityExecution in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/difference-between-throwing-bpmnerror-and-using-transitions-with/m-p/181895#M135025</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;I would like to know if there is any fundamental difference between throwing a BpmnError() in my catch block to trigger the ErrorBoundaryEvent and its flow, or using take() on a transition(see belwo code).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know one is directing workflow and the other is using an event, but is there any particular reason to use one and not the other to drive error handling? I am using Activiti 5.14.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public void execute(ActivityExecution execution) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String var = (String) execution.getVariable("var");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PvmTransition transition = null;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String[] splitter = var.split("abc");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;transition = execution.getActivity().findOutgoingTransition("no-exception");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (Exception e) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;transition = execution.getActivity().findOutgoingTransition("exception");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.take(transition);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2015 16:25:16 GMT</pubDate>
    <dc:creator>zlatan316</dc:creator>
    <dc:date>2015-05-11T16:25:16Z</dc:date>
    <item>
      <title>Difference between throwing BpmnError and using transitions with ActivityExecution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/difference-between-throwing-bpmnerror-and-using-transitions-with/m-p/181895#M135025</link>
      <description>Hello,I would like to know if there is any fundamental difference between throwing a BpmnError() in my catch block to trigger the ErrorBoundaryEvent and its flow, or using take() on a transition(see belwo code).I know one is directing workflow and the other is using an event, but is there any partic</description>
      <pubDate>Mon, 11 May 2015 16:25:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/difference-between-throwing-bpmnerror-and-using-transitions-with/m-p/181895#M135025</guid>
      <dc:creator>zlatan316</dc:creator>
      <dc:date>2015-05-11T16:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between throwing BpmnError and using transitions with ActivityExecution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/difference-between-throwing-bpmnerror-and-using-transitions-with/m-p/181896#M135026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A boundary error event is meant to show a functional error flow in the process definition / diagram. If you don't need that, you can also take the correct transition as well. Technically there's not a lot of difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 12:27:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/difference-between-throwing-bpmnerror-and-using-transitions-with/m-p/181896#M135026</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-05-13T12:27:11Z</dc:date>
    </item>
  </channel>
</rss>

