<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">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 class="khtml-block-placeholder"></DIV><DIV>class MyFact{</DIV><DIV>     Map map;</DIV><DIV>     public MyFact(){</DIV><DIV>           this.map = new HashMap();</DIV><DIV>     }</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>     ....setter and getter...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-- test --</DIV><DIV>MyFact myFact = new MyFact();</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Map innerMap = new HashMap();</DIV><DIV>innerMap.put("innerKey", new String("InnerValue"));</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Map map = new HashMap();</DIV><DIV>map.put("mapKey", innerMap);</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>myFact.setMap(map);</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>.... set the RuleBase and insert myFact as a fact for the WorkingMemory...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-------</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Now... how should I write the rule to check the innerKey ??</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>rule "test InnerMap"</DIV><DIV>     when</DIV><DIV>           $mf: MyFact( map['mapKey']['innerKey'] == "InnerValue" ) // doesnt work...</DIV><DIV>    ....</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>           $mf: MyFact( map['mapKey'].this['innerKey'] == "InnerValue" ) // doesnt work...</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>   $mf: MyFact( map['mapKey'].['innerKey'] == "InnerValue" ) // doesnt work...</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>   $mf: MyFact( $innerMap: map['mapKey'], $innerMap['innerKey'] == "InnerValue" ) // doesnt work...</DIV><DIV>           $mf: MyFact( $innerMap: map['mapKey'] -&gt; ($innerMap['innerKey'] == "InnerValue" )) // doesnt work...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks.<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>