Cool! I'll take a look.

See you at the Corner Hotel, Melbourne, Australia. How's tonight?

Steve



2009/3/28 Wolfgang Laun <wolfgang.laun@gmail.com>
2009/3/25 Steven Williams <stevearoonie@gmail.com>
Hi Wolfgang,

Yeah sorry, I couldn't remember how far I took it. Unfortunately I haven't had a lot of time to take it further, so.... if you want to contribute anything you do back I will buy you a drink :-)

Where's your favourite watering hole? ;-)

The attachment contains:

org.drools.template.ObjectDataCompiler.java - NEW, extending DataProviderCompile with a couple of methods for calling the template compiler with collections of maps or objects providing the actual parameters for substitution

org.drools.template.DataProviderCompiler.java - MODIFIED, because closeStream is now protected

org.drools.template.objects - new package containing:
dorg.drools.template.objects.ObjectDataProvider.java - NEW, the implementation

org.drools.template.DataProviderCompilerIntegrationTest.java - MODIFIED, with additional unit tests, re-using the data of the old one

As facts are objects, it's now possible to write rules that fire on some Fact backing an ObjectDataProvider, with the RHS calling the template compiler. This could be used in a staging process, to set up rules in stage 1 that process the actual fact database in the next stage. 

Regards
Wolfgang


cheers
Steve



_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev