<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Thank you very much, Edson. It works!!!!<BR>&nbsp;<BR>
<HR id=stopSpelling>
Date: Wed, 6 Jan 2010 10:29:08 -0500<BR>From: ed.tirelli@gmail.com<BR>To: rules-users@lists.jboss.org<BR>Subject: Re: [rules-users] Hashmap in rules<BR><BR><BR>&nbsp;&nbsp; Try simply:<BR><BR><SPAN style="FONT-SIZE: 10pt">bioAnswers:HashMap( this["HEARING"] == "Y")</SPAN><BR><BR>&nbsp;&nbsp; Or<BR><BR><SPAN style="FONT-SIZE: 10pt">bioAnswers:HashMap( bioAnswers["HEARING"] == "Y")</SPAN><BR><BR>&nbsp;&nbsp;&nbsp; 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.<BR><BR>&nbsp;&nbsp; Edson<BR><BR><BR>
<DIV class=ecxgmail_quote>2010/1/6 Da Sun <SPAN dir=ltr>&lt;<A href="mailto:sunda99@hotmail.com">sunda99@hotmail.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE class=ecxgmail_quote style="PADDING-LEFT: 1ex">
<DIV>sorry. forgot to send you&nbsp;the cause of the&nbsp;error.<BR>&nbsp;<BR><FONT size=2>org.mvel.CompileException: unable to resolve property: values<BR></FONT>&nbsp;<BR>I don't how what I should use in drl to get the values in the hashmap.<BR>&nbsp;<BR>Thanks.<BR><BR>&nbsp;<BR>
<HR>
From: <A href="mailto:TSwindells@nds.com">TSwindells@nds.com</A>
<DIV class=ecxim><BR>To: <A href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR></DIV>
<DIV class=ecxim>Date: Wed, 6 Jan 2010 14:46:58 +0000<BR></DIV>Subject: Re: [rules-users] Hashmap in rules
<DIV>
<DIV></DIV>
<DIV class=h5><BR><BR>
<DIV>
<SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)">It would help if you specify what the exact error message you are getting.</SPAN><BR>
<SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)">Have you imported the required classes?</SPAN><BR>
<SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)">&nbsp;</SPAN><BR>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: rgb(181,196,223) 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<B><SPAN lang=EN-US style="FONT-SIZE: 10pt">From:</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 10pt"> <A href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</A> [mailto:<A href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</A>] <B>On Behalf Of </B>Da Sun<BR><B>Sent:</B> 06 January 2010 14:31<BR><B>To:</B> <A href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR><B>Subject:</B> [rules-users] Hashmap in rules</SPAN><BR></DIV></DIV>
&nbsp;<BR>
<P style="MARGIN-BOTTOM: 12pt"><SPAN style="FONT-SIZE: 10pt">I got a CompileException when run the following rule.<BR>&nbsp;<BR>when<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bioAnswers:HashMap(bioAnswers.values["HEARING"] == "Y")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reviewMsgs:LinkedList(size &gt;= 0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reviewMsgs.add("Hearing");<BR>&nbsp;<BR>&nbsp;<BR>It will be very helpful is anyone of you rectify my mistake.<BR>&nbsp;<BR>Thanks,</SPAN></P>
<DIV style="TEXT-ALIGN: center" align=center><SPAN style="FONT-SIZE: 10pt">
<HR align=center width="100%" SIZE=2>
</SPAN></DIV>
<SPAN style="FONT-SIZE: 10pt">Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. <A href="http://clk.atdmt.com/GBL/go/196390709/direct/01/">Sign up now.</A></SPAN><BR></DIV></DIV><BR>
<HR>
<FONT face=Arial color=gray size=1><BR>**************************************************************************************<BR>This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the <A href="mailto:postmaster@nds.com">postmaster@nds.com</A> 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.<BR><BR>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<BR>**************************************************************************************<BR></FONT><BR>
<HR>
<FONT face=Arial color=gray size=1>This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the <A href="mailto:postmaster@nds.com">postmaster@nds.com</A> 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.<BR>To protect the environment please do not print this e-mail unless necessary.<BR><BR>An NDS Group Limited company. <A href="http://www.nds.com/">www.nds.com</A><BR></FONT><BR></DIV></DIV>
<DIV class=ecxhm>
<HR>
Hotmail: Free, trusted and rich email service. <A href="http://clk.atdmt.com/GBL/go/196390708/direct/01/">Get it now.</A></DIV></DIV><BR>_______________________________________________<BR>rules-users mailing list<BR><A href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR><A href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>&nbsp;Edson Tirelli<BR>&nbsp;JBoss Drools Core Development<BR>&nbsp;JBoss by Red Hat @ <A href="http://www.jboss.com/">www.jboss.com</A><BR>                                               <br /><hr />Hotmail: Trusted email with powerful SPAM protection. <a href='http://clk.atdmt.com/GBL/go/196390707/direct/01/' target='_new'>Sign up now.</a></body>
</html>