[rules-users] Adding eval on rule cause it to run in infinite loop

brachi brachi.w at sapiens.com
Wed Jun 11 04:35:14 EDT 2014


for this Drools Fact Type:

/*
declare DvFacts0
@propertyReactive
        IsNUMERIC: Double
        condIsNUMERIC: Double
end*/

I have this rule:

/*rule "1"
salience -1
    agenda-group "agenda1"
    when
		$condIsNUMERIC: DvFacts0(eval(condIsNUMERIC == null ) ) 
		$conclusion: DvFacts0( )
    then
		modify($conclusion){setIsNUMERIC(1.0)};
    end*/

the rule hit just one time without the eval clause, adding the eval cause
this rule to run in infinite loop.
have an idea?
put attention that I add  @propertyReactive on the DVFacts0 to avoid this.



--
View this message in context: http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list