<?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 Automatically delete a process instance on failure in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/automatically-delete-a-process-instance-on-failure/m-p/216674#M169804</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;Beginner question here: is it possible to automatically (i.e. programmatically) delete a process instance data from runtime if the process fails with exception?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Details: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we have some processes with async steps that we never rerun if they fail. We don't want them to pile up so we need to have them deleted. Our first attempt was to add an event listener for JOB_EXECUTION_FAILURE and call RuntimeService.deleteProcessInstance from there - doesn't work, no exceptions but process instance not deleted either. If the event listener does not call deleteProcessInstance immediately but schedules a Timer for say 2 minutes, process instance is deleted however this doesn't look like a clean solution, more like a workaround. Any recommendations? I found similar questions in the forum but nothing solid. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ivaylo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Feb 2016 11:42:27 GMT</pubDate>
    <dc:creator>izlatanov</dc:creator>
    <dc:date>2016-02-20T11:42:27Z</dc:date>
    <item>
      <title>Automatically delete a process instance on failure</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automatically-delete-a-process-instance-on-failure/m-p/216674#M169804</link>
      <description>Hello,Beginner question here: is it possible to automatically (i.e. programmatically) delete a process instance data from runtime if the process fails with exception?Details: we have some processes with async steps that we never rerun if they fail. We don't want them to pile up so we need to have th</description>
      <pubDate>Sat, 20 Feb 2016 11:42:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automatically-delete-a-process-instance-on-failure/m-p/216674#M169804</guid>
      <dc:creator>izlatanov</dc:creator>
      <dc:date>2016-02-20T11:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically delete a process instance on failure</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automatically-delete-a-process-instance-on-failure/m-p/216675#M169805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ivaylo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It could be easily&amp;nbsp; done with Terminate End Event. Your process has to throw BpmnError which can be caught by boundary catching error event associated with the given process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 09:35:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automatically-delete-a-process-instance-on-failure/m-p/216675#M169805</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-02-22T09:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically delete a process instance on failure</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automatically-delete-a-process-instance-on-failure/m-p/216676#M169806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;simply beautiful solution, thanks !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ivaylo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 16:14:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automatically-delete-a-process-instance-on-failure/m-p/216676#M169806</guid>
      <dc:creator>izlatanov</dc:creator>
      <dc:date>2016-02-22T16:14:34Z</dc:date>
    </item>
  </channel>
</rss>

