If you can get the name from the AfterActivationFiredEvent, you can search
in the DRL file for that content right? I don't know if there is a way to
get the content from the knowledge base, because as far as I know the
knowledge base don't save the DRL file inside it, it just get the LHS of the
rules to build the RETE tree.
Cheers
2011/10/24 <GPatel(a)tsys.com>
Is is possible to get textual rule content from
org.drools.definition.rule.Rule? What I am looking to do is get the rule
definition (the when/then part) when a rule fires (i.e on
AfterActivationFiredEvent)
Thanks
G. Patel ----------------------------------------- The information
contained in this communication (including any attachments hereto) is
confidential and is intended solely for the personal and confidential use of
the individual or entity to whom it is addressed. If the reader of this
message is not the intended recipient or an agent responsible for delivering
it to the intended recipient, you are hereby notified that you have received
this communication in error and that any review, dissemination, copying, or
unauthorized use of this information, or the taking of any action in
reliance on the contents of this information is strictly prohibited. If you
have received this communication in error, please notify us immediately by
e-mail, and delete the original message. Thank you
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
- CTO @
http://www.plugtree.com
- MyJourney @
http://salaboy.wordpress.com
- Co-Founder @
http://www.jugargentina.org
- Co-Founder @
http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -