I have found the documentation to be very sparse and largely out of date for Drools.Net (3.0). As an example, section 3.1 on the drools.net installation and user guide suggests using RuleBaseLoader - however this class is internal so cannot be used! That aside, I have managed to get started with drools.net, and have a few fundamental questions.
1. Do the rules have to be pre-compiled into assemblies when doing a builder.GetPackage() - or can they be interpreted at runtime?
2. Unless I instantiated an instance of the objects in the .drl in the same method as builder.GetPackage(), I get null reference exceptions. Does anyone know why?
3. If I make a mistake in the .drl file, it seems the compiled rules do not get generated (makes sense), but no exception is thrown - is this expected behaviour?
As the documentation is geared towards drools 2.1, would it be best to downgrade - or is the documentation in the process of being upgraded? Is 2.1 more stable than 3.0?
Sorry guys I know there's a lot of questions here, but any help would be most welcome.
Regards,
Andy.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The Drools.NET 3.0 is still in Beta, so there will be some minor issues. If you find any problem, please post it on the mailing list and we will take care of it asap.
Thanks,
Ritu
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-06-18
Yes I am looking at the correct documentation, clicking on the documentation tab for the link you gave suggests the following is possible:
... However, RuleBaseLoader is internal so cannot be used. I am still to find answers to my other (very basic) questions and have some grave concerns over performance. As such I have unfortunately eliminated Drools.Net from the list of viable rule engines for a current project :o(
Many thanks for the response,
Andy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have found the documentation to be very sparse and largely out of date for Drools.Net (3.0). As an example, section 3.1 on the drools.net installation and user guide suggests using RuleBaseLoader - however this class is internal so cannot be used! That aside, I have managed to get started with drools.net, and have a few fundamental questions.
1. Do the rules have to be pre-compiled into assemblies when doing a builder.GetPackage() - or can they be interpreted at runtime?
2. Unless I instantiated an instance of the objects in the .drl in the same method as builder.GetPackage(), I get null reference exceptions. Does anyone know why?
3. If I make a mistake in the .drl file, it seems the compiled rules do not get generated (makes sense), but no exception is thrown - is this expected behaviour?
As the documentation is geared towards drools 2.1, would it be best to downgrade - or is the documentation in the process of being upgraded? Is 2.1 more stable than 3.0?
Sorry guys I know there's a lot of questions here, but any help would be most welcome.
Regards,
Andy.
Hi,
What version of drools.NET are you using? The code and documentation on sourceforge is for Drools.NET 2.1. Have you had a look at http://droolsdotnet.codehaus.org/. This website contains the code and documentation for Drools.NET 3.0. If you have any question regarding Drools.NET 3.0, please post it at http://xircles.codehaus.org/projects/droolsdotnet/lists.
The Drools.NET 3.0 is still in Beta, so there will be some minor issues. If you find any problem, please post it on the mailing list and we will take care of it asap.
Thanks,
Ritu
Yes I am looking at the correct documentation, clicking on the documentation tab for the link you gave suggests the following is possible:
Stream stream = Assembly.GetAssembly(this.getType()).GetManifestResourceStream("test.drl");
RuleBase ruleBase = RuleBaseLoader.getInstance.LoadFromStream(stream);
... However, RuleBaseLoader is internal so cannot be used. I am still to find answers to my other (very basic) questions and have some grave concerns over performance. As such I have unfortunately eliminated Drools.Net from the list of viable rule engines for a current project :o(
Many thanks for the response,
Andy