I'm not sure if you can decompile a rule to get its sources. When you are using your rules, you are working with a binary representation of them. The RETE algorithm doesn't know anything about the source code. <div>
Guvnor uses another language to express rules (when you create them using the guided editor), which is BRL. This is an xml representation of a rule. Guvnor maintain the rules in BRL syntax in <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Jackrabbit repository. When Guvnor compiles your package, the BRL is translated to DRL and then compiled to PKG. But once the rule is compiled you can't go back. </span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">If you have the DRL available, you can use the rule name from the ConsequenceException to search for the source in the DRL. That is all I can imagine. Maybe someone else have a better solution.</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Best, </span> </div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>
- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Wed, Sep 1, 2010 at 3:49 AM, tom <span dir="ltr"><<a href="mailto:tiberium.linux@gmail.com">tiberium.linux@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hi,<br>
I want to ask for another thing connected to my question: am I to use Apache<br>
Jackrabbit to solve my problem? I want to get rules body (CONDITION, ACTION,<br>
globals definition...) but in Drools I see only classes which contains only<br>
rule's name and rule's package.<br>
<br>
Guvnor does it somehow. As far as I know, it uses Jackrabbit. Is this the<br>
only one method?<br>
<br>
Thanks,<br>
tom.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Getting-rule-s-body-to-application-tp1393181p1398650.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Getting-rule-s-body-to-application-tp1393181p1398650.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br></div>