<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Just generate a drl from your model using a template langauge such
velocity, freemarker or stringtemplate. you can generate and load the
drl at runtime, this is what the decision table does. You can program
agains the API yourself, but its quite complex, and certainly not
recommended for a noobie.<br>
<br>
Mark<br>
Kolla, Sandeep wrote:
<blockquote
 cite="mid:853F271481A4CA4BB73DB90B5745E9E31E7F7A@gsmbcdp21es.firmwide.corp.gs.com"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator"
 content="MS Exchange Server version 6.5.7651.59">
  <title>[rules-users] Writing rules using java..</title>
<!-- Converted from text/rtf format -->
  <p><font face="Arial" size="2">Hi Rahul,</font>
  </p>
  <p><font face="Arial" size="2">Its not about storing the whole file
into the database.</font>
  </p>
  <p><font face="Arial" size="2">I would have a Table representing the
parameteres required to construct a rule.</font>
  </p>
  <p><font face="Arial" size="2">For example.</font>
  </p>
  <p><font face="Arial" size="2">Tables:</font>
  </p>
  <p><b><font face="Arial" size="2">RuleSetTable:</font></b>
  <br>
  <font face="Arial" size="2">Ruleset_id</font>
  <br>
  <font face="Arial" size="2">Ruleset_name</font>
  </p>
  <p><b><font face="Arial" size="2">RuleTable:</font></b>
  <br>
  <font face="Arial" size="2">Rule_id</font>
  <br>
  <font face="Arial" size="2">Rule_name</font>
  <br>
  <font face="Arial" size="2">Rule_saliance</font>
  <br>
  <font face="Arial" size="2">Rule_condition</font>
  <br>
  <font face="Arial" size="2">Rule_consequence</font>
  <br>
  <font face="Arial" size="2">Ruleset_id</font>
  </p>
  <p><font face="Arial" size="2">Now while loading the rules the
application basically should read from the DB, and construct the rules,
as everything required to construct the rules is avaliable in the
tables.</font></p>
  <p><font face="Arial" size="2">This requirement had come up because
as the rules keep changing quite frequently, we don't want to bring
down the application to load a new DRL file.</font></p>
  <p><font face="Arial" size="2">Hope you understood what I want to
achieve.</font>
  </p>
  <p><font face="Arial" size="2">Thanks much,</font>
  <br>
  <font face="Arial" size="2">Sandeep.</font>
  </p>
  <br>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>