[jboss-jira] [JBoss JIRA] (DROOLS-4175) Error in compiling BigLiteral binding as literal

Luca Molteni (Jira) issues at jboss.org
Thu Jun 13 11:13:02 EDT 2019


Luca Molteni created DROOLS-4175:
------------------------------------

             Summary: Error in compiling BigLiteral binding as literal
                 Key: DROOLS-4175
                 URL: https://issues.jboss.org/browse/DROOLS-4175
             Project: Drools
          Issue Type: Bug
            Reporter: Luca Molteni
            Assignee: Luca Molteni


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";



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list