cancel
Showing results for 
Search instead for 
Did you mean: 

How to discard process definition cache

impulsehu
Champ in-the-making
Champ in-the-making
How to discard process definition cache in activiti5.15.
I know that i can get a deployment cache from process engine config and discard definition,  like these codes "processEngineConfig.getDeploymentCache().discardProcessDefinitionCache()".
But now , in 5.15, the "getDeploymentCache" is disappear.
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
You could try
org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl#getProcessDefinitionCache

    // Reset deployment cache
    ((ProcessEngineConfigurationImpl) processEngineConfiguration).getProcessDefinitionCache().clear();

regards
Martin

impulsehu
Champ in-the-making
Champ in-the-making
got it, thank you very much.