hyperjumptech/grule-rule-engine

LHS reevaluate into Infinite loop when RHS Fact change

josephlim75 opened this issue · 1 comments

Clarification
This is not a bug but clarification. Does grule has the same mechanism like no-loop in Drools where when a RHS fact change causing the same LHS rule reevaluate and activate causing the rules to run in infinite loop. Is this automatically implemented or we have to explicitly provide a DSL to tell it should not run into a loop

Yes. To specify GruleEngine.MaxCycle you explicitly tell the engine, how many time an evaluation loop can happen. If it loops infinitely, you run into an error as explained in the FAQ