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="gmail_quote">2010/10/18 Patricia Bogoevici <span dir="ltr"><<a href="mailto:patriciabogoevici@yahoo.com">patriciabogoevici@yahoo.com</a>></span><br>
<blockquote class="gmail_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-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: 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><<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<br>From: Wolfgang Laun <<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>><br>Subject: Re: [rules-users] Drools API<br>To: "Rules Users List" <<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>><br>
Date: Monday, October 18, 2010, 9:01 AM<div><div></div><div class="h5"><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() ){ <br> String packageName = kPackage.getName();<br> for( Rule rule: kPackage.getRules() ){<br> String ruleName = rule.getName();<br> //...<br> }<br>}<br><br>
-W<br><br>On 18 October 2010 12:30, shyam_prakash <<a href="http://mc/compose?to=prakash.shyam@gmail.com" target="_blank">prakash.shyam@gmail.com</a>> wrote:<br>><br>> Hello,<br>><br>> I am looking for a way to expose the published rule sets programmatically<br>
> and I am trying to determine if there is a service API that can be used to<br>> retrieve the list/or iterate through published packages.<br>><br>> Please let me know if there is any such API / Javadoc for the same.<br>
><br>> Thanks,<br>> Shyam<br>> --<br>> View this
message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-API-tp1724208p1724208.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Drools-API-tp1724208p1724208.html</a><br>
> Sent from the Drools - User mailing list archive at Nabble.com.<br>> _______________________________________________<br>> rules-users mailing list<br>> <a href="http://mc/compose?to=rules-users@lists.jboss.org" target="_blank">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>><br>_______________________________________________<br>rules-users mailing list<br>
<a href="http://mc/compose?to=rules-users@lists.jboss.org" target="_blank">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></div></blockquote></td></tr></tbody></table><br>
<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>
<br></blockquote></div><br>