[rules-users] Rule refiring issue !

abhinay_agarwal abhinay_agarwal at infosys.com
Thu Jul 12 03:52:49 EDT 2012


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.


More information about the rules-users mailing list