Usually when you modify or insert inside the RHS then you open the door to
recursion.
e.g.
rule loop
when
not Object()
then
System.out.println("Hi");
insertlogical(new Object());
end
--
View this message in context:
http://drools.46999.n3.nabble.com/What-are-Recursion-Rules-Any-example-tp40256
rule "infection spreads"
when
$a : Person (infected = true)
$b : Person (infected = false, within100meters($a) = true)
then
modify ($a) { infected = true }
end
On 20-08-13 11:00, Mauricio Salatino
wrote:
Hi, why do you w
Hi, why do you want to understand that? What are you trying to solve? Help
us to help you.
Usually when the terms "Rules Recursion" is used, is when you have a rule
or a set of rules that are executed in a loop because the consequence of a
rule trigger the same rule again. This can be caused becau
Hi All,
Can anyone help me in understanding "Recursion Rules".
If any example , will be of great help to me.
Thanks
--
View this message in context:
http://drools.46999.n3.nabble.com/What-are-Recursion-Rules-Any-example-tp4025617.html
Sent from the Drools: User forum mailing list archive a