<div dir="ltr">If you are not planning to use Guvnor to author your rules, there is no need to store them in BRL format. You can store your rules as &#39;technical rules&#39; directly.<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:10 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">

Hi everyone,<br>
<br>
I would like to implement an Expert System which I can have my own UI to<br>
generate user defined rules, and I am planning to use REST API to<br>
insert/update/delete the rules,which are in the guvnor repository. Inside<br>
the guvnor, I would like to store my rules in .drl format. So I was<br>
wondering two thing:<br>
<br>
- Is that possible to create a brl file in XStream xml format as output of<br>
the UI, and store it in the repository as .drl format?. (I know the<br>
conversion from .brl to .drl is possible by using BRDRLPersistance object.)<br>
If it is possible then which object is the key point to create it from the<br>
&quot;package org.drools.ide.common.client.modeldriven.brl&quot;?<br>
<br>
-Another problem, by using REST API I can update and retrieve an asset in<br>
text/plain format, however I could not succeed to insert new asset into<br>
repository by using POST method. So how can I insert a new .drl rule into<br>
repository via REST.<br>
<br>
I will appreciate if you have some sample code for any of them and will be<br>
greatful for any help,<br>
<br>
Thanks,<br>
<br>
Bengi.<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-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>


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>
</blockquote></div><br></div>