AnsweredAssumed Answered

Why processDefinitionCacheLimit not work

Question asked by liyongda on Sep 21, 2015
Latest reply on Sep 22, 2015 by jbarrez
I have set the value of processDefinitionCacheLimit in spring configuration file,.
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
      <property name="dataSource" ref="workflowDataSource" />
      <property name="transactionManager" ref="workflowTxManager" />
      <property name="processDefinitionCacheLimit" value="1"/>
      <property name="databaseSchemaUpdate" value="true" />
      <property name="jobExecutorActivate" value="false" />
      <property name="typedEventListeners">
         <map>
            <entry
               key="TASK_CREATED,TASK_ASSIGNED,TASK_COMPLETED,ENTITY_CREATED,PROCESS_COMPLETED">
               <list>
                  <bean class="cn.szse.workflow.activiti.listener.GlobalEventListener" />
               </list>
            </entry>
         </map>
      </property>
      <property name="history" value="full" />
      <property name="idGenerator">
         <bean class="cn.szse.workflow.activiti.UuidGenerator" />
      </property>
   </bean>

I have deployed 100 processes, the cache size should be 1, but the cache size is incresing to 100. Is the default deployment cache implements LRU? thx

Outcomes