[rules-users] Why all rule condition fired when insert object in drools session?

Wolfgang Laun wolfgang.laun at gmail.com
Sat Jan 26 08:12:42 EST 2013


Look at it this way: if you load your gun only when you want to fire it,
you'll be way too slow and likely to be shot dead before you can
pull the trigger. ;-)

This comparison is not entirely wanton. It's much more efficient for
a Rete network to deal with all rules simultaneously than to maintain
a set of rules where the safety catch is off. And it'd sure cause a hiatus
whenever a sizeable set of rules obtains the focus and everything
would have to be reevaluated...

-W

On 26/01/2013, Zhao Yi <zhaoyi0113 at gmail.com> wrote:
> Hi Frank,
>
> Your proposal will definitely solve my issue. But from drools point of
> view,
> only the rule who got focus is allowed to be fired. Why does drools runtime
> check non-focus rule condition? I think this is useless check right?
>
> In addition, what do you mean by "the agenda-group is faster than the
> fact".
>
> Thanks,
> Zhao Yi
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Why-all-rule-condition-fired-when-insert-object-in-drools-session-tp4021769p4021837.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