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

"forall" operator in spreadsheet decision tables not properly expanding when items include comparison operators

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 8.34.0.Final
    • decision tables
    • None
    • 2023 Week 09-11 (from Feb 27)
    • Hide

      A simple reproduceable example is available at this link (branch drools8-forall-bug) https://github.com/idemockle/drools-8-scratch/tree/drools8-forall-bug

       

       

      Running MainApp.java results in the following error: {}{}

      Converting the spreadsheet to drl shows the following result:

      Changing drools.version in pom.xml to 7.73.0.Final allows the rules to compile and run without error:

       

      Show
      A simple reproduceable example is available at this link (branch drools8-forall-bug) https://github.com/idemockle/drools-8-scratch/tree/drools8-forall-bug .      Running MainApp.java results in the following error: { } { } Converting the spreadsheet to drl shows the following result: — Changing drools.version in pom.xml to 7.73.0.Final allows the rules to compile and run without error:  
    • NEW
    • NEW
    • ---
    • ---

    Description

      forall is not expanding properly in spreadsheet decision tables in Drools 8.

       

      Ex.

      forall(&&){number $} with cell value ">5,<=10"

      Expected: number >5 && number <=10

      Actual: number >5,<=10

       

      This same example expands properly in drools-decisiontables version 7.73.0.Final

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            idemockle Ian Kent (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: