You could look into using org.drools.ide.common.client.modeldriven.brl.RuleModel (in droolsjbpm-ide-common).<br><br>This is the basic model used by all of the guided editors before translating it into DRL with org.drools.ide.common.server.util.BRDRLPersistence (in droolsjbpm-ide-common too).<br>
<br>There are a lot of Unit Tests that illustrate construction of DRL using this approach.<br><br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 16 March 2011 09:20, FrankVhh <span dir="ltr">&lt;<a href="mailto:frank.vanhoenshoven@agserv.eu">frank.vanhoenshoven@agserv.eu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi kedar,<br>
<br>
Of course, I do not know what you are trying to achieve in the end, but from<br>
the limited information that I have, I think I can agree with manstis that<br>
there are 2 options.<br>
<br>
1) Download and install Guvnor, which is a UI to edit rules and may be<br>
exaclty what you want.<br>
2) Write an application that constructs a text file, based on some inputs<br>
and save the text file as myveryimportantrules.drl<br>
<br>
I have never tried option 2, but it doesn&#39;t seem very hard.<br>
<div><div></div><div class="h5"><br>
<br>
kedar vyawahare wrote:<br>
&gt;<br>
&gt; Thanks for reply.<br>
&gt; yaa i want exactly the same my U.I should generate the DRL file .But I<br>
&gt; dont<br>
&gt; know how to generate a DRL file through U.I.<br>
&gt; Please help me to generate the DRL through U.I.<br>
&gt; Thanks in Advance.<br>
&gt; Kedar<br>
&gt;<br>
</div></div><div class="im">&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
<br>
<br>
</div><font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/drl-rule-file-creation-tp2683529p2686047.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/drl-rule-file-creation-tp2683529p2686047.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<br>
</font><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>