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

Rules evaluation fails after several iterations, when number comparsion is done with quote surrounded values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.5.1.Final, 6.0.0.Beta4
    • 5.5.0.Final
    • None
    • None
    • Workaround Exists
    • Hide

      Do not use quotes around number values

      Show
      Do not use quotes around number values

      The following rule evaluation will fail eventually after several iterations from the same rulebase.

      ...
      when
      A(name == "amount", value > "5000")
      then
      ...

      The rule execution starts to fail after 20 iterations. The rule works fine if stated like this:

      ...
      when
      A(name == "amount", value > 5000)
      then
      ...

      A test project showing the problem will be provided. This issue may be related to JBRULES-2898

            mfusco@redhat.com Mario Fusco
            boon2 Boon Elschenbroich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: