<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    You can also just generate strings at runtime, either via
    StringBuilder or templating, and compile them at runtime.<br>
    <br>
    Mark<br>
    On 01/06/2011 14:43, Edson Tirelli wrote:
    <blockquote
      cite="mid:BANLkTimmer4rG_w14a3WmDyJ3G1HKriEFw@mail.gmail.com"
      type="cite">
      <div><br>
      </div>
      &nbsp;&nbsp; David,
      <div><br>
      </div>
      <div>&nbsp;&nbsp; For 5.2 we are introducing a high level API for rule
        authoring. Documentation is not ready yet, but you can see the
        API here:</div>
      <div><br>
      </div>
      <div>
        <meta http-equiv="content-type" content="text/html;
          charset=ISO-8859-1">
        <a moz-do-not-send="true"
href="https://github.com/droolsjbpm/drools/tree/master/drools-compiler/src/main/java/org/drools/lang/api">https://github.com/droolsjbpm/drools/tree/master/drools-compiler/src/main/java/org/drools/lang/api</a></div>
      <div><br>
      </div>
      <div>&nbsp;&nbsp; DescrFactory is your entry point.</div>
      <div><br>
      </div>
      <div>&nbsp;&nbsp; Before 5.2, the options are to generate DRL string using
        templates or build the *Descr AST manually. Please note that the
        *Descr classes are internal and might change from version to
        version.</div>
      <div><br>
      </div>
      <div>&nbsp;&nbsp; Edson<br>
        <br>
        <div class="gmail_quote">2011/6/1 David Godfrey <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:davidgodf@gmail.com">davidgodf@gmail.com</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            Hi,<br>
            <br>
            Can someone point me in the direction of documentation or
            code examples for the following? I want to programatically
            create rules for execution, e.g. within my application I
            will hold criteria which users will define, at runtime I
            would like to build a component to extract these values
            (from my app database) and build rules based on those
            values. Everything I've seen so far seems to talk about
            using DRL files, ideally I want to programatically create
            the entire rule in Java, and then call Drools to execute my
            rule set.<br>
            <br>
            Thanks,<br>
            <br>
            _______________________________________________<br>
            rules-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.jboss.org/mailman/listinfo/rules-users"
              target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        &nbsp; Edson Tirelli<br>
        &nbsp; JBoss Drools Core Development<br>
        &nbsp; JBoss by Red Hat @ <a moz-do-not-send="true"
          href="http://www.jboss.com">www.jboss.com</a><br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>