<div>Hi,</div>
<div>  I am asking about this code</div>
<div> &quot;We already have code that converts the RuleModel object graph into DRL. However the object model is not tided to a database schema but you could write a layer that maps database tables to these objects&quot; </div>

<div> </div>
<div>can u please let me know</div>
<div> </div>
<div>Thanks<br><br></div>
<div class="gmail_quote">2011/3/26 Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">&quot;I am not able to get the code that creste drl file&quot;<br><br></div>This will be code that *you* write. Nothing is provided by the Drools project that can generate DRL from a database. 
<div>
<div></div>
<div class="h5"><br><br>
<div class="gmail_quote">2011/3/25 bilasini sahoo <span dir="ltr">&lt;<a href="mailto:s.bilasini@gmail.com" target="_blank">s.bilasini@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>Hi,<br>Thanks for the explanation.<br>But i am sorry still also i am not able to see the clear pictures.<br>I am not able to get the code that creste drl file<br>Again as far i got to know Guvnor provided an UI where rules can be configured,  which is not allowed my case.<br>
 <br>Please give some more deatils<br><br></div>
<div>
<div></div>
<div>
<div class="gmail_quote">2011/3/25 Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">(1) If you are looking for something simple my advice would be to define a database schema that can record your type of query: 
<div><br><br>
<div>(Company=CCC &amp;&amp; Organisation=OOO and Dept=HR) OR (Country=UK)</div></div>
<div>
<div>(Company=CCC &amp;&amp; Organisation=OOO )and (Dept=HR OR Country=UK)<br><br></div>e.g. <br>COMPARISON_ELEMENTS_TABLE = Field, Operator, Value<br>COMPARISONS_TABLE = OpenBracket, COMPARISON_ELEMENT_ID, Connector, CloseBracket<br>
<br>Then write Java code that can convert this into a DRL string that is then handled the normal way.<br></div><br>(2) Firstly, I got the class name wrong. It should be org.drools.ide.common.client.modeldriven.brl.RuleModel.<br>
<br>We already have code that converts the RuleModel object graph into DRL. However the object model is not tided to a database schema but you could write a layer that maps database tables to these objects.<br><br>This would be quite complex but I include here to explain what I was trying to say. 
<div>
<div></div>
<div><br><br>With kind regards,<br><br>Mike<br><br>
<div class="gmail_quote">2011/3/25 bilasini sahoo <span dir="ltr">&lt;<a href="mailto:s.bilasini@gmail.com" target="_blank">s.bilasini@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>Hi,</div>
<div>  Thanks for the reply.</div>
<div>But i can i get some more idea how to implement this.</div>
<div> </div>
<div>I dont understand the &quot;You could also look at writing a persistence layer over FactModel which is the foregoing object model; to re-hydrate direct from structured database tables with an ORM.&quot;</div>
<div> </div>
<div>Can you please guide me something simple.</div>
<div> </div>
<div>Thanks,</div>
<div>Bilasini<br><br></div>
<div class="gmail_quote">
<div>2011/3/25 Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;</span><br></div>
<div>
<div></div>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">The easiest suggestion would be to store DRL in your database ;)<br><br>These is a (dieing) BRL XML format but I believe its use is discouraged (as it&#39;s essentially an XStream output of a object model).<br>
<br>You could also look at writing a persistence layer over FactModel which is the foregoing object model; to re-hydrate direct from structured database tables with an ORM.<br><br>Looking however at your example rules; I believe the simplest approach would be to write your own parser that generates DRL.<br>
<br>Have you considered Guvnor which would suit your needs ideally?<br><br>With kind regards,<br><br>Mike<br><br>
<div class="gmail_quote">
<div>
<div></div>
<div>2011/3/25 bilasini sahoo <span dir="ltr">&lt;<a href="mailto:s.bilasini@gmail.com" target="_blank">s.bilasini@gmail.com</a>&gt;</span><br></div></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div></div>
<div>
<div>Hi All,</div>
<div>   I am new to this Drool rule ingine use.</div>
<div>Normal drl is working for me.</div>
<div>But mu requirement is i need to configure all the rules in Data base and from there i need to inject to the Rule engine.This is beacuse Rules can be configured any point of time.</div>
<div> </div>
<div>Please let me know if is there any special foemat of rule configuration is required so that creating rule file would be easier</div>
<div> </div>
<div>currently i have configured as</div>
<div> </div>
<div>(Company=CCC &amp;&amp; Organisation=OOO and Dept=HR) OR (Country=UK)</div>
<div>
<div>(Company=CCC &amp;&amp; Organisation=OOO )and (Dept=HR OR Country=UK)</div>
<div> </div>
<div> </div>
<div>please advice. I am stuck with this proble since 2days</div>
<div> </div>
<div> </div>
<div>Thanks,</div>
<div>Bilasini</div></div><font color="#888888">
<div> </div></font><br></div></div>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br><a 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>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div></div></div><br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br><a 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></div></div><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br><a 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></div></div><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br><a 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></div></div><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a 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>