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