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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major 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
    • ---
    • ---

      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

        1. image-2023-02-27-15-32-29-833.png
          40 kB
          Ian Kent
        2. image-2023-02-27-15-33-20-348.png
          23 kB
          Ian Kent
        3. image-2023-02-27-15-34-17-265.png
          17 kB
          Ian Kent
        4. image-2023-02-27-15-34-29-706.png
          32 kB
          Ian Kent
        5. image-2023-02-27-15-35-03-698.png
          16 kB
          Ian Kent
        6. image-2023-02-27-15-35-25-726.png
          7 kB
          Ian Kent
        7. image-2023-02-27-15-36-04-466.png
          22 kB
          Ian Kent
        8. image-2023-02-27-15-36-33-640.png
          14 kB
          Ian Kent

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

                Created:
                Updated:
                Resolved: