<div dir="ltr">We will be storing the rules in guvnor - and will read/write to guvnor using the REST api.<div><br></div><div style>We would like to be able to read the rules into our domain model, without having to write a complex parser. </div>
<div style><br></div><div style>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.</div>
<div style><br></div><div style>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.</div>
<div style><br></div><div style>Br</div><div style>Anton</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 19, 2013 at 2:55 PM, manstis [via Drools] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4022879&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
        Rules are DRL that is a String. <br><br>Where and how you choose to store the String is up to you.<br><br>Please try to explain what you want to achieve a little more.<br><br><div class="gmail_quote">On 19 March 2013 12:49, kurrent93 <span dir="ltr"><<a href="http://user/SendEmail.jtp?type=node&node=4022877&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote">HI all<br>
<br>
Is there any samples or documentation for reading and writing of rules?<br>
<br>
The user case is we are trying to build a custom Rule Editor, and thus would<br>
like to write and read rules to/from our beans.<br>
<br>
Thanks<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/API-for-reading-and-writing-rules-tp4022874.html" rel="nofollow" link="external" target="_blank">http://drools.46999.n3.nabble.com/API-for-reading-and-writing-rules-tp4022874.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="http://user/SendEmail.jtp?type=node&node=4022877&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>
<br>_______________________________________________
<br>rules-users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=4022877&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://drools.46999.n3.nabble.com/API-for-reading-and-writing-rules-tp4022874p4022877.html" target="_blank" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/API-for-reading-and-writing-rules-tp4022874p4022877.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from API for reading and writing rules, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br></div>
        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/API-for-reading-and-writing-rules-tp4022874p4022879.html">Re: [rules-users] API for reading and writing rules</a><br/>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a> at Nabble.com.<br/>