Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-4473

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

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.4.0, 7.3.3, 7.2.7, 7.4.0-alpha2
    • None
    • 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);
        }
      
      }
      

        This is the controller panel for Smart Panels app

              thorben.lindhauer Thorben Lindhauer
              sebastian.menski Sebastian Menski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: