<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Depending on your model, it may be better to create a DSL as an intermediate language.&nbsp;That way you have a simplified language, which you control, to parse in and out, which could be tuned to your own domain model.</div><div><br></div><div>Steve</div><div><br></div><br><div><div>On 19 Mar 2013, at 14:36, kurrent93 &lt;<a href="mailto:kurrent93@gmail.com">kurrent93@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">HI David<div><br></div><div style="">Yes we are also looking into rule templates.</div><div style=""><br></div><div style="">We have come up with - what we believe - is a very natural,&nbsp;intuitive&nbsp;and visually&nbsp;appealing&nbsp;way to author rules. And it is tailored for our specific domain.&nbsp;</div>
<div style=""><br></div><div style="">One significant aspect of our work is that we are present drools authoring to end users - customers - rather than business users. Hence the&nbsp;importance&nbsp;of crafting a specialized UI, rather than the generic UI of Guvnor.&nbsp;</div>
<div style=""><br></div><div style="">And FYI - are also including in the design some UI elements, for a future version, that will use Drools Chance features.&nbsp;</div><div style=""><br></div><div style="">Can you point me to documentation - and ideally - samples around using APIs for the&nbsp;descriptor&nbsp;level?&nbsp;</div>
<div style=""><br></div><div style="">Thanks</div><div style=""><br></div><div style=""><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 19, 2013 at 3:11 PM, Davide Sottara [via Drools] <span dir="ltr">&lt;<a href="x-msg://398/user/SendEmail.jtp?type=node&amp;node=4022881&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br>
<blockquote style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote">

        
  
    
  
  
    <div>As a RETE network is being created, DRL
      Rules are parsed into an internal "descriptor" structure (a high
      level AST)<br>
      and then compiled into a RETE. <br>
      <br>
      There are "APIs" to create rules at the descriptor level: this can
      then be "dumped" back into DRL.<br>
      To work at the DRL level directly, it's common to use parametric
      "templates".<br>
      <br>
      If your internal (meta)model is object oriented, you could
      consider using DRL rules to write the translators :)<br>
      <br>
      Davide<br>
      <br>
      p.s. could you provide some more information about your use case?
      I'm doing some research on rule authoring<br>
      environments right now. Thanks!<div><div class="h5"><br>
      <br>
      <br>
      <br>
      On 03/19/2013 09:54 AM, Michael Anstis wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote style="border-left:2px solid #CCCCCC;padding:0 1em" type="cite">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">&lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=4022878&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;</span>
        wrote:<br>
        <blockquote 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
          <a href="http://Nabble.com">Nabble.com</a>.<br>
          _______________________________________________<br>
          rules-users mailing list<br>
          <a href="http://user/SendEmail.jtp?type=node&amp;node=4022878&amp;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>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
rules-users mailing list
<a href="http://user/SendEmail.jtp?type=node&amp;node=4022878&amp;i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<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></pre>
    </blockquote>
    <br>
  

<br>_______________________________________________
<br>rules-users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&amp;node=4022878&amp;i=3" 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">
        </div></div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div><div class="h5">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div></div><a href="http://drools.46999.n3.nabble.com/API-for-reading-and-writing-rules-tp4022874p4022878.html" target="_blank" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/API-for-reading-and-writing-rules-tp4022874p4022878.html</a>
        </div><div class="HOEnZb"><div class="h5">
        <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="x-msg://398/" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;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></div></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-tp4022874p4022881.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 <a href="http://Nabble.com">Nabble.com</a>.<br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-users</blockquote></div><br></body></html>