Evaluating a script in the context of a DMN table misses the Spin bindings

XMLWordPrintable

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

      For example, I cannot use a Groovy script that calls S(var).jsonPath(...)... in the context of a output entry expression.

      As the S function is available when using JUEL expressions, it should also be available in scripts.

      Example table

      <?xml version="1.0" encoding="UTF-8"?>
      <definitions xmlns="http://www.omg.org/spec/DMN/20151101/dmn.xsd"
                   id="definitions"
                   name="camunda"
                   namespace="http://camunda.org/schema/1.0/dmn">
        <decision id="testDecision" name="decision">
          <decisionTable id="table">
            <output id="result" name="result" >
            </output>
            <rule id="rule">
              <outputEntry id="output1" expressionLanguage="groovy">
                <text>S("{\"foo\":\"bar\"}").jsonPath("\$.foo").element().toString()</text>
              </outputEntry>
            </rule>
          </decisionTable>
        </decision>
      </definitions>
      

            Assignee:
            Unassigned
            Reporter:
            Thorben Lindhauer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: