Unable to evaluate decisions in the platform outside of a context

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Won't Fix
    • Priority: L3 - Default
    • 7.4.0, 7.4.0-alpha3
    • Affects Version/s: None
    • Component/s: dmn-engine, engine
    • None

      Reproduce:

        public void test() {
          DmnEngine dmnEngine = processEngineConfiguration.getDmnEngine();
          assertNotNull(dmnEngine);
      
          DmnScriptEngineResolver scriptEngineResolver = dmnEngine.getConfiguration().getScriptEngineResolver();
          assertNotNull(scriptEngineResolver);
      
          ScriptEngine scriptEngine = scriptEngineResolver.getScriptEngineForLanguage("juel");
          assertNotNull(scriptEngine);
        }
      

      Description:

      If you try to get a script engine from org.camunda.bpm.engine.impl.scripting.engine.ScriptingEngines it will try to get the process engine configuration from the context, which is null in this case (see Lines 99-102).

            Assignee:
            Unassigned
            Reporter:
            Sebastian Menski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: