[
https://issues.redhat.com/browse/DROOLS-5891?page=com.atlassian.jira.plug...
]
Luca Molteni moved RHDM-1529 to DROOLS-5891:
--------------------------------------------
Project: Drools (was: Red Hat Decision Manager)
Key: DROOLS-5891 (was: RHDM-1529)
Workflow: GIT Pull Request workflow (was: CDW with docs v1)
Docs QE Status: NEW
Component/s: executable model
(was: BRE)
Environment: (was: RHDM 7.9.0.)
Affects Version/s: (was: 7.9.0.GA)
QE Status: NEW
The use of BigDecimal literal causes a build failure in executable
model.
-------------------------------------------------------------------------
Key: DROOLS-5891
URL:
https://issues.redhat.com/browse/DROOLS-5891
Project: Drools
Issue Type: Bug
Components: executable model
Reporter: Luca Molteni
Assignee: Luca Molteni
Priority: Major
Labels: support
Compiling a rule like (\*1) which is described in MVEL dialect and uses BigDecimal
literal (number literal + suffix 'B') with executable rule models enabled, an
error like (\*2) occurs.
(\*1)
{noformat}
package com.example.reproducer
import com.example.reproducer.Bus
dialect "mvel"
rule "bus3c"
when
$bus : Bus()
then
modify($bus) {
weight = 13000B
}
System.out.println("***** " + $bus + ", weight = " +
$bus.weight);
end
{noformat}
$bus.weight is a BigDecimal type property.
(\*2)
{noformat}
[ERROR] Unable to build KieBaseModel:rules
CompilationProblemErrorResult: org.drools.mvelcompiler.MvelCompilerException: RHS
doesn't have a type
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)