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

Rule doesn't match with more than 3 rules of BigDecimal coercion in non executable model

XMLWordPrintable

    • 2022 Week 29-31 (from Jul 18), 2022 Week 32-34 (from Aug 8)
    • 3
    • NEW
    • NEW
    • ---
    • ---

      When you have more than 3 rules of BigDecimal coercion, the rule doesn't match with non-exec-model.

      rule "R1"
          when
              Person( salary == 10 )
          then
      end
      rule "R2"
          when
              Person( salary == 20 )
          then
      end
      rule "R3"
          when
              Person( salary == 30 )
          then
      end
      
                  Person john = new Person("John");
                  john.setSalary(new BigDecimal("10"));
                  ksession.insert(john);
                  ksession.fireAllRules();
      

            rhn-support-tkobayas Toshiya Kobayashi
            rhn-support-tkobayas Toshiya Kobayashi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: