<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks for your reply.<br><br>I meant the categories configured in Guvnor. A rule can be associated with one or more categories in Guvnor. These categories are like tags for rules, and are useful for rule management (filtering, sorting, etc).<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 an external application, that has a custom rule editor in place, and users can create rules. This custom rule editor will take care of Conditional Elements and Consequence actions. I would like to be able 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 backend. The backend includes the repository access as well. My question is if the Guvnor backend exposes the repository functionality as web service, or if it can be
 easily exposed.<br><br>Thanks,<br>Patricia<br><br><br>--- On <b>Mon, 10/18/10, Wolfgang Laun <i>&lt;wolfgang.laun@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: Wolfgang Laun &lt;wolfgang.laun@gmail.com&gt;<br>Subject: Re: [rules-users] Drools API<br>To: "Rules Users List" &lt;rules-users@lists.jboss.org&gt;<br>Date: Monday, October 18, 2010, 11:03 AM<br><br><div id="yiv1804734854">Can you be more specific with respect to "create rules"? You may do this, for instance, by writing a DRL text file, and there are other ways. How would the "external app" determine the required Conditional Elements and Consequence actions?<br>
<br>By "categories" you mean Java classes?<br><br>-W<br><br><div class="yiv1804734854gmail_quote">2010/10/18 Patricia Bogoevici <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:patriciabogoevici@yahoo.com" target="_blank" href="/mc/compose?to=patriciabogoevici@yahoo.com">patriciabogoevici@yahoo.com</a>&gt;</span><br>
<blockquote class="yiv1804734854gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">
Hello,<br><br>I have a related question about Drools API. I need to be able to create rules, packages and categories, from an external application. Does Guvnor provide a web-service for that?<br><br>Thanks,<br>Patricia<br>
<br>--- On <b>Mon, 10/18/10, Wolfgang Laun <i>&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;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<br>From: Wolfgang Laun &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;<br>Subject: Re: [rules-users] Drools API<br>To: "Rules Users List" &lt;<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>&gt;<br>
Date: Monday, October 18, 2010, 9:01 AM<div><div></div><div class="yiv1804734854h5"><br><br><div>import org.drools.KnowledgeBase;<br>import org.drools.definition.KnowledgePackage;<br>import org.drools.definition.rule.Rule;<br><br>KnowledgeBase kBase = ...;<br>
<br>for( KnowledgePackage kPackage:
 kBase.getKnowledgePackages() ){&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; String packageName = kPackage.getName();<br>&nbsp;&nbsp;&nbsp; for( Rule rule: kPackage.getRules() ){<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; String ruleName = rule.getName();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //...<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>
-W<br><br>On 18 October 2010 12:30, shyam_prakash &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=prakash.shyam@gmail.com">prakash.shyam@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Hello,<br>&gt;<br>&gt; I am looking for a way to expose the published rule sets programmatically<br>
&gt; and I am trying to determine if there is a service API that can be used to<br>&gt; retrieve the list/or iterate through published packages.<br>&gt;<br>&gt; Please let me know if there is any such API / Javadoc for the same.<br>
&gt;<br>&gt; Thanks,<br>&gt; Shyam<br>&gt; --<br>&gt; View this
 message in context: <a rel="nofollow" target="_blank" href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-API-tp1724208p1724208.html">http://drools-java-rules-engine.46999.n3.nabble.com/Drools-API-tp1724208p1724208.html</a><br>
&gt; Sent from the Drools - User mailing list archive at Nabble.com.<br>&gt; _______________________________________________<br>&gt; rules-users mailing list<br>&gt; <a rel="nofollow" target="_blank" href="http://mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>&gt;<br>_______________________________________________<br>rules-users mailing list<br>
<a rel="nofollow" target="_blank" href="http://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>
</div></div></div></blockquote></td></tr></tbody></table><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>