<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"><<a href="mailto:bengisaglam@gmail.com" target="_blank">bengisaglam@gmail.com</a>></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">> If you are not planning to use Guvnor to author your rules, there is no<br>
> need to store them in BRL format. You can store your rules as 'technical<br>
> rules' directly.<br>
><br>
> Best Regards,<br>
><br>
><br>
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
><br>
> Esteban Aliverti<br>
> - Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
><br>
><br>
</div>> On Mon, Jan 28, 2013 at 2:10 PM, benq2188 &lt;<br>
<br>
> bengisaglam@<br>
<div><div class="h5"><br>
> &gt; wrote:<br>
><br>
>> 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<br>
>> 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<br>
>> object.)<br>
>> If it is possible then which object is the key point to create it from<br>
>> the<br>
>> "package org.drools.ide.common.client.modeldriven.brl"?<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<br>
>> be<br>
>> greatful for any help,<br>
>><br>
>> Thanks,<br>
>><br>
>> Bengi.<br>
>><br>
>><br>
>><br>
>> --<br>
>> View this message in context:<br>
>> <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>
>><br>
<br>
</div></div>> rules-users@.jboss<br>
<br>
>> <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>
> rules-users mailing list<br>
<br>
> rules-users@.jboss<br>
<br>
> <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>