<p>Have you looked at guvnors? It may fulfil your implied business requirement.</p>
<div class="gmail_quote">On 19/11/2010 4:54 AM, &quot;Navdeep Kumar&quot; &lt;<a href="mailto:nkumar@objectwave.com">nkumar@objectwave.com</a>&gt; wrote:<br type="attribution">&gt; Hi,<br>&gt; <br>&gt; I want to store and then load rules from the database. I have seen that this<br>
&gt; topic is already been discussed here but i did not understand that<br>&gt; completely that how can i do that. Can you please tell me the basic<br>&gt; requirements, what tables do i need to make,how can i parse that data into a<br>
&gt; rule file. I have also seen a thread supported by Sujit and Micheal, i think<br>&gt; it is the same project which is discussed in this post. this project kind of<br>&gt; suits my requirement but the problem is that i am not able to get the whole<br>
&gt; idea how to store and then load that back from the database to make a drl<br>&gt; file for rule engine. I also need a interface to get the input from the user<br>&gt; if he wants to add a new rule to the file. and user is non technical. I am<br>
&gt; not getting how can i get the data and make that a rule for e.g.<br>&gt; <br>&gt; <br>&gt;        when<br>&gt;                         b:Feature(featureClass.name==&quot;FrontSuspension&quot;)<br>&gt;                         c:Feature(featureClass.name==&quot;FrontAxle&quot;)<br>
&gt;                         eval(b.attributes.Capacity&gt;=c.attributes.Capacity)<br>&gt;         then<br>&gt;                         AvailabilityRuleState s = new<br>&gt; AvailabilityRuleState();<br>&gt;                         s.setValue(&quot;A&quot;);//Available<br>
&gt;                         s.setReason(&quot;&quot;);<br>&gt;                         s.setReference(&quot;FA-FS:1&quot;);<br>&gt;                         resultState.add(s);<br>&gt;         end<br>&gt; <br>&gt; <br>&gt; <br>
&gt; <br>&gt; i have read article by Sujit Pal and code for this project is not there at<br>&gt; the link. Still got that code,but i am not able to import that in eclipse so<br>&gt; dint run that.The only relief is that all rules are on one single class<br>
&gt; named Feature. as i saw in web interface images that whole package path was<br>&gt; written in one field.<br>&gt; <br>&gt; <a href="http://docs.codehaus.org/display/DROOLS/Loading+and+managing+rules+dynamically+from+a+database">http://docs.codehaus.org/display/DROOLS/Loading+and+managing+rules+dynamically+from+a+database</a><br>
&gt; <br>&gt; <br>&gt; <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Writing-rules-using-java-td57894.html#a57902">http://drools-java-rules-engine.46999.n3.nabble.com/Writing-rules-using-java-td57894.html#a57902</a>&lt;<a href="http://drools-java-rules-engine.46999.n3.nabble.com/Writing-rules-using-java-td57894.html?by-user=t#a57902">http://drools-java-rules-engine.46999.n3.nabble.com/Writing-rules-using-java-td57894.html?by-user=t#a57902</a>&gt;<br>
&gt; <br>&gt; <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Storing-rules-in-a-database-td47854.html">http://drools-java-rules-engine.46999.n3.nabble.com/Storing-rules-in-a-database-td47854.html</a>&lt;<a href="http://drools-java-rules-engine.46999.n3.nabble.com/Storing-rules-in-a-database-td47854.html?by-user=t">http://drools-java-rules-engine.46999.n3.nabble.com/Storing-rules-in-a-database-td47854.html?by-user=t</a>&gt;<br>
&gt; <br>&gt; <a href="http://drools-java-rules-engine.46999.n3.nabble.com/How-to-Access-and-Execute-Rules-from-Database-td58955.html#a58956">http://drools-java-rules-engine.46999.n3.nabble.com/How-to-Access-and-Execute-Rules-from-Database-td58955.html#a58956</a>&lt;<a href="http://drools-java-rules-engine.46999.n3.nabble.com/How-to-Access-and-Execute-Rules-from-Database-td58955.html?by-user=t#a58956">http://drools-java-rules-engine.46999.n3.nabble.com/How-to-Access-and-Execute-Rules-from-Database-td58955.html?by-user=t#a58956</a>&gt;<br>
&gt; <br>&gt; <br>&gt; these are the posts already in the forum. Please help me out.<br>&gt; <br>&gt; Thanks<br>&gt; Navdeep<br></div>