<div dir="ltr">As far as I know, there is no API for DRL creation.<div><br></div><div style>Best Regards, </div></div><div class="gmail_extra"><br clear="all"><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>

- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a></div>
<br><br><div class="gmail_quote">On Mon, Jan 28, 2013 at 2:32 PM, benq2188 <span dir="ltr">&lt;<a href="mailto:bengisaglam@gmail.com" target="_blank">bengisaglam@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Esteban thanks for the quick reply, so in this case my question is, which<br>
object is the key in the API to create .drl rule ? Should I create<br>
RuleModel?<br>
<br>
Also how can I store that .drl via POST method of the REST?<br>
<br>
Regards,<br>
<br>
Bengi.<br>
<br>
<br>
Esteban wrote<br>
<div class="im">&gt; If you are not planning to use Guvnor to author your rules, there is no<br>
&gt; need to store them in BRL format. You can store your rules as &#39;technical<br>
&gt; rules&#39; directly.<br>
&gt;<br>
&gt; Best Regards,<br>
&gt;<br>
&gt;<br>
&gt; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
&gt;<br>
&gt; Esteban Aliverti<br>
&gt; - Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
&gt;<br>
&gt;<br>
</div>&gt; On Mon, Jan 28, 2013 at 2:10 PM, benq2188 &amp;lt;<br>
<br>
&gt; bengisaglam@<br>
<div><div class="h5"><br>
&gt; &amp;gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi everyone,<br>
&gt;&gt;<br>
&gt;&gt; I would like to implement an Expert System which I can have my own UI to<br>
&gt;&gt; generate user defined rules, and I am planning to use REST API to<br>
&gt;&gt; insert/update/delete the rules,which are in the guvnor repository. Inside<br>
&gt;&gt; the guvnor, I would like to store my rules in .drl format. So I was<br>
&gt;&gt; wondering two thing:<br>
&gt;&gt;<br>
&gt;&gt; - Is that possible to create a brl file in XStream xml format as output<br>
&gt;&gt; of<br>
&gt;&gt; the UI, and store it in the repository as .drl format?. (I know the<br>
&gt;&gt; conversion from .brl to .drl is possible by using BRDRLPersistance<br>
&gt;&gt; object.)<br>
&gt;&gt; If it is possible then which object is the key point to create it from<br>
&gt;&gt; the<br>
&gt;&gt; &quot;package org.drools.ide.common.client.modeldriven.brl&quot;?<br>
&gt;&gt;<br>
&gt;&gt; -Another problem, by using REST API I can update and retrieve an asset in<br>
&gt;&gt; text/plain format, however I could not succeed to insert new asset into<br>
&gt;&gt; repository by using POST method. So how can I insert a new .drl rule into<br>
&gt;&gt; repository via REST.<br>
&gt;&gt;<br>
&gt;&gt; I will appreciate if you have some sample code for any of them and will<br>
&gt;&gt; be<br>
&gt;&gt; greatful for any help,<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt;<br>
&gt;&gt; Bengi.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://drools.46999.n3.nabble.com/Custom-UI-to-create-rules-and-inserting-them-via-REST-API-tp4021848.html" target="_blank">http://drools.46999.n3.nabble.com/Custom-UI-to-create-rules-and-inserting-them-via-REST-API-tp4021848.html</a><br>


&gt;&gt; Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt;<br>
<br>
</div></div>&gt; rules-users@.jboss<br>
<br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
<br>
&gt; rules-users@.jboss<br>
<br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Custom-UI-to-create-rules-and-inserting-them-via-REST-API-tp4021848p4021851.html" target="_blank">http://drools.46999.n3.nabble.com/Custom-UI-to-create-rules-and-inserting-them-via-REST-API-tp4021848p4021851.html</a><br>


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