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

DMN Decision Table - wrong evaluation of parameter named "product"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 7.8.0.Final
    • 7.5.0.Final, 7.6.0.Final, 7.7.0.Final
    • dmn engine
    • None
    • 2018 Week 17-18, 2018 Week 19-22
    • Hide

      The issue can be reproduced with the attached file.

      Show
      The issue can be reproduced with the attached file.
    • NEW
    • NEW

    Description

      We have an input named "product" that is used in a decision table.
      We upgraded to Drools 7.7.0.Final and noticed that now, what was evaluated was not the object passed as parameter, but an object of type ProductFunction.
      The same issue is present in version 7.5.0.Final and 7.6.0.Final. It was working fine previously.

      I think the issue is coming from the method getAllValues() of EvaluationContextImpl. Maybe the stack should be reversed before iterating over it and putting the values in the map.

      Attachments

        Activity

          People

            fedor.gavrilov Fedor Gavrilov (Inactive)
            dlemoing David Le Moing (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: