<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">thanks a lot for your answers. <br><br>indeed, as Michael figured out, I need to be able to save rules, as well as query rules using the repository service, and retrieving all the details about rules from the repository.<br>I'll take a look at Drools server just in case it can be extended. <br><br>thx,<br>Patricia<br><br>--- On <b>Mon, 10/18/10, Michael Anstis <i>&lt;michael.anstis@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Michael Anstis &lt;michael.anstis@gmail.com&gt;<br>Subject: Re: [rules-users] Can Guvnor's repository functionality be exposed as a web service? [was: Drools API]<br>To: "Rules Users List" &lt;rules-users@lists.jboss.org&gt;<br>Date: Monday, October 18, 2010, 5:07 PM<br><br><div id="yiv1854759651">Yes, thank-you.<br><br>This example appears to
 expose RuleAgent operations as a web-service.<br><br>Unfortunately it does not provide the granularity to individual rules, categories, versioning etc that I thought the original poster may have wanted.<br>
<br>It is none-the-less an interesting article.<br><br><div class="yiv1854759651gmail_quote">2010/10/18 Xinhua Zhu <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:xhzhu@it.uts.edu.au" target="_blank" href="/mc/compose?to=xhzhu@it.uts.edu.au">xhzhu@it.uts.edu.au</a>&gt;</span><br><blockquote class="yiv1854759651gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Seems you can use drools server to do it. <br><a rel="nofollow" target="_blank" href="http://alesaudate.com/2010/05/24/hot-deploy-de-regras-utilizando-drools-guvnor-parte-2/">http://alesaudate.com/2010/05/24/hot-deploy-de-regras-utilizando-drools-guvnor-parte-2/</a><br>

<br>Xinhua<br><br><div class="yiv1854759651gmail_quote">2010/10/19 Michael Anstis <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:michael.anstis@gmail.com" target="_blank" href="/mc/compose?to=michael.anstis@gmail.com">michael.anstis@gmail.com</a>&gt;</span><br><blockquote class="yiv1854759651gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

I know of the following (but not used) which might help point you in the right direction.<br><br>There is org.drools.guvnor.server.GuvnorAPIServlet (drools-guvnor) which provides a narrow API for dealing with repository artifacts. There is also a narrow REST-ful API in org.drools.repository.remoteapi.RestAPI (drools-repository, which is the backend to which you refer). Class org.drools.guvnor.server.RepositoryServiceServlet is the "meat" of Guvnors actions but it is tightly coupled to GWT and hence less useful as a generic external service. Unfortunately I doubt any will be entirely useful for your use-case without extensive enhancement. If you do end up creating a generic web-service exposing RepositoryService please consider giving back to the community.<div>

<div></div><div><br>
<br><br><div class="yiv1854759651gmail_quote">On 18 October 2010 18:00, Wolfgang Laun <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:wolfgang.laun@gmail.com" target="_blank" href="/mc/compose?to=wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br><blockquote class="yiv1854759651gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


[I'm re-posting this as a new thread with an apt subject on behalf of Patricia]<br>
<br>
This is the scenario that I am looking for:<br>
I am using Drools Guvnor as the central rule repository. I also have<br>
an external application, that has a custom rule editor in place, and<br>
users can create rules. This custom rule editor will take care of<br>
Conditional Elements and Consequence actions. I would like to be able<br>
to save the rule back in Guvnor, as that is the rule repository.<br>
<br>
In the docs, there says that Guvnor has 2 parts: front-end and<br>
backend. The backend includes the repository access as well. My<br>
question is if the Guvnor backend exposes the repository functionality<br>
as web service, or if it can be easily exposed.<br>
<br>
Thanks,<br>
Patricia<br>
_______________________________________________<br>
rules-users mailing list<br>
<a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="/mc/compose?to=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></blockquote></td></tr></table><br>