<font size="2"><font face="verdana,sans-serif">Hi there everybody,<br clear="all"></font></font><div><div><font class="Apple-style-span" face="verdana, sans-serif"><br></font></div><div><font class="Apple-style-span" face="verdana, sans-serif">I need to perform rule comparison on a project I&#39;m working on using drools expert 5.0. For a specific feature implementation, I have two different knowledge bases with several rules which I need to compare, one by one. By comparing, I mean &quot;inspect&quot; certain conditions within the LHS.</font></div>

<div><font class="Apple-style-span" face="verdana, sans-serif"><br></font></div><div><font class="Apple-style-span" face="verdana, sans-serif">Currently, I&#39;m able to obtain several attributes from rules (org.drools.rule.Rule), such as the agenda-group and the rule name and a few others, but I haven&#39;t been able to do it all. Going deeper, there is LiteralConstraint (for simple conditions) which I can parse and obtain data. However, I don&#39;t know how to do it for OR-conditions, which I guess represents a MultiRestrictionFieldConstraint. Perhaps there is another way?</font></div>

<div><font class="Apple-style-span" face="verdana, sans-serif"><br></font></div><div><font class="Apple-style-span" face="verdana, sans-serif">I know this may seem like a very unorthodox thing to do, but I don&#39;t think there is a better way of comparing knowledge packages (except for full text comparison). Is there?</font></div>

<div><font class="Apple-style-span" face="verdana, sans-serif"><br></font></div><div><font class="Apple-style-span" face="verdana, sans-serif">Thanks in advance,</font></div><div><font class="Apple-style-span" face="verdana, sans-serif">_ miguel, PT</font></div>

<div><font class="Apple-style-span" face="verdana, sans-serif"><br></font></div><div><font class="Apple-style-span" face="verdana, sans-serif"><br></font></div>-- <br><div>&quot;To understand what is recursion you must first understand recursion&quot;</div>

<br>
</div>