<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Edson,<DIV><BR class="khtml-block-placeholder"></DIV><DIV> Im so sorry, stupid me.... I dont know what happened but this doesnt worked yesterday... </DIV><DIV>dont remember the error, but now is working... must be murphy and his dominating laws :)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks for reply :)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Confirm: $mf: MyFact( map['mapKey']['innerKey'] == "InnerValue" ) // DOes work !! :)</DIV><DIV><BR><DIV><DIV>On 25-07-2007, at 8:53, Edson Tirelli wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><BR> What error are you getting?<BR><BR> I just tested this in MVELSH and it works:<BR><BR>mvel$ map["outerKey"]["innerKey"]<BR>OUT: innerValue<BR><BR> []s<BR> Edson<BR><BR><BR><DIV><SPAN class="gmail_quote"> 2007/7/24, Felipe Piccolini <<A href="mailto:felipe.piccolini@bluesoft.cl">felipe.piccolini@bluesoft.cl</A>>:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <DIV style="">Suppouse I have a Map attribute and one of the values is another Map...how can I check a member of the inner Map?<DIV><BR></DIV><DIV>class MyFact{</DIV><DIV> Map map;</DIV><DIV> public MyFact(){</DIV> <DIV> this.map = new HashMap();</DIV><DIV> }</DIV><DIV><BR></DIV><DIV> ....setter and getter...</DIV><DIV><BR></DIV><DIV>}</DIV><DIV><BR></DIV><DIV>-- test --</DIV><DIV>MyFact myFact = new MyFact();</DIV> <DIV><BR></DIV><DIV>Map innerMap = new HashMap();</DIV><DIV>innerMap.put("innerKey", new String("InnerValue"));</DIV><DIV><BR></DIV><DIV>Map map = new HashMap();</DIV><DIV>map.put("mapKey", innerMap); </DIV><DIV><BR></DIV><DIV>myFact.setMap(map);</DIV><DIV><BR></DIV><DIV>.... set the RuleBase and insert myFact as a fact for the WorkingMemory...</DIV><DIV><BR></DIV><DIV>-------</DIV><DIV><BR></DIV><DIV>Now... how should I write the rule to check the innerKey ?? </DIV><DIV><BR></DIV><DIV>rule "test InnerMap"</DIV><DIV> when</DIV><DIV> $mf: MyFact( map['mapKey']['innerKey'] == "InnerValue" ) // doesnt work...</DIV><DIV> ....</DIV> <DIV><BR></DIV><DIV> $mf: MyFact( map['mapKey'].this['innerKey'] == "InnerValue" ) // doesnt work...</DIV><DIV><SPAN style="white-space: pre;">        </SPAN> $mf: MyFact( map['mapKey'].['innerKey'] == "InnerValue" ) // doesnt work... </DIV><DIV><SPAN style="white-space: pre;">        </SPAN> $mf: MyFact( $innerMap: map['mapKey'], $innerMap['innerKey'] == "InnerValue" ) // doesnt work...</DIV><DIV> $mf: MyFact( $innerMap: map['mapKey'] -> ($innerMap['innerKey'] == "InnerValue" )) // doesnt work... </DIV><DIV><BR></DIV><DIV><BR></DIV><DIV>Thanks.<BR><DIV> <SPAN style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"> <DIV><SPAN style="text-decoration: underline;"><SPAN> </SPAN></SPAN><DIV><FONT size="3"><SPAN style="font-size: 13px;"><B style="font-size: 13px; font-weight: bold;"> <SPAN style="font-size: 13px; font-weight: bold;">Felipe Piccolini M.</SPAN></B></SPAN></FONT></DIV><DIV><A href="mailto:felipe.piccolini@bluesoft.cl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> <SPAN style="color: rgb(0, 0, 238);">felipe.piccolini@bluesoft.cl</SPAN></A></DIV><BR></DIV><DIV><BR></DIV><BR></SPAN> </DIV><BR></DIV></DIV><BR>_______________________________________________<BR>rules-users mailing list<BR> <A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR><A onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank"> https://lists.jboss.org/mailman/listinfo/rules-users</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear="all"><BR>-- <BR> Edson Tirelli<BR> Software Engineer - JBoss Rules Core Developer<BR> Office: +55 11 3529-6000<BR> Mobile: +55 11 9287-5646 <BR> JBoss, a division of Red Hat @ <A href="http://www.jboss.com">www.jboss.com</A><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">rules-users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A></DIV> </BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><SPAN class="Apple-style-span" style="text-decoration: underline;; -khtml-text-decorations-in-effect: underline; "><SPAN class="Apple-style-span" style="-khtml-text-decorations-in-effect: underline; "> </SPAN></SPAN><DIV><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"><B style="font-size: 13px; font-weight: bold; "><SPAN class="Apple-style-span" style="font-size: 13px; font-weight: bold; ">Felipe Piccolini M.</SPAN></B></SPAN></FONT></DIV><DIV><A href="mailto:felipe.piccolini@bluesoft.cl"><SPAN class="Apple-style-span" style="color: rgb(0, 0, 238); -khtml-text-decorations-in-effect: underline; ">felipe.piccolini@bluesoft.cl</SPAN></A></DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></BODY></HTML>