This doesn't really matter, modify and a notification via a property change
listener result in the same code being executed.
Anyway, rather than calling insert( Object o, boolean b ), you might declare
your Java type in the
drl file as
declare SomeFactType
@propertyChangeSupport(true)
end
and just use insert( Object o ).
-W
On 2 February 2011 11:07, Saurabh <maheshwari.saurabh03(a)gmail.com> wrote:
Hi,
but in the case of org.drools.runtime.StatefulKnowledgeSession
i have not the insert(factObject ,bool) . so how can i use
PropertyChangeListener so that i can tell drools that fact properties has
changed.
session.insert( fact, true );
By doing Modify i am able to do this . but i think modify is taking time.
Does modify first retract then insert (two task ) ?
Thanks and Regards
Saurabh
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/statefulSession-tp240...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users