This doesn&#39;t really matter, modify and a notification via a property change listener result in the same code being executed.<br><br>Anyway, rather than calling insert( Object o, boolean b ), you might declare your Java type in the<br>
drl file as<br><br>declare SomeFactType<br>  @propertyChangeSupport(true)<br>end<br><br>and just use insert( Object o ).<br><br>-W<br><br><br><div class="gmail_quote">On 2 February 2011 11:07, Saurabh <span dir="ltr">&lt;<a href="mailto:maheshwari.saurabh03@gmail.com">maheshwari.saurabh03@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi,<br>
but in the case  of org.drools.runtime.StatefulKnowledgeSession<br>
<br>
i have not the insert(factObject ,bool)  . so  how  can i  use<br>
PropertyChangeListener so that i can tell drools that fact properties has<br>
changed.<br>
<br>
session.insert( fact, true );<br>
<br>
<br>
By doing Modify i am able to do this . but  i think modify is taking time.<br>
Does modify first retract then insert (two task )  ?<br>
<br>
Thanks and Regards<br>
<br>
<br>
Saurabh<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/statefulSession-tp2404150p2404263.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/statefulSession-tp2404150p2404263.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<br>
</font><div><div></div><div class="h5">_______________________________________________<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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>