Re: [rules-users] What are Recursion Rules. Any example
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-tp4025617p4025631.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] What are Recursion Rules. Any example
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 at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] What are Recursion Rules. Any example
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 because your rule consequence, is modifying the objects that are matched in the Condition side of the rule, which causes the re evaluation of the condition. Is that what are you looking for? Cheers On Tue, Aug 20, 2013 at 9:56 AM, ashwindrool ashwin.khandelwa...@gmail.comwrote: 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 at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - MyJourney @ http://salaboy.com http://salaboy.wordpress.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] What are Recursion Rules. Any example
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 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 because your rule consequence, is modifying the objects that are matched in the Condition side of the rule, which causes the re evaluation of the condition. Is that what are you looking for? Cheers On Tue, Aug 20, 2013 at 9:56 AM, ashwindrool ashwin.khandelwa...@gmail.com wrote: 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 at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - MyJourney @ http://salaboy.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users