<?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 disable history in spring activiti in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-disable-history-in-spring-activiti/m-p/20176#M8932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Activiti with spring boot, I am facing few performance issues while getting the data from the activiti tables this is due to the history tables I guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am querying for the data from the activiti tables, in the 1st scenario it took 0.239 seconds to get the result but in the 2nd scenario it took 1.884 seconds to fetch the data from the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH style="width: 21%;"&gt;Table Name&lt;/TH&gt;&lt;TH style="width: 33.9624%;"&gt;Total records available (1st scenario)&lt;/TH&gt;&lt;TH style="width: 39.0376%;"&gt;&lt;SPAN style="background-color: #efefef; font-weight: bold;"&gt;Total records available (2nd scenario)&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 21%;"&gt;&lt;TABLE width="130"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="130"&gt;act_ge_bytearray&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="width: 33.9624%;"&gt;2177&lt;/TD&gt;&lt;TD style="width: 39.0376%;"&gt;7162&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 21%;"&gt;&lt;TABLE width="130"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="130"&gt;act_hi_actinst&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="width: 33.9624%;"&gt;2452&lt;/TD&gt;&lt;TD style="width: 39.0376%;"&gt;16702&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 21%;"&gt;&lt;TABLE width="130"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="130"&gt;act_hi_identitylink&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="width: 33.9624%;"&gt;1254&lt;/TD&gt;&lt;TD style="width: 39.0376%;"&gt;8409&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 21%;"&gt;&lt;TABLE width="130"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="130"&gt;act_hi_procinst&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="width: 33.9624%;"&gt;407&lt;/TD&gt;&lt;TD style="width: 39.0376%;"&gt;3569&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 21%;"&gt;&lt;TABLE width="130"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="130"&gt;act_hi_taskinst&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="width: 33.9624%;"&gt;1254&lt;/TD&gt;&lt;TD style="width: 39.0376%;"&gt;8409&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 21%;"&gt;&lt;TABLE width="130"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="130"&gt;act_hi_varinst&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="width: 33.9624%;"&gt;407&lt;/TD&gt;&lt;TD style="width: 39.0376%;"&gt;3569&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is the main reason, I want to disable the history.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tech stack:&lt;/P&gt;&lt;P&gt;Spring Activiti - 5.22.0&lt;/P&gt;&lt;P&gt;Spring Boot version - 1.5.8.Release&lt;/P&gt;&lt;P&gt;MyBatis for ORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know, Is there any configuration to disable the history and will be there any problems if we disable the history.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Yashu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;@ Edited&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I tried the below code, which I kept it in springboot configuration class. Still no luck.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;@Bean&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; public ProcessEngineConfigurationImpl getProcessEngineConfiguration() {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; SpringProcessEngineConfiguration processEngineConf = new SpringProcessEngineConfiguration();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; processEngineConf.setHistory(HistoryLevel.NONE.getKey());&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; return processEngineConf;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jan 2019 20:05:30 GMT</pubDate>
    <dc:creator>yaswanthbsactiv</dc:creator>
    <dc:date>2019-01-28T20:05:30Z</dc:date>
    <item>
      <title>How to disable history in spring activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-disable-history-in-spring-activiti/m-p/20176#M8932</link>
      <description>Hi Everyone,I am using Activiti with spring boot, I am facing few performance issues while getting the data from the activiti tables this is due to the history tables I guess.When I am querying for the data from the activiti tables, in the 1st scenario it took 0.239 seconds to get the result but in</description>
      <pubDate>Mon, 28 Jan 2019 20:05:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-disable-history-in-spring-activiti/m-p/20176#M8932</guid>
      <dc:creator>yaswanthbsactiv</dc:creator>
      <dc:date>2019-01-28T20:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable history in spring activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-disable-history-in-spring-activiti/m-p/20177#M8933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure about the Spring equivalent but In version 5.22, and using the Java API, I create an engine using a configuration created via ProcessEngineConfiguration.createProcessEngineConfigurationFromResource() which takes an XML config file&amp;nbsp;with the line &amp;lt;property name="history" value="none"/&amp;gt;. This does turn the history off, and everything works fine, unless you are relying on the history tables of course. History can impact performance as you suspect.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2019 17:16:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-disable-history-in-spring-activiti/m-p/20177#M8933</guid>
      <dc:creator>pault</dc:creator>
      <dc:date>2019-01-31T17:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable history in spring activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-disable-history-in-spring-activiti/m-p/20178#M8934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;B&gt;PaulT _&lt;/B&gt;‌ .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 04:35:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-disable-history-in-spring-activiti/m-p/20178#M8934</guid>
      <dc:creator>yaswanthbsactiv</dc:creator>
      <dc:date>2019-02-01T04:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable history in spring activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-disable-history-in-spring-activiti/m-p/20179#M8935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got solution for the problem which I am facing. Below is the code which is the solution which worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Autowired&lt;BR /&gt; private SpringProcessEngineConfiguration config;&lt;BR /&gt; &lt;BR /&gt; @GetMapping("/startProcess")&lt;BR /&gt; public String startProcess() {&lt;BR /&gt; config.setHistoryLevel(HistoryLevel.NONE);&lt;BR /&gt; System.out.println(config.getHistoryLevel());&lt;BR /&gt; RuntimeService runtimeService = config.getRuntimeService();&lt;BR /&gt; runtimeService.startProcessInstanceByKey("testing_DeletingHistory", "start");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 04:37:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-disable-history-in-spring-activiti/m-p/20179#M8935</guid>
      <dc:creator>yaswanthbsactiv</dc:creator>
      <dc:date>2019-02-01T04:37:12Z</dc:date>
    </item>
  </channel>
</rss>

