<?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 How to replace the DefaultHistoryManager in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-defaulthistorymanager/m-p/212977#M166107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I'm looking for some information on how to replace the DefaultHistoryManager with my own implementation.&lt;/P&gt;&lt;P&gt;I found this thread &lt;A _jive_internal="true" class="link-titled" href="https://community.alfresco.com/thread/225056-disable-history-for-specific-process?commentID=797997#comment" title="https://community.alfresco.com/message/797997-re-disable-history-for-specific-process?commentID=797997#comment-797997" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/message/797997-re-disable-history-for-specific-process?commentID=797997#comment-797997&lt;/A&gt; so I know which interface I have to implement but how do I go about configuring Activiti to use my new implementation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2016 10:25:55 GMT</pubDate>
    <dc:creator>tlyle</dc:creator>
    <dc:date>2016-12-12T10:25:55Z</dc:date>
    <item>
      <title>How to replace the DefaultHistoryManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-defaulthistorymanager/m-p/212977#M166107</link>
      <description>Hello all,I'm looking for some information on how to replace the DefaultHistoryManager with my own implementation.I found this thread https://community.alfresco.com/message/797997-re-disable-history-for-specific-process?commentID=797997#comment-797997 so I know which interface I have to implement bu</description>
      <pubDate>Mon, 12 Dec 2016 10:25:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-defaulthistorymanager/m-p/212977#M166107</guid>
      <dc:creator>tlyle</dc:creator>
      <dc:date>2016-12-12T10:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the DefaultHistoryManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-defaulthistorymanager/m-p/212978#M166108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;For registering a new HistoryManager then you have to create the HistoryManager,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;SPAN style="background-color: #e4e4ff;"&gt;class MyHistoryManager&lt;/SPAN&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;extends &lt;/SPAN&gt;AbstractManager &lt;SPAN style="color: #000080; font-weight: bold;"&gt;implements &lt;/SPAN&gt;HistoryManager{&lt;BR /&gt;...&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the SessionFactory ,&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public class &lt;/SPAN&gt;MyHistoryManagerSessionFactory &lt;SPAN style="color: #000080; font-weight: bold;"&gt;implements &lt;/SPAN&gt;SessionFactory {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;java.lang.Class&amp;lt;?&amp;gt; getSessionType() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return &lt;/SPAN&gt;HistoryManager.&lt;SPAN style="color: #000080; font-weight: bold;"&gt;class&lt;/SPAN&gt;; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808000;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;Session openSession() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return new &lt;/SPAN&gt;MyHistoryManager();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;and then just inject the sessionFactory into the engine using configurations like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;bean id="processEngineConfiguration" class="...SomeProcessEngineConfigurationClass"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt; ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt; &amp;lt;property name="customSessionFactories"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt; &amp;lt;list&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt; &amp;lt;bean class="com.mycompany.MyHistoryManagerSessionFactory"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt; &amp;lt;/list&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt; ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 12:34:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-defaulthistorymanager/m-p/212978#M166108</guid>
      <dc:creator>vasile_dirla</dc:creator>
      <dc:date>2016-12-12T12:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the DefaultHistoryManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-defaulthistorymanager/m-p/212979#M166109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasili's answer is absolutely correct, but implementing a complete history manager may be overkill for what you need.&lt;/P&gt;&lt;P&gt;Somewhere around 5.16, the "event" subsystem was introduced (documented here:&amp;nbsp;&lt;A class="link-titled" href="http://www.activiti.org/userguide/#eventDispatcher" title="http://www.activiti.org/userguide/#eventDispatcher" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;&lt;P&gt;This allows you to register for any event and act accordingly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use this mechanism to integrate into such things as NoSQL storage for reporting (e.g. Elasticsearch) as it acts in addition to the existing history tables and will not impact the operation of the history and management REST (and Java) API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if you are looking for a full replacement, then Vasili's directions are correct.&lt;/P&gt;&lt;P&gt;Regards,&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>Mon, 12 Dec 2016 13:43:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-defaulthistorymanager/m-p/212979#M166109</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2016-12-12T13:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the DefaultHistoryManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-defaulthistorymanager/m-p/212980#M166110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replies. They've both been very useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 14:13:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-replace-the-defaulthistorymanager/m-p/212980#M166110</guid>
      <dc:creator>tlyle</dc:creator>
      <dc:date>2016-12-14T14:13:46Z</dc:date>
    </item>
  </channel>
</rss>

