For those of you on Windows machines I have created a zip file. Also, for anybody who could not read the email attachment I have placed both the tar and zip files at http://www.geotribe.com/staff/mhald/drools/
Cheers, -m [EMAIL PROTECTED] On 3/21/02 12:02 AM, "Martin Hald" <[EMAIL PROTECTED]> wrote: > Hi, > > I have been monitoring the drools mailing list for some time and have > enjoyed following the action. Recently I decided to test out the > application and in return I have created a new example for the project. > > The example is an email rule engine that lets users have a set of custom > rules (stored in pure XML) that get executed when a new email is received. > The novelty of this example is that is uses an XSLT transform to change the > users rules into the Drools rule format. By using the transform process it > provides a safe and flexible way to integrate the users rules and settings. > > I have attached the example in a tarball and I invite you all to test it. I > have added ample documentation within the Java and XML/XSLT files, but have > yet to create any overview documentation. > > The contents of the tarball are: > example_data/engine/conf_user.xml > example_data/engine/event_queue.xml > example_data/engine/system_rules.xml > example_data/engine/translate.xsl > src/java/examples/engine/Email.java > src/java/examples/engine/Event.java > src/java/examples/engine/EventEngine.java > src/java/examples/engine/EventFactory.java > src/java/examples/engine/EventInterface.java > src/java/examples/engine/InboundEmail.java > src/java/examples/engine/OutboundEmail.java > src/java/examples/engine/TimeUtil.java > src/java/main/org/drools/semantic/java/io/RuleSetReader.java > src/java/main/org/drools/semantic/java/RuleLoader.java > build.xml > > As you see I have extended two drools files. I added methods to the > RuleLoader and RuleSetReader classes to accept a String object containing > the rule. Since I am using an in-memory XSLT transform it would be wasteful > to write the results out to disk in order to load the rules into working > memory. I have also added an example.engine section to the ANT build.xml > file. > > To try out the example download and untar the daily build of drools. Put > the engine tarball into the drools folder and run: > tar xvf engine.tar > chmod a+rx build.pl > ./build.pl > ./build.pl example.engine > > If you want to see the autogenerated rules add > <arg value="-rules"/> > Under > <java classname="engine.EventEngine" fork="true"> > in the build.xml file. > > Any questions/comments are welcome. Thanks, > > -m > [EMAIL PROTECTED] _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ drools-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/drools-interest