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