<!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>Writing rules using java..</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">I am very new to rules engine. The requirement for our project is store and retrieve rules from the database.This makes the rules engine to directly interact with the Database, to do so is there any way that I can use the rules api to set the rules.</FONT></P>

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

<BR><FONT SIZE=2 FACE="Arial">Creating a rule.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Rule rule = new Rule(name);</FONT>

<BR><FONT SIZE=2 FACE="Arial">Rule.setSaliance(1);</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Similarly I don't find any api's to set the conditions and the consequences.</FONT>

<BR><FONT SIZE=2 FACE="Arial">I did extensive googling but couldn't find the right answer..</FONT>

<BR><FONT SIZE=2 FACE="Arial">I would appreaciate if some could help me with this scenario.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Thanks in advance,</FONT>

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

</BODY>
</HTML>