We will be storing the rules in guvnor - and will read/write to guvnor using the REST api.

We would like to be able to read the rules into our domain model, without having to write a complex parser. 

In order to make a custom rule editor we need to be able to populate the UI with rule settings and values. If we use guvnor as an example - writing a rule for the first time is easy - its a clean slate. To modify the rule, the user would expect that the UI elements are populated as the same as their last edit.

We are trying to solve this same problem. How to read the rules from guvnor, and then populate our domain model, so we can present our rule editor with values that match that of the rule.

Br
Anton



On Tue, Mar 19, 2013 at 2:55 PM, manstis [via Drools] <[hidden email]> 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 <[hidden email]> 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
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/API-for-reading-and-writing-rules-tp4022874p4022877.html
To unsubscribe from API for reading and writing rules, click here.
NAML



View this message in context: Re: [rules-users] API for reading and writing rules
Sent from the Drools: User forum mailing list archive at Nabble.com.