[rules-users] How to avoid stateless session rule fire on every fact ?

Wolfgang Laun wolfgang.laun at gmail.com
Wed Aug 7 05:48:39 EDT 2013


On 07/08/2013, viraj <mayuraviraj at gmail.com> wrote:
> I did some research on rete tree. I think what i really needs is to remove
> each node from tree after evaluation ( Ex: When one book is processed that
> and all the subsequent parts of that tree should be removed ). I tried this
> using "retract " modifier. But this takes more time than previous execution.
>

This is getting more and more confusing. Post your problem so we can
discuss a *good* solution, rather than what you thought or did.

>
> According to my requirement I have to keep rule for each book separately.

That's the weirdest thing I ever heard. What's the point?

> Therefore I can't remove those rules. Anyway you have mentioned , agenda
> events don't give rule execution time.

Wrong. I said agenda events can be used to determine the execution
time of a rules RHS.

> So how can one measure rule execution time ?

That's almost certainly what you did.

-W

>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/How-to-avoid-stateless-session-rule-fire-on-every-fact-tp4025383p4025400.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list