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

Unable to evaluate decisions in the platform outside of a context

    XMLWordPrintable

    Details

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

      Description

      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).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: