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

DMN align sum([]) without error (followup DROOLS-5438)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • dmn engine
    • None
    • 2020 Week 34-36 (from Aug 17)
    • 2
    • NEW
    • NEW

      Before DROOLS-5438 the behaviour of sum() was not correct, since it was

      sum([]) = 0
      

      while DMNv1.3 specified that ought to be:

      sum([]) = null
      

      While DROOLS-5438 fixed the correct result (null value) it was emitting an Error which was never required by the spec, since it mentions:

      parameter:

      list of 0 or more numbers (...)

      result:

      or null if list is empty

              mmortari@redhat.com Matteo Mortari
              mmortari@redhat.com Matteo Mortari
              Daniel Rosa Daniel Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: