I have two rules:

rule "Active premium billing policy initiated by an agent"
        salience 10
        when
                There is a Policy
                - without status "CANL"
                - without status "LAPS"
                - with pbs agent pay plan
                Policy is premium billing
        then
                Notify "This policy is active. Please call your agent for 
billing
information."
                Notify "The agent's phone number is " + p.getAgentPhoneNo() + 
"."
end

rule "Active premium billing policy initiated by an agent renewable"
        when
                There is a Policy
                - without status "CANL"
                - without status "LAPS"
                - with pbs agent pay plan
                - renewable
                Policy is premium billing               
        then
                Disallow renewals
                Notify "Please contact a customer service representative at 
555-1234 to
discuss renewing your policy." 
end

The second rule runs last and causes the first rule to run again because it
flips the renewal flag (modifyObject in the DSL). How can I stop the first
rule from running a second time? no-loop doesn't work and wasn't designed
for this as far as I can tell.
-- 
View this message in context: 
http://www.nabble.com/Rule-running-twice-after-modifyObject-in-related-rule-tf2757992.html#a7690302
Sent from the drools - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to