<?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: NPE in 5.11 when deleting a process from a service task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125768#M88507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;b&amp;gt;@vivverma&amp;lt;/b&amp;gt; How do you register this error? The ErrorBoundary event is just a "shortcut" for checking error conditions on each step of the process. If the wrapping is not suitable to you you can still use the "old school" and branch each step with a transition to the process end in case of an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;b&amp;gt;@Joram&amp;lt;/b&amp;gt; Please note that a call of &amp;lt;code&amp;gt;deleteProcessInstance()&amp;lt;/code&amp;gt; from within the process execution, including the delegates, leads to NPE while writing to the history tables. At least this is what we observe with history="full".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Sep 2013 08:23:10 GMT</pubDate>
    <dc:creator>mmaker1234</dc:creator>
    <dc:date>2013-09-17T08:23:10Z</dc:date>
    <item>
      <title>NPE in 5.11 when deleting a process from a service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125760#M88499</link>
      <description>After updating activiti from 5.9 -&amp;gt; 5.11 one of our test cases stopped working:There is a UserTask which ends in a gateway which in turn triggers a ServiceTask, and within that ServiceTask we call activitiRuntimeService.deleteProcessInstance(…).While this has worked fine in 5.9 it fails with a Nu</description>
      <pubDate>Fri, 04 Jan 2013 07:45:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125760#M88499</guid>
      <dc:creator>conradi</dc:creator>
      <dc:date>2013-01-04T07:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: NPE in 5.11 when deleting a process from a service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125761#M88500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;which processinstance do you try to delete? The one you are currently in?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 08:29:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125761#M88500</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2013-01-04T08:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: NPE in 5.11 when deleting a process from a service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125762#M88501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;which processinstance do you try to delete? The one you are currently in?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;yes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the gateway, the decision is made that everything is done and that this process should be deleted for this user.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 12:12:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125762#M88501</guid>
      <dc:creator>conradi</dc:creator>
      <dc:date>2013-01-07T12:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: NPE in 5.11 when deleting a process from a service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125763#M88502</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 change in the AbstractBpmnActivityBehavior is valid I think but the BpmnActivityBehavior had the same code in 5.9, so why is that needed now?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it not a better solution to use the Terminate end event for your use case?&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>Tue, 08 Jan 2013 09:17:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125763#M88502</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-01-08T09:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: NPE in 5.11 when deleting a process from a service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125764#M88503</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;BLOCKQUOTE class="jive-quote"&gt;The change in the AbstractBpmnActivityBehavior is valid I think but the BpmnActivityBehavior had the same code in 5.9, so why is that needed now?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have notice the same thing, and I have no idea what change between 5.9 and 5.11 is responsible here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is why I am a bit anxious about the patch which just checks for the NPE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should I open a jira bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is it not a better solution to use the Terminate end event for your use case?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, it is not only the current workflow which is terminated, but every workflow of a special group.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One could perhaps terminate everything but the current process in the service task and then use the terminate end event&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(btw, the terminate end event is not mentioned in the user guide, but there are examples in the source).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 10:01:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125764#M88503</guid>
      <dc:creator>conradi</dc:creator>
      <dc:date>2013-01-08T10:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: NPE in 5.11 when deleting a process from a service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125765#M88504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did we get any solution for the above issue? I am facing the same issue were i need to end the process Instance execution on occurrence of an error . Do we have any alternatives apart from runtimeService.deleteProcessInstance(pid) ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. Wrapping the Workflow in a callActiviti or Sub process and adding an ErrorBoundary event is not an option in my case. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 09:24:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125765#M88504</guid>
      <dc:creator>vivverma</dc:creator>
      <dc:date>2013-08-29T09:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: NPE in 5.11 when deleting a process from a service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125766#M88505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any updates on the above topic? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 09:26:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125766#M88505</guid>
      <dc:creator>vivverma</dc:creator>
      <dc:date>2013-08-29T09:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: NPE in 5.11 when deleting a process from a service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125767#M88506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Like Tijs said, the best approach is a terminate end event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, if it's about multiple processes, then deleteProcessInstance() is the only option you have&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 09:45:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125767#M88506</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-09-04T09:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: NPE in 5.11 when deleting a process from a service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125768#M88507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;b&amp;gt;@vivverma&amp;lt;/b&amp;gt; How do you register this error? The ErrorBoundary event is just a "shortcut" for checking error conditions on each step of the process. If the wrapping is not suitable to you you can still use the "old school" and branch each step with a transition to the process end in case of an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;b&amp;gt;@Joram&amp;lt;/b&amp;gt; Please note that a call of &amp;lt;code&amp;gt;deleteProcessInstance()&amp;lt;/code&amp;gt; from within the process execution, including the delegates, leads to NPE while writing to the history tables. At least this is what we observe with history="full".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 08:23:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-in-5-11-when-deleting-a-process-from-a-service-task/m-p/125768#M88507</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2013-09-17T08:23:10Z</dc:date>
    </item>
  </channel>
</rss>

