Thanks for your reply.

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).

This is the scenario that I am looking for:
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.

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.

Thanks,
Patricia


--- On Mon, 10/18/10, Wolfgang Laun <wolfgang.laun@gmail.com> wrote:

From: Wolfgang Laun <wolfgang.laun@gmail.com>
Subject: Re: [rules-users] Drools API
To: "Rules Users List" <rules-users@lists.jboss.org>
Date: Monday, October 18, 2010, 11:03 AM

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?

By "categories" you mean Java classes?

-W

2010/10/18 Patricia Bogoevici <patriciabogoevici@yahoo.com>
Hello,

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?

Thanks,
Patricia

--- On Mon, 10/18/10, Wolfgang Laun <wolfgang.laun@gmail.com> wrote:

From: Wolfgang Laun <wolfgang.laun@gmail.com>
Subject: Re: [rules-users] Drools API
To: "Rules Users List" <rules-users@lists.jboss.org>
Date: Monday, October 18, 2010, 9:01 AM


import org.drools.KnowledgeBase;
import org.drools.definition.KnowledgePackage;
import org.drools.definition.rule.Rule;

KnowledgeBase kBase = ...;

for( KnowledgePackage kPackage: kBase.getKnowledgePackages() ){           
    String packageName = kPackage.getName();
    for( Rule rule: kPackage.getRules() ){
        String ruleName = rule.getName();
        //...
    }
}

-W

On 18 October 2010 12:30, shyam_prakash <prakash.shyam@gmail.com> wrote:
>
> Hello,
>
> I am looking for a way to expose the published rule sets programmatically
> and I am trying to determine if there is a service API that can be used to
> retrieve the list/or iterate through published packages.
>
> Please let me know if there is any such API / Javadoc for the same.
>
> Thanks,
> Shyam
> --
> View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-API-tp1724208p1724208.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



-----Inline Attachment Follows-----

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users