[rules-users] make the rule not to fire when insert or update a fact

suntrian suntrian at 126.com
Thu Jun 6 23:58:36 EDT 2013


i write a rule like this

rule
     when
            Now( now     )
            Fact( attrib     )
     then
            //do something
end

Using a Thread with fireUntilHalt( ) Method.
and then i update the Now regularly, and after that i insert a new Fact.  
the problem is that , when i update the Now( ) , the rule fired , and i
insert the Fact, the rule fired again ! 
How can i make the update operation do not trigger the rule , while just
fire the rule when i insert the Fact ?



--
View this message in context: http://drools.46999.n3.nabble.com/make-the-rule-not-to-fire-when-insert-or-update-a-fact-tp4024186.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list