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

Invalid dropdown value for JS as a DMN Decision Table's input expression language in Modeler

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • None
    • camunda modeler, dmn-engine

      When creating a DMN Decision Table in Modeler (0.5.1), one can choose an alternative Language for input expressions.
      One of the options is Javascript (beware the lowercase s).
      When running the separate DMN (7.4.0) engine with JDK 1.8 (i.e. Nashorn scripting engine), I get the error that there is no scripting engine for "Javascript".
      A little debugging shows that Nashorn is available under eight different names including "JavaScript" and "javascript" (but not "Javascript") - hence the missed match.

      Changing the selected Language manually to one of the recognized names associated with Nashorn fixes the problem. I didn't test it with Rhino.

      Btw. the given hint "return obj.propertyName;" produces an invalid return statement exception. The shorter "obj.propertyName;" on the other hand is evaluated like the above return statement by Nashorn.

      1. Please fix the typo in the JavaScript drop down option for the input expression Language.
      2. Consider providing a sample script that works under the default/first available script Language (JS).

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              CarstenEnglert Carsten Wickner
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: