<?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 Bulk Delete Process Instances in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/bulk-delete-process-instances/m-p/211851#M164981</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 discovered that due to a bug in one of my Java service tasks, my business process was never being completed. There are several thousand processes instances that are still listed as running, that should really be completed. This is causing all sorts of issues with memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if there is a way to complete these process instances in bulk? Could I maybe update the database tables directly to stop these from running?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sean&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2016 21:59:58 GMT</pubDate>
    <dc:creator>brewmaster</dc:creator>
    <dc:date>2016-11-24T21:59:58Z</dc:date>
    <item>
      <title>Bulk Delete Process Instances</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bulk-delete-process-instances/m-p/211851#M164981</link>
      <description>Hello,I discovered that due to a bug in one of my Java service tasks, my business process was never being completed. There are several thousand processes instances that are still listed as running, that should really be completed. This is causing all sorts of issues with memory.I'm wondering if ther</description>
      <pubDate>Thu, 24 Nov 2016 21:59:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bulk-delete-process-instances/m-p/211851#M164981</guid>
      <dc:creator>brewmaster</dc:creator>
      <dc:date>2016-11-24T21:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Delete Process Instances</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bulk-delete-process-instances/m-p/211852#M164982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While it is possible to do this directly in the database, I believe the best options would be to write a simple unit test that connected to the production database and :&lt;BR /&gt;&lt;BR /&gt;1. retrieved all the bad tasks (using runtimeService.createProcessInstanceQuery().....&lt;BR /&gt;2. iterate over the returned list and terminate the instances (runtimeService.deleteProcessInstance(instanceId, reason)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another alternative would be a similar approach using a script and curl against the REST API.&lt;/P&gt;&lt;P&gt;Let me know if you need some sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 19:31:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bulk-delete-process-instances/m-p/211852#M164982</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2016-12-21T19:31:28Z</dc:date>
    </item>
  </channel>
</rss>

