[
https://issues.redhat.com/browse/DROOLS-5119?page=com.atlassian.jira.plug...
]
Michael Anstis commented on DROOLS-5119:
----------------------------------------
I tried to replicate with {{7.34.0.Final}} however everything seems fine.
*_Data Object_*
{code}
package mortgages.mortgages;
/**
* This class was automatically generated by the data modeler tool.
*/
public class D0 implements java.io.Serializable {
static final long serialVersionUID = 1L;
private java.math.BigDecimal f1;
public D0() {
}
public java.math.BigDecimal getF1() {
return this.f1;
}
public void setF1(java.math.BigDecimal f1) {
this.f1 = f1;
}
public D0(java.math.BigDecimal f1) {
this.f1 = f1;
}
}
{code}
*_Guided rule_*
!DROOLS-5119-rule.png|thumbnail!
*_DRL_*
{code}
package mortgages.mortgages;
import java.lang.Number;
rule "r1"
dialect "mvel"
when
D0( f1 == 100B )
then
end
{code}
I could enter {{100}} fine. Saving, closing and re-opening kept the value as {{100}}.
Could you please try {{7.34.0.Final}}?
[Guided Rule Editor] Workbench BigDecimal value turns into 0.0 in
DRL
---------------------------------------------------------------------
Key: DROOLS-5119
URL:
https://issues.redhat.com/browse/DROOLS-5119
Project: Drools
Issue Type: Bug
Components: Examples (Workbench), Guided Rule Editor
Affects Versions: 7.34.0.Final
Reporter: Bhala Hadkar
Assignee: Michael Anstis
Priority: Major
Labels: drools-tools
Attachments: DROOLS-5119-rule.png, Workbench-Guided-Rule.png, drools.png
When I set up a Guided rule on Workbench having a comparison condition on one of the
domain field of type Big Decimal then the int value entered through literal text
disappears and turns into 0.0B.
For e.g. if you look at this Guided Rule screenshot the literal value 100 turned into
0.0.
!Workbench-Guided-Rule.png|thumbnail!
Also in the drools the value becomes 0.0B.
!drools.png|thumbnail!
--
This message was sent by Atlassian Jira
(v7.13.8#713008)