I have two java object(Let say Parent and Child..child extends parent).But I need to specify rule fire only for parent not for its child.
Ex:
when
$raw : Parent()
then
System.out.println(" Parent")
end
----
when
$raw : Child()
then
System.out.println(" Child")
end
If I try to inject child object as a fact, it fire for both. I am not able to use not Child() bz I have lots of child.Thanks
Best regards, Nipuna.