<?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 Need to purge data of activiti execution in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163611#M117404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to activiti BPM. We have Activiti implemented in our project and I am seeing following tables are growing in the activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ACT_HI_ACTINST 21,253,589&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ACT_HI_DETAIL 18,867,706&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ACT_HI_VARINST 18,867,705&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ACT_HI_PROCINST 1,946,655&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ACT_RU_VARIABLE 502,627&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ACT_RU_EXECUTION 112,370&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ACT_RU_IDENTITYLINK 56,307&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am of the understanding that after the workflow is finished, the variables associated with the workflow are deleted. But I still see half a million records in the my environment (ACT_RU_VARIABLE 502,627)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Similarly there are other tables which either needs to be purged or archived or both. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to know the best strategy to implement the purging in activiti. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any script which comes with activiti which purges data?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2013 14:02:48 GMT</pubDate>
    <dc:creator>sandeepkhatri01</dc:creator>
    <dc:date>2013-08-20T14:02:48Z</dc:date>
    <item>
      <title>Need to purge data of activiti execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163611#M117404</link>
      <description>I am new to activiti BPM. We have Activiti implemented in our project and I am seeing following tables are growing in the activiti.ACT_HI_ACTINST 21,253,589ACT_HI_DETAIL 18,867,706ACT_HI_VARINST 18,867,705ACT_HI_PROCINST 1,946,655ACT_RU_VARIABLE 502,627ACT_RU_EXECUTION 112,370ACT_RU_IDENTITYLINK 56,</description>
      <pubDate>Tue, 20 Aug 2013 14:02:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163611#M117404</guid>
      <dc:creator>sandeepkhatri01</dc:creator>
      <dc:date>2013-08-20T14:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need to purge data of activiti execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163612#M117405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All ACT_HI tables are history tables and will grow over time if you use a high history level. If you don't want any or less history information you can configure this in the history level. The ACT_RU tables are only for running instances, so they shouldn't grow (only if you start more instances than before).&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, 21 Aug 2013 06:49:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163612#M117405</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-08-21T06:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need to purge data of activiti execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163613#M117406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured out the cause why I was seeing data growth in ACT_RU tables. Whenever some runtime exception comes like NullPointerException the process variables remain in ACT_RU table and when it completes normally it clears off from there. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried explicitly catching the exception and closed the execution by calling- ((ActivityExecution) execution).end(); but it is also not working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointer on this behaviour will be really helpful. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 15:19:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163613#M117406</guid>
      <dc:creator>sandeepkhatri01</dc:creator>
      <dc:date>2013-08-24T15:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need to purge data of activiti execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163614#M117407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was reading through the activit API and figured out the root cause. I am creating process variables at the process start up time and then executing service task asynchronusly. I am getting the runtime exception in service task which shall be running in transaction 2. (see the link below)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, activiti process varibales were not rolled back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wondering what is best stratgey to rollback process variables in this situation ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.activiti.org/userguide/index.html#bpmnConcurrencyAndTransactions" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/index.html#bpmnConcurrencyAndTransactions&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 16:53:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163614#M117407</guid>
      <dc:creator>sandeepkhatri01</dc:creator>
      <dc:date>2013-08-24T16:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need to purge data of activiti execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163615#M117408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That is correct behaviour: the engine brings you back the latest stable state. Why would you want this different?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 09:46:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163615#M117408</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-09-03T09:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need to purge data of activiti execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163616#M117409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a requirement to delete all the leftover records from Runtime tables. The records remains in RU tables in cases where I am getting the runtime exception in service task which is running asynchronously.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 14:53:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163616#M117409</guid>
      <dc:creator>sandeepkhatri01</dc:creator>
      <dc:date>2013-09-06T14:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need to purge data of activiti execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163617#M117410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;About what data are we talking about? Activiti normally rolls back all data, also in the RU tables, when it encounters an exception&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 11:45:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-to-purge-data-of-activiti-execution/m-p/163617#M117410</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-09-12T11:45:07Z</dc:date>
    </item>
  </channel>
</rss>

