[rules-users] Drools-Smooks Data Loader

Mark Proctor mproctor at codehaus.org
Thu Feb 26 17:49:18 EST 2009


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
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090226/60e9e6c3/attachment.html 


More information about the rules-users mailing list