I can't disable script engine caching in the process engine configuration

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.4.0, 7.3.3, 7.2.7, 7.4.0-alpha2
    • Affects Version/s: None
    • Component/s: engine
    • None

      Currently you have to use a process engine plugin to disable script engine caching:

      package my.custom.process.engine.plugin;
      
      import org.camunda.bpm.engine.impl.cfg.AbstractProcessEnginePlugin;
      import org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl;
      
      /**
       * Created by hawky4s on 22.06.15.
       */
      public class DisableScriptEngineCacheProcessEnginePlugin extends AbstractProcessEnginePlugin {
      
        @Override
        public void postInit(ProcessEngineConfigurationImpl processEngineConfiguration) {
          System.out.println("Disabling script engine caching for " + processEngineConfiguration.getProcessEngineName());
          processEngineConfiguration.getScriptingEngines().setEnableScriptEngineCaching(false);
        }
      
      }
      

            Assignee:
            Thorben Lindhauer
            Reporter:
            Sebastian Menski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: