From test.drl:
package test
import com.sample.Patient;
rule "test"
when
$p:Patient($userId: userId)
then
System.out.println("Patient "+ $userId + " " + $p.getCreateDate() + "(package test)" );
end
rule "user"
when
$p: Patient($userId: userId)
then
System.out.println("User " + $userId + " " + $p.getCreateDate() + " (package test)" );
end
rule "hello"
when
then
System.out.println("Hello World package test");
end
From
test-two.drl:
package test.two
rule "hello one test two"
when
then
System.out.println("Hello World ONE package test two");
end
rule "hello two test two"
when
then
System.out.println("Hello World TWO package test two");
end