As a RETE network is being created, DRL Rules are parsed into an internal "descriptor" structure (a high level AST)
and then compiled into a RETE.

There are "APIs" to create rules at the descriptor level: this can then be "dumped" back into DRL.
To work at the DRL level directly, it's common to use parametric "templates".

If your internal (meta)model is object oriented, you could consider using DRL rules to write the translators :)

Davide

p.s. could you provide some more information about your use case? I'm doing some research on rule authoring
environments right now. Thanks!



On 03/19/2013 09:54 AM, Michael Anstis wrote:
Rules are DRL that is a String.

Where and how you choose to store the String is up to you.

Please try to explain what you want to achieve a little more.

On 19 March 2013 12:49, kurrent93 <kurrent93@gmail.com> wrote:
HI all

Is there any samples or documentation for reading and writing of rules?

The user case is we are trying to build a custom Rule Editor, and thus would
like to write and read rules to/from our beans.

Thanks



--
View this message in context: http://drools.46999.n3.nabble.com/API-for-reading-and-writing-rules-tp4022874.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users