Dave Macpherson wrote:
I'm trying to use Smooks to populate my Drools internal data model as per the blog posting at http://blog.athico.com/2008/07/drools-smooks-data-loader.html, but it's not quite working out for me.
In that posting, there is the following line of code:

DroolsSmooks loader = new DroolsSmooks( session, smooks, conf );

I believe this line is a typo (there is no class that I can find called "DroolsSmooks", but I'm not sure what it should be. I've found a test case online that refers to a class called "DroolsSmooksStatelessSession", but that doesn't resolve the reference either.
Does anyone have a sample program that uses the Smooks data loader that I can 
follow and get working?
That posting is already out of date, use the javadocs and PipelineFactory:
|static Transformer <https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/javadocs/stable/drools-api/org/drools/runtime/pipeline/Transformer.html>| |*newSmooksFromSourceTransformer <https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/javadocs/stable/drools-api/org/drools/runtime/pipeline/PipelineFactory.html#newSmooksFromSourceTransformer%28org.milyn.Smooks,%20java.lang.String%29>*(org.milyn.Smooks smooks, String <http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html> rootId)| Transforms from Source to Pojo using Smooks, the resulting pojo is set as the propagating object. |static Transformer <https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/javadocs/stable/drools-api/org/drools/runtime/pipeline/Transformer.html>| |*newSmooksToSourceTransformer <https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/javadocs/stable/drools-api/org/drools/runtime/pipeline/PipelineFactory.html#newSmooksToSourceTransformer%28org.milyn.Smooks%29>*(org.milyn.Smooks smooks)| Transforms from Pojo to Source using Smooks, the resulting Source is set as the propagating object // Instantiate Smooks with the config...


Regards,

Dave

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users



_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to