Just saw this mail . My case was a slightly different. The Double there is one that we
use in Mvel as in when we do something like
$age : Double () from accumulate ( )
I was using this to compare with double in java . Hope this is clear.
Regards,
Akash
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of Wolfgang Laun
Sent: Tuesday, January 18, 2011 4:25 PM
To: Rules Users List
Subject: Re: [rules-users] Greater than or less than in eval
Double as in java.lang.Double? This would be strange, since these types sure are
compatible.
-W
2011/1/18 Mohod, Akash
<Akash.Mohod@morganstanley.com<mailto:Akash.Mohod@morganstanley.com>>
Thanks Wolfgang. Good spot there. The data types were not matching . Fixed now.
One of them was double and other was Double.
Regards,
Akash
From:
rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>
[mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>]
On Behalf Of Wolfgang Laun
Sent: Tuesday, January 18, 2011 1:57 PM
To: Rules Users List
Subject: Re: [rules-users] Greater than or less than in eval
Space after "$"?
Error message?
Types of Employee.age, Event.ageLimit?
It would be preferable to to use
when
Employee ($name : name, $age : age)
Event ($eventName : eventName, ageLimit > $age)
then
-W
2011/1/18 Mohod, Akash
<Akash.Mohod@morganstanley.com<mailto:Akash.Mohod@morganstanley.com>>
Hi,
I am trying to write the following rule using Drools 5.1 but having issues.
when
Employee ($name : name, $ age : age)
Event ($eventName : eventName , $ageLimit : ageLimit)
eval($age < $ ageLimit)
then
System.out.println (" Can participate in the event ");
end
The rule fails to compile.
Regards,
Akash
________________________________
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views
contained herein are not intended to be, and do not constitute, advice within the meaning
of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you
have received this communication in error, please destroy all electronic and paper copies
and notify the sender immediately. Mistransmission is not intended to waive
confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted
under applicable law, to monitor electronic communications. This message is subject to
terms available at the following link:
http://www.morganstanley.com/disclaimers. If you
cannot access these links, please notify us by reply message and we will send the contents
to you. By messaging with Morgan Stanley you consent to the foregoing.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
________________________________
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views
contained herein are not intended to be, and do not constitute, advice within the meaning
of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you
have received this communication in error, please destroy all electronic and paper copies
and notify the sender immediately. Mistransmission is not intended to waive
confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted
under applicable law, to monitor electronic communications. This message is subject to
terms available at the following link:
http://www.morganstanley.com/disclaimers. If you
cannot access these links, please notify us by reply message and we will send the contents
to you. By messaging with Morgan Stanley you consent to the foregoing.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
--------------------------------------------------------------------------
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views
contained herein are not intended to be, and do not constitute, advice within the meaning
of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you
have received this communication in error, please destroy all electronic and paper copies
and notify the sender immediately. Mistransmission is not intended to waive
confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted
under applicable law, to monitor electronic communications. This message is subject to
terms available at the following link:
http://www.morganstanley.com/disclaimers. If you
cannot access these links, please notify us by reply message and we will send the contents
to you. By messaging with Morgan Stanley you consent to the foregoing.