reset($i);
but this must be written as
modify( $d ){
preset( $i );
}
-W
2010/4/16 Ade Timi
Changing the method name solved the build error problem.
But now I'm having my initial number comparison problem. I am using a rule
flow that runs preset 1st and then customer details. I
pril 2010 14:59
To: Rules Users List
Subject: [rules-users] Fwd: Double Handling
Sorry, I meant to send this to the list.
Ade, let us know if that solves the problem.
Edson
-- Forwarded message --
From: Edson Tirelli
Date: 2010/4/15
Subject: Re: [rules-users]
, Apr 15, 2010 at 12:49 PM, Ade Timi
wrote:
I still haven't gotten any break through with my problem. The issue is my
LHS of the rule. I am using eclipse. For some reason when I refer to this
particular java class and its variables they can't be seen by the rule but
its setters and get
I still haven't gotten any break through with my problem. The issue is my
LHS of the rule. I am using eclipse. For some reason when I refer to this
particular java class and its variables they can't be seen by the rule but
its setters and getters can be seen on the RHS of the rule. I get an error
s
drop the
dialect "mvel"
and write the pattern as
$d : IndividualDecision( loanToVal < 85.0 )
There's no visible need to use mvel.
Or eval: the simplest form for constraints is always best.
-W
2010/4/12 Ade Timi
Many thanks for the response!
Yes it fires when I use
ing a double to a String ("85"). Although MVEL might convert
strings to numbers, I wouldn't use this without some cogent reason.
Do you have this unexpected firing also when you use a double literal, i.e.,
85.0 ?
-W
2010/4/9 Ade Timi
Hi,
I am new to Drools. I am havin
Hi,
I am new to Drools. I am having a problem comparing 2 double values. I have
a Java class with a double attribute called loanToValue. The loanToValue is
been read from an XML file and the value is 92000.0. Based on this value I
do not expect this rule to be fired, but for some reason it does