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. 
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 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. 
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.

Best,   

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Wed, Sep 1, 2010 at 3:49 AM, tom <tiberium.linux@gmail.com> wrote:

Hi,
I want to ask for another thing connected to my question: am I to use Apache
Jackrabbit to solve my problem? I want to get rules body (CONDITION, ACTION,
globals definition...) but in Drools I see only classes which contains only
rule's name and rule's package.

Guvnor does it somehow. As far as I know, it uses Jackrabbit. Is this the
only one method?

Thanks,
tom.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Getting-rule-s-body-to-application-tp1393181p1398650.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users