2009/3/25 Steven Williams <span dir="ltr">&lt;<a href="mailto:stevearoonie@gmail.com">stevearoonie@gmail.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Wolfgang,<br><br>Yeah sorry, I couldn&#39;t remember how far I took it. Unfortunately I haven&#39;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 :-)<div>
<div></div><div class="h5"></div></div></blockquote><div><br>Where&#39;s your favourite watering hole? ;-)<br><br>The attachment contains:<br><br>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<br>
<br>org.drools.template.DataProviderCompiler.java - MODIFIED, because closeStream is now protected<br><br>org.drools.template.objects - new package containing:<br>dorg.drools.template.objects.ObjectDataProvider.java - NEW, the implementation<br>
<br>org.drools.template.DataProviderCompilerIntegrationTest.java - MODIFIED, with additional unit tests, re-using the data of the old one<br><br>As facts are objects, it&#39;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.  <br>
<br>Regards<br>Wolfgang<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="h5"><br>cheers<br>Steve<br></div></div>
<br></blockquote></div><br>