&nbsp; <br>&nbsp;&nbsp; Yes, anything that would work in java when doing an &quot;instanceof&quot; will match the rule, so you can use interfaces, abstract class or concrete classes. <br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><br><div><span class="gmail_quote">
2007/5/21, Sikkandar Nawabjan &lt;<a href="mailto:Sikkandar.Nawabjan@ustri.com">Sikkandar.Nawabjan@ustri.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div><font color="#000000" face="Arial" size="2">Edson,</font></div>
<div><font face="Arial" size="2">sorry for my confusing question. Yes am asked same 
question.</font></div>
<div><font face="Arial" size="2">Related to this i have one more.</font></div>
<div><font face="Arial" size="2">if my ClassA&nbsp; is as abstract&nbsp; will it 
work?</font></div>
<div><font face="Arial" size="2">is there any constraints?</font></div>
<div><font face="Arial" size="2">please clarify</font></div>
<div><font face="Arial" size="2">Thanks and Regs,</font></div>
<div><font face="Arial" size="2">basha</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font color="#000000" face="Arial" size="2">////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
</font></div>
<div><font color="#000000" face="Arial" size="2">&nbsp;Hi,<br><br>&nbsp;&nbsp; Sorry, 
I did not understood your question, but I guess you are asking<br>about facts 
matching ObjectTypeNodes of super classes. The answer is yes, 
it<br>works:<br><br>public class A {}<br>public class B extends A {}<br>public 
class C extends A {}<br><br>&nbsp;&nbsp; If you have a rule saying<br><br>rule 
XXX<br>when<br>&nbsp;&nbsp; A ()<br>then<br>&nbsp; // do 
something<br>end<br><br>&nbsp;&nbsp; The rule will fire for all facts of class 
A, B and C, as B and C are<br>subclasses of A. It is like if you did an 
&quot;instanceof&quot; to know what rules<br>will fire and what will 
not.<br><br>&nbsp;&nbsp; Hope that is what you were asking.<br><br>&nbsp;&nbsp; 
[]s<br>&nbsp;&nbsp; Edson<br></font></div></div><br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users
</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ 
<a href="http://www.jboss.com">www.jboss.com</a>