<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dave Macpherson wrote:
<blockquote
 cite="mid:20090226173245.1l0zkmclc4wsogks@webmail.easyhosting.com"
 type="cite">
  <pre wrap="">I'm trying to use Smooks to populate my Drools internal data model as per the blog posting at <a class="moz-txt-link-freetext" href="http://blog.athico.com/2008/07/drools-smooks-data-loader.html">http://blog.athico.com/2008/07/drools-smooks-data-loader.html</a>, 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?
  </pre>
</blockquote>
That posting is already out of date, use the javadocs and
PipelineFactory:<br>
<table summary="" border="1" cellpadding="3" cellspacing="0"
 width="100%">
  <tbody>
    <tr class="TableRowColor" bgcolor="white">
      <td align="right" valign="top" width="1%"><font size="-1"><code>static <a
 href="https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/javadocs/stable/drools-api/org/drools/runtime/pipeline/Transformer.html"
 title="interface in org.drools.runtime.pipeline">Transformer</a></code></font></td>
      <td><code><b><a
 href="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">newSmooksFromSourceTransformer</a></b>(org.milyn.Smooks smooks,
      <a
 href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html"
 title="class or interface in java.lang">String</a> rootId)</code>
      <br>
          Transforms from Source to Pojo using Smooks, the resulting
pojo is set as the propagating object.</td>
    </tr>
    <tr class="TableRowColor" bgcolor="white">
      <td align="right" valign="top" width="1%"><font size="-1">
      <code>static <a
 href="https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/javadocs/stable/drools-api/org/drools/runtime/pipeline/Transformer.html"
 title="interface in org.drools.runtime.pipeline">Transformer</a></code></font></td>
      <td><code><b><a
 href="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">newSmooksToSourceTransformer</a></b>(org.milyn.Smooks smooks)</code>
      <br>
          Transforms from Pojo to Source using Smooks, the resulting
Source is set as the propagating object // Instantiate Smooks with the
config...</td>
    </tr>
  </tbody>
</table>
<br>
<blockquote
 cite="mid:20090226173245.1l0zkmclc4wsogks@webmail.easyhosting.com"
 type="cite">
  <pre wrap="">
Regards,

Dave

_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>


  </pre>
</blockquote>
<br>
</body>
</html>