<?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: How to remove all workflow instances in Alfresco 5.1 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-remove-all-workflow-instances-in-alfresco-5-1/m-p/103445#M29443</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Yes you can remove all workflows by deleting data in specific tables. Those tables are which start by "act_hi" and "act_ru".&lt;/P&gt;&lt;P&gt;Note: I had the same issue, when I try to remove much workflow instances, 15 000 in your example. So I gave a limit number 300 or 400 for example and it works fine.&lt;BR /&gt;&lt;BR /&gt;I hope that my solution helps some.&lt;BR /&gt;&lt;BR /&gt;Best regards.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2020 10:34:43 GMT</pubDate>
    <dc:creator>malekgn</dc:creator>
    <dc:date>2020-06-04T10:34:43Z</dc:date>
    <item>
      <title>How to remove all workflow instances in Alfresco 5.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-remove-all-workflow-instances-in-alfresco-5-1/m-p/103443#M29441</link>
      <description>&lt;P&gt;I'm purging all unused content on old server Alfresco 5.1.&amp;nbsp;&lt;BR /&gt;Now in Alfresco database is about 15 000 completed and active workflows associated with documents.&lt;BR /&gt;I would find out how to remove these workflows instances.&lt;BR /&gt;I tried to use standard command&amp;nbsp;in workflow console,&lt;/P&gt;&lt;PRE&gt;delete all workflows imeanit&lt;/PRE&gt;&lt;P&gt;but it doesn't work (it runs very slowly and with errors).&amp;nbsp;I can check count of workflow instances in Activity Explorer.&lt;/P&gt;&lt;P&gt;Also I tried to use some ready JS scripts. For example, one of them:&lt;/P&gt;&lt;PRE&gt;var workflowDefinitions = workflow.getAllDefinitions();
    for (i in workflowDefinitions) {
       var workflowDefinition = workflowDefinitions[i]
       logger.error("Def:" + workflowDefinition.id);
       var workflowInstances = workflowDefinition.activeInstances;
       for (j in workflowInstances) {
          wfInst = workflowInstances[j];
          logger.error("   Inst:" + wfInst.id);
          wfInst['delete']();
       }
    }
}&lt;/PRE&gt;&lt;P&gt;Unfortanly, it doesn't work for me too.&lt;/P&gt;&lt;P&gt;I know that modifying Alfresco sql db directly is not so good way.&lt;BR /&gt;However, I have question, is is possible to remove all workflows by deleted required entries (activiti) in sql database?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 13:51:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-remove-all-workflow-instances-in-alfresco-5-1/m-p/103443#M29441</guid>
      <dc:creator>bernard</dc:creator>
      <dc:date>2019-10-22T13:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all workflow instances in Alfresco 5.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-remove-all-workflow-instances-in-alfresco-5-1/m-p/103444#M29442</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think it is possible to remove all workflows from database but I am not sure about it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of removing workflows from database, you can create custom webscript to remove all workflows using &lt;A href="https://dev.alfresco.com/resource/docs/java/org/alfresco/service/cmr/workflow/WorkflowService.html" target="_blank" rel="noopener nofollow noreferrer"&gt;WorkflowService&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vidhi&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.contcentric.com/" target="_self" rel="nofollow noopener noreferrer"&gt;ContCentric&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 05:28:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-remove-all-workflow-instances-in-alfresco-5-1/m-p/103444#M29442</guid>
      <dc:creator>vidhipanchal</dc:creator>
      <dc:date>2019-10-23T05:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all workflow instances in Alfresco 5.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-remove-all-workflow-instances-in-alfresco-5-1/m-p/103445#M29443</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Yes you can remove all workflows by deleting data in specific tables. Those tables are which start by "act_hi" and "act_ru".&lt;/P&gt;&lt;P&gt;Note: I had the same issue, when I try to remove much workflow instances, 15 000 in your example. So I gave a limit number 300 or 400 for example and it works fine.&lt;BR /&gt;&lt;BR /&gt;I hope that my solution helps some.&lt;BR /&gt;&lt;BR /&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 10:34:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-remove-all-workflow-instances-in-alfresco-5-1/m-p/103445#M29443</guid>
      <dc:creator>malekgn</dc:creator>
      <dc:date>2020-06-04T10:34:43Z</dc:date>
    </item>
  </channel>
</rss>

