<HTML><BODY>
Hello,<div>is there a way to introspect a Drools file from within java code?</div><div>What I need is to be able to identify the facts and the fact attributes that are used in a given DRL file.</div><div><br></div><div>For example if I have a rule stored in a customer.drl DRL file within my project, containing the following definition:<br>package myRulePackage</div><div><br></div><div>import org.rules.model.Customer</div><div>import org.rules.model.Mambership</div><div><br></div><div>rule "is eligible customer"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>when</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>$c:Customer(status == "active")</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Membership(customer == $c, type == "premium")</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>$c.setEligibilityStatus(true);</div><div>end<br></div><div><br></div><div>What i need is a way to understand that this ruleset customer.drl is using two fact types - Customer and Membership and three of their attributes - Customer.status, Membership.customer and Membership.type.</div><div><br></div><div><br></div><div>I found some information on the internet that such functionality is not supported, however the information was a bit too old, so I decided to ask again.<br><br><br>Big thanks for the support!<br>Milen</div></BODY></HTML>