Anagha,
Im who asked for a way to keep versions on rules. The way we
implemented is to add 2 extra conditions on every rule: ini_date and
end_date. This dates are the time between the rule is valid. We made
some wrappers to make the call for rules simpler for the programer who
dont realy knows the way the engine works, so he just call something
like this:
//.....some code....
List facts = new Arraylist();
RulesResult rr;
facts.add(Fact1);
...
facts.add(FactN);
rr=Rules.activate(facts); //it can be: rr=Rules.activate(facts,SomeDate)
//.....more code....
So we made this interface to work with a date if you wanna use
rules on an especific date or without date, and the wrapper add
the SystemDate.
We are using DesicionTables to write rules, so put the extra 2 columns
(conditions) is very simple, and we made that the name of the rule is
a combination of things,
ruleset_name+row_on_table+rule_name+salience+params
In this way we never delete a rule from the RuleBase, we just add and
change valid dates, so you can call for rules valid today or in
another date.
The subversion thing is for development, we use it too, but we dont
keep several RuleBase in memory and we dont wanna spend 10 seconds
loading new RuleBases...
Maybe you could do something alike.
Good luck! :)
Thursday, November 17, 2005, 6:41:18 AM, you wrote:
> I want to know whether rules can be versioned in the drools.
> Encountred a thread
> http://article.gmane.org/gmane.comp.java.drools.user/405/match=versioning
> where Mark has asked to use "subversion which works with http".
> I would like to know more as how this can be achieved.
> Thanks & Regards,
> Anagha
--------------------------
Felipe Piccolini
[EMAIL PROTECTED]