[rules-users] statefulSession

Wolfgang Laun wolfgang.laun at gmail.com
Wed Feb 2 05:27:36 EST 2011


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 at 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-tp2404150p2404263.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110202/7ebb7bc0/attachment.html 


More information about the rules-users mailing list