Hi,

1) Outside of Guvnor rules are normally defined in DRL (text files) or spreadsheets (Decision Tables). There is an API to load these into KnowledgeBases at runtime. Behind the covers Guvnor does much the same - generating DRL from its internal structures that are compiled into KnowledgeBases to be downloaded. Is XML essential or can DRL suffice? I believe there is a proprietary XML format however I am uncertain how well supported this is. I believe the plan is to migrate to RulesML at sometime.

2) You could look at using KnowledgeAgent which supports scanning and retrieving Knowledge artefacts from a single (central) location. You could also consider using a distributed cache in which serialisable KnowledgeBases could be stored. I think there are other users that use Terracotta in a clustered environment to support Drools but I don't know the detail. 

With kind regards,

Mike

On 1 November 2010 09:38, sameer.bogawat <sameer.bogawat@gmail.com> wrote:

I have a project where I am allowing users to create rules from the
application UI. Currently all the rules related info is stored in a database
and the rules matching code is in Java. However this slows down the
application considerably and hence we are looking at using a third party
rules engine.

 I have the following queries :

1. Is it possible to use the backend APIs (if any) to create/modify rules in
XML files in Drools on the fly i.e. at runtime ? We do not want to use the
Guvnor UI to create/modify rules.

2. We would be using a clustered environment , so is there any readymade
webservice which will update the rules at one location (from where the other
nodes can refer data).


Any help with the above queries would be of great help. Do let me know in
case you require extra information.

Thanks in Advance !
-Sameer
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Query-about-Drools-tp1820824p1820824.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