[rules-users] Rule refiring issue !

Wolfgang Laun wolfgang.laun at gmail.com
Thu Jul 12 04:00:33 EDT 2012


Rewrite this post without confusing mistakes: "rule1" is duplicate.

Also, not showing the LHS conditions and RHS actions makes it
impossible to say what causes which rule to (re-)fire.

-W


On 12/07/2012, abhinay_agarwal <abhinay_agarwal at infosys.com> wrote:
> hey all,
>
> i have a scenario like this..
>
> rule "rule1"
> agenda-group "1"
> salience 0
>     when
>     //something
>     then
>     setFocus("2")
> end
>
>
> rule "rule1"
> agenda-group "1"
> salience -1
>     when
>     //something
>     then
>     //something
> end
>
>
> rule "rule3"
> agenda-group "2"
> salience 0
>     when
>     //something
>     then
>     //something
> end
>
>
> when initially my rule 1 gets fired, it executes its work and sets focus on
> rule 3....
>
> After the execution of rule 3, when it goes back to agend-group "1"..the
> rule 1 is fired again..
>
> can i do something to stop the firing of rule 1 again..i want my rule 2 to
> just get fired when the focus is set again to agenda-group "1"..
>
> i have tried using "no-loop" and "lock-on active", but they dont help in my
> case !!
>
> thanks,
> Abhinay
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Rule-refiring-issue-tp4018618.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