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
package com.sample
import com.sample.DroolsTest.MyFactBean1;
import com.sample.DroolsTest.MyFactBean2;
rule "Hello World"
no-loop
when
$fact1 : MyFactBean1( )
$fact2 : MyFactBean2( ) from $fact1
then
System.out.println("Fired!!!");
update($fact1);
end