Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-5280

List Filter expression returning single item and nested within arithmetic expression fails to evaluate

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.34.0.Final, 7.36.0.Final
    • dmn engine
    • None
    • 2020 Week 16-18 (from Apr 13)
    • 3
    • Hide

      The attached project includes a demonstration of the behavior in the dmn model "Relation_Bug.dmn", reproducing the unexpected result in Test1.scesim. In this model, the decision "Add" contains the expression described above, while the decisions "GetItem" and "Add2" supply a logically equivalent set of expressions separated into two decisions. The decision "Add" fails to return a result, while "Add2" produces the appropriate result.

      Show
      The attached project includes a demonstration of the behavior in the dmn model "Relation_Bug.dmn", reproducing the unexpected result in Test1.scesim. In this model, the decision "Add" contains the expression described above, while the decisions "GetItem" and "Add2" supply a logically equivalent set of expressions separated into two decisions. The decision "Add" fails to return a result, while "Add2" produces the appropriate result.
    • NEW
    • NEW

      the expression `addend + listOfStructure[field1="some value"].numberField`, where `field1="some value"` filters `listOfStructure` to a single item and `addend` and `numberField` are both non-null numbers, fails to evaluate. It's possible to work around this by placing `listOfStructure[field1="some value"]` into a separate decision.

        1. screenshot-3.png
          screenshot-3.png
          8 kB
        2. screenshot-2.png
          screenshot-2.png
          28 kB
        3. screenshot-1.png
          screenshot-1.png
          19 kB
        4. MySpace_Relation.zip
          7 kB

            mmortari@redhat.com Matteo Mortari
            tracyhires Tracy Hires (Inactive)
            Daniel Rosa Daniel Rosa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: