<br>&nbsp;&nbsp; Hi,<br><br>&nbsp;&nbsp; Sorry, I did not understood your question, but I guess you are asking about facts matching ObjectTypeNodes of super classes. The answer is yes, it 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 subclasses of A. It is like if you did an &quot;instanceof&quot; to know what rules 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><br><br><div><span class="gmail_quote">2007/5/20, 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">Hi,</font></div>
<div><font face="Arial" size="2">I have a query. am using Drools 3.0.6.</font></div>
<div><font face="Arial" size="2">i have a ObjectA and ObjectB and 
ObjectC.</font></div>
<div><font face="Arial" size="2">ObjectB and OBjectC inherits Object A.</font></div>
<div><font face="Arial" size="2">am using seperate drl file for objectA, objectB and 
objectC.</font></div>
<div><font face="Arial" size="2">i need to use the DRL pertain to ObjectA when 
validate ObjectB and ObjectC.</font></div>
<div><font face="Arial" size="2">So when i check the object say ObjectB which i 
asserted in working memory, can i assume that ObjectA also available 
implitcitly?</font></div>
<div><font face="Arial" size="2">The rules associated with ObjectA will fire when I 
assert just OBjectB?</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><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>