Thank you very much, Edson. It works!!!!
 

Date: Wed, 6 Jan 2010 10:29:08 -0500
From: [email protected]
To: [email protected]
Subject: Re: [rules-users] Hashmap in rules


   Try simply:

bioAnswers:HashMap( this["HEARING"] == "Y")

   Or

bioAnswers:HashMap( bioAnswers["HEARING"] == "Y")

    Also, I will not comment on the merits of using (or not) abstract 
datastructures as facts, as this was discussed in previous threads already... 
just in case you are unaware of such issues, I suggest you take a look at the 
archives.

   Edson



2010/1/6 Da Sun <[email protected]>


sorry. forgot to send you the cause of the error.
 
org.mvel.CompileException: unable to resolve property: values
 
I don't how what I should use in drl to get the values in the hashmap.
 
Thanks.

 


From: [email protected]

To: [email protected]

Date: Wed, 6 Jan 2010 14:46:58 +0000
Subject: Re: [rules-users] Hashmap in rules






It would help if you specify what the exact error message you are getting.

Have you imported the required classes?

 




From: [email protected] 
[mailto:[email protected]] On Behalf Of Da Sun
Sent: 06 January 2010 14:31
To: [email protected]
Subject: [rules-users] Hashmap in rules

 

I got a CompileException when run the following rule.
 
when
                bioAnswers:HashMap(bioAnswers.values["HEARING"] == "Y")
                reviewMsgs:LinkedList(size >= 0)
        then
                reviewMsgs.add("Hearing");
 
 
It will be very helpful is anyone of you rectify my mistake.
 
Thanks,



Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now.




**************************************************************************************
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
[email protected] and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**************************************************************************************



This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
[email protected] and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes.
To protect the environment please do not print this e-mail unless necessary.

An NDS Group Limited company. www.nds.com




Hotmail: Free, trusted and rich email service. Get it now.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
                                          
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/196390707/direct/01/
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to