Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-985

Error in compiling BigLiteral binding as literal

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.4.1.GA
    • None
    • BRE
    • None
    • 2019 Week 26-28, 2019 Week 29-31

      When beta joining two fields with a BigDecimal or BigInteger field, if a field is assigned as a binding the drools-model-compiler fails the compilation.

      "import " + Result.class.getCanonicalName() + ";" +
      "import " + Person.class.getCanonicalName() + ";" +
      "rule R when\n" +
      " $r : Result()\n" +
      " $markV : Person(name == \"Mark\", $markMoney : money)\n" +
      " $richerV : Person(name != \"Mark\", money > $markMoney)\n" +
      "then\n" +
      " $r.setValue($richerV.getName() + \" is richer than \" + $markV.getName());\n" +
      "end";

              lmolteni@redhat.com Luca Molteni
              rhn-support-erismith Erik Smith
              Tibor Zimányi Tibor Zimányi
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: