Start here:

http://www.jboss.org/drools/documentation.html

   The Drools Expert docs have examples on Chapter 8.

   Your questions:

i) Check the docs above and the drools-api javadocs. Basically you have your rules stored wherever you want and "load" them using a KnowledgeBuilder. The KnowledgeBuilder gives you Packages of rules, based on the namespace (package name) that you defined in each rules "file"/"resource"/"string" (whatever you are using). Then you can add these packages to the KnowledgeBase. Then you can create sessions from the KnowledgeBase to execute your rules against facts. Yes, you can add/remove rules to/from the KnowledgeBase dynamically, even if there are sessions already created and populated with data. 20k rules might take some time to load, but you will have to check that by yourself. In any case, since you are talking about adding/removing rules dynamically, I guess you don't need all of them all the time.

ii) I guess you are talking about Package. Check the KnowledgeBuilder API and examples.

iii) Start by the above page. Let us know if you have any specific question.

   Edson


2010/1/18 kashif10 <kash452@yahoo.com>

Hi,
 We have  a product using weblogic server & weblogic rules.
We are planning to move our application to jboss As using drool rules.

Brief intro of our rules:
Currently we have around 20K rules in our databse. We load all those rules
form our database in to weblogic Rule Manger. All those rules loaded in to
Rule manger with rule ID as key &  Rule Data as values. we can simply add
new ruels on run time we can remove any rule form RuleMnager at runtime.
Then we have catalogs in out databse pointing those rules.
So whenever user inputs some data & ask to evaluate that data with some
catalog.
Then we simply add user data in WM & get rules from Rule manager one by one
& evaliate the rule on the basisi of WM. In the end we send the
alerts/result to user.

My questions:
i) Is there a rule manger Api in drools to whoch we provide rule Id along
with rule data to load rules in memory.
&  we can remove & add furtgur rules in to it.
Also how effecient is it to load & evaluate more than 20K rules.

ii) I don't find RuleSet in ApI, whats the replacement of it?

iii) Any link having good example to load rules & then evaluate a set from
this a caalog type of case.

I hope your precious answers will help us a lot to make the decision.

Thanks.




--
View this message in context: http://n3.nabble.com/Weblogic-rules-to-Drools-rules-tp126265p126265.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



--
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com