<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>[rules-users] Writing rules using java..</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi Rahul,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Its not about storing the whole file into the database.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I would have a Table representing the parameteres required to construct a rule.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">For example.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Tables:</FONT>
</P>

<P><B><FONT SIZE=2 FACE="Arial">RuleSetTable:</FONT></B>

<BR><FONT SIZE=2 FACE="Arial">Ruleset_id</FONT>

<BR><FONT SIZE=2 FACE="Arial">Ruleset_name</FONT>
</P>

<P><B><FONT SIZE=2 FACE="Arial">RuleTable:</FONT></B>

<BR><FONT SIZE=2 FACE="Arial">Rule_id</FONT>

<BR><FONT SIZE=2 FACE="Arial">Rule_name</FONT>

<BR><FONT SIZE=2 FACE="Arial">Rule_saliance</FONT>

<BR><FONT SIZE=2 FACE="Arial">Rule_condition</FONT>

<BR><FONT SIZE=2 FACE="Arial">Rule_consequence</FONT>

<BR><FONT SIZE=2 FACE="Arial">Ruleset_id</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">Hope you understood what I want to achieve.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks much,</FONT>

<BR><FONT SIZE=2 FACE="Arial">Sandeep.</FONT>
</P>
<BR>
<BR>

</BODY>
</HTML>