[rules-users] Rules with from always loops (Drools 4.0.7)

Przemysław Różycki P.Rozycki at amg.net.pl
Tue Feb 10 04:53:45 EST 2009


Hello,

why does such a rule always loop? Even if no-loop is used?

rule "Hello World"
	no-loop
	when
		$fact1 : MyFactBean1(  )
		$fact2 : MyFactBean2(  ) from $fact1
	then
		System.out.println("Fired!!!");
		update($fact1);
end

The full code of my test application and drl is attached.

Best regards,
-- 
Przemysław Różycki
AMG.net, A Bull Group Company
ul. Łąkowa 29
90-554 Łódź
www.amg.net.pl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: DroolsTest.java
Type: text/x-java
Size: 2212 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20090210/c9be5493/attachment.bin 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Sample.drl
Url: http://lists.jboss.org/pipermail/rules-users/attachments/20090210/c9be5493/attachment.pl 


More information about the rules-users mailing list