well, if you have both room and thermometer asserted as seperate facts, you need to modify each one if you want their changes to be re-considered (not always the case). <br><br>The engine will then re-check all the combinations and create activations for modified facts - basically its the same as if you retracted and asserted those facts anew.
<br><br><div><span class="gmail_quote">On 2/22/07, <b class="gmail_sendername">seeker</b> &lt;<a href="mailto:janko.dimitroff@dai-labor.de">janko.dimitroff@dai-labor.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>I have a fact which holds a reference to another fact. I wonder which one do<br>I have to modify in my RHS.<br>My Objects are Room and Thermometer. Room holds reference to Thermometer<br>(and that has a property describing the value).
<br><br>When my rule fires I want to decrease the temperature level to simulate that<br>the room gets colder until a certain value A is reached. So the rule should<br>be called several times until the actual level equals A.
<br><br>This works ONE time when I set the new value on Thermometer and modify<br>Thermometer, not reaching A (the rule isnt fired again).<br>But works as expected when I modify Room instead of Thermometer (rules is<br>fired several times).
<br><br>I&#39;m new to drools and wonder if that is desired or if I do something wrong.<br><br>To make things more confusing: When several rules met the same conditions,<br>does only one rule gets fired or do all get fired (as I read it from Figure
<br>1.19 of the documention).<br><br>If I modify Room my other rules _dont_ get fired. When I had modified<br>Thermometer my other rules _do_ get fired.<br><br>Is there anyone who can shed a little light on that for me?<br>
--<br>View this message in context: <a href="http://www.nabble.com/modify-object-Tree--tf3268137.html#a9085281">http://www.nabble.com/modify-object-Tree--tf3268137.html#a9085281</a><br>Sent from the drools - user mailing list archive at 
<a href="http://Nabble.com">Nabble.com</a>.<br><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></blockquote></div><br>