<br>&nbsp;&nbsp; I did not ran your code, but looking at your rules file, I don&#39;t see you updating your container class after changing it&#39;s map attribute values:<br><br>rule &quot;modify&quot;<br>#enabled false<br>ruleflow-group &quot;modify&quot;
<br>salience 20<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; c : MyContainer( $map : map&nbsp; )<br>&nbsp;&nbsp;&nbsp; then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; list.add(&quot;test&quot; );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $map.put(&quot;test1&quot;,&quot;test1&quot; );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $map.put(&quot;test2&quot;,&quot;test2&quot; );
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $map.put(&quot;test3&quot;,&quot;test3&quot; );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $map.put(&quot;test4&quot;,&quot;test4&quot; );&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println( drools.getRule()); <br>end<br><br>&nbsp;&nbsp;&nbsp; After you insert values in the map, you must update your container fact in order for other rules to &quot;see&quot; the changes:
<br><br>update( c );<br><br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2008/1/18, Philokratis &lt;<a href="mailto:philokratis@gmail.com">philokratis@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi Edson,</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>I &nbsp;have not debugged or looked&nbsp;drools&nbsp;internals yet&nbsp;so&nbsp;I am not sure what the problem is.&nbsp;</div>
<div>Please find attached a rules project containing a test Case.</div>
<div>&nbsp;</div>
<div>Thanks<br><br></div><div><span class="e" id="q_1178da25957a2138_1">
<div class="gmail_quote">On Jan 18, 2008 4:17 PM, Edson Tirelli &lt;<a href="mailto:tirelli@post.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tirelli@post.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><br>&nbsp;&nbsp; What problem are you seeing?<br><br>&nbsp;&nbsp; We do have a few tests for that and they are working in trunk, so, maybe you can provide us the code snippet you are using to test that so that I can reproduce the problem in my local machine? 
<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br>
<div><span class="gmail_quote">2008/1/18, Philokratis &lt;<a href="mailto:philokratis@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">philokratis@gmail.com</a>&gt;:</span> 
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div></div>
<div>
<div>Hi guys,</div>
<div>&nbsp;</div>
<div>I have the following rule that does not give the expected result, </div>
<div>I have succesfully tried to bind the map[key] to a variable but again &nbsp;&#39;==&#39; does not work as expected.</div>
<div>&nbsp;</div>
<div>Is there any error in the rule or the way Map is used ?</div>
<div>&nbsp;</div>
<div>Thanks </div>
<div><b><font color="#960000" size="2">
<p align="left">rule</p></font></b><font size="2"></font><font color="#008000" size="2">&quot;report3&quot;</font><font size="2"> </font><font color="#808000" size="2">
<p align="left">&nbsp;</p></font><font size="2"></font><b><font color="#960000" size="2">when</font></b><font size="2"> 
<blockquote dir="ltr" style="margin-right: 0px;">
<p align="left">MyContainer( map[</p></blockquote></font><font color="#008000" size="2">&#39;test1&#39;</font><font size="2">] == </font><font color="#008000" size="2">&quot;test1&quot;</font><font size="2"> ) 
<p align="left"></p></font><b><font color="#960000" size="2">then</font></b><font size="2"> 
</font><blockquote dir="ltr" style="margin-right: 0px;">
<p align="left"><font size="2">System.out.println( drools.getRule()); </font></p></blockquote><font color="#960000" size="2">
<p><strong>end</strong></p>
<p>&nbsp;</p>
<p><strong>MyContainer definition is </strong></p><font color="#7f0055" size="2">
<p align="left"><strong>public</strong></p></font><font color="#000000" size="2"></font><font color="#7f0055" size="2"><strong>class</strong></font><font size="2"><font color="#000000"> MyContainer</font> 
<p align="left"></p></font><font color="#7f0055" size="2"><strong>implements</strong></font><font size="2"> 
<p align="left"><strong>Serializable {</strong></p>
<p align="left"></p>
<p align="left"></p></font><strong><font color="#7f0055" size="2">private</font><font size="2"> Map&lt;String, String&gt; </font><font color="#0000c0" size="2">map</font><font size="2">;</font></strong><font color="#3f5fbf" size="2">

 
<p align="left"></p></font>
<p align="left"><font color="#3f5fbf" size="2"></font></p></font><font size="2"></font><b><font color="#7f0055" size="2">public</font></b><font size="2"> Map&lt;String, String&gt; getMap() { 
<p></p>
<p align="left"></p></font><b><font color="#7f0055" size="2">return</font></b><font size="2"> </font><b><font color="#7f0055" size="2">this</font></b><font size="2">.</font><font color="#0000c0" size="2">map</font><font size="2">

 ; 
<p align="left">}</p>
<p align="left"></p></font><font size="2">
<p align="left"></p></font><b><font color="#7f0055" size="2">public</font></b><font size="2"> </font><b><font color="#7f0055" size="2">void</font></b><font size="2"> setMap(Map&lt;String, String&gt; map) { 
<p align="left"></p></font><b><font color="#7f0055" size="2">this</font></b><font size="2">.</font><font color="#0000c0" size="2">map</font><font size="2"> = map; 
<p>}</p>
<p>}</p></font></div></div></div><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;JBoss Drools Core Development<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646 
<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.jboss.com</a> <br>_______________________________________________<br>rules-users mailing list
<br><a href="mailto:rules-users@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.jboss.org/mailman/listinfo/rules-users
</a><br><br></blockquote></div><br>
</span></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><br clear="all">
</blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;JBoss Drools Core Development<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">
www.jboss.com</a>