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

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

    • 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

            [CAM-4473] I can't disable script engine caching in the process engine configuration

            Sebastian Menski created issue -
            Sebastian Menski made changes -
            Link New: This issue is depended on by CAM-2857 [ CAM-2857 ]
            Sebastian Menski made changes -
            Link New: This issue is related to SUPPORT-1763 [ SUPPORT-1763 ]
            Daniel Meyer made changes -
            Issue Type Original: Feature Request [ 2 ] New: Bug Report [ 1 ]
            Summary Original: I can disable script engine caching in the process engine configuration New: I can't disable script engine caching in the process engine configuration
            Daniel Meyer made changes -
            Fix Version/s New: 7.2.7 [ 14190 ]
            Daniel Meyer made changes -
            Fix Version/s New: 7.4.0 [ 13505 ]
            Fix Version/s New: 7.3.3 [ 13990 ]
            Daniel Meyer made changes -
            Assignee New: Roman Smirnov [ smirnov ]

            Roman Smirnov added a comment - This fix is included in the following commit: https://github.com/camunda/camunda-bpm-platform/commit/1f950d4036556d8c9790787a9cd71c7721e614f1
            Roman Smirnov made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]
            Roman Smirnov made changes -
            Rank New: Ranked higher

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

                Created:
                Updated:
                Resolved: