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

Error in compiling BigLiteral binding as literal

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • 2019 Week 23-25
    • 1
    • NEW
    • NEW

      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
              lmolteni@redhat.com Luca Molteni
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: