Bug 778340 (SOA-825) - Smooks documentation in SOA-P
Summary: Smooks documentation in SOA-P
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-825
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: Documentation
Version: 4.3 IR4
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.3 CR1
Assignee: Dana Mison
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-24 00:41 UTC by Burr Sutter
Modified: 2008-10-22 19:45 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-10-22 19:45:22 UTC
Type: Task


Attachments (Terms of Use)
Screenshot-1.png (146.05 KB, image/png)
2008-10-22 19:45 UTC, Len DiMaggio
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-825 0 None None None Never

Description Burr Sutter 2008-09-24 00:41:15 UTC
Date of First Response: 2008-09-25 05:23:10
project_key: SOA

The Smooks documentation contained in the SOA-P docset is lightweight.  The docs on the Smooks website is a little bit out of sync with the capabilities of the SOA-P.  The docs in this area need illustrate the the typical SOA use cases:
- ASCII to XML
- XML to XML
- XML to POJO

Comment 1 Mark Little 2008-09-25 09:23:10 UTC
Darrin, talk with Tom Fennelly. If we can't get anything in for this release then we can target the CP.

Comment 2 Tom Fennelly 2008-09-29 08:57:43 UTC
I received an email from Darrin, so I'll comment here on the issue.

The docs for Smooks v1.0.x are available here: http://milyn.codehaus.org/docs/v1.0/SmooksUserGuide_v1.0.html

Comment 3 Mark Little 2008-09-30 09:39:03 UTC
Can we just include it "as is"?

Comment 4 nwallace 2008-10-01 11:27:51 UTC
Emailed Darrin for comments

Comment 5 Dana Mison 2008-10-02 00:38:33 UTC
all of http://milyn.codehaus.org/docs/v1.0/SmooksUserGuide_v1.0.html ?  

No, will take way too long, and at lot of it might be out of context for SOA

There are 4 or 5 transform quickstarts... might just include references to them?



Comment 6 Burr Sutter 2008-10-02 19:41:49 UTC
I don't believe anything in http://milyn.codehaus.org/docs/v1.0/SmooksUserGuide_v1.0.html  is "out of context".  Much like the Drools & jBPM user guides, they are focused on individual project usage but the knowledge is still valuable. 

Documentation that describe how the transform quickstarts are working would be very useful.  Specifically,  how the smooks-config.xml, smooks-res.xml and SmooksAction is working to address those problem spaces.



Comment 7 Mark Little 2008-10-04 10:07:21 UTC
What is the status of this? We either include the docs in the next few days or push this out. It can't hold up the release. Worst case: let's include a link to the Smooks docs!

Comment 8 Dana Mison 2008-10-06 01:40:28 UTC
I'm going to add a list of the quickstarts & the some of the descriptions from their readme.txts, And a link to the smooks docs.

Comment 9 Dana Mison 2008-10-06 01:46:42 UTC
in the Programmers Guide that is

Comment 10 Dana Mison 2008-10-06 08:10:39 UTC
Content added to the Programmers Guide.  end of section 2 - Message Transformation,  of chapter 5 - Other Services.

There are a number of QuickStarts included that provide different examples of implementing
transformations.

1. jboss-as/samples/quickstarts/transform_CSV2XML/
   This quickstart demonstrates how to transform a comma separated value (CSV) file to an xml. The
   tranformation is done by configuring Smooks and performing two transformations, the first one from
   CSV to an intermediate xml format, and then the second from the intermediate xml format to the
   target xml.

2. jboss-as/samples/quickstarts/transform_XML2POJO/
   This quickstart illustrates the use of Smooks to perform a simple transformation to convert an XML
   file into Java POJOs.

3. jboss-as/samples/quickstarts/transform_XML2POJO2/
   This quickstart demonstrates the transform of two different XML files to a common set of POJOs.

4. jboss-as/samples/quickstarts/transform_XML2XML_simple/
   This is a very basic example of how to manually define and apply a Message Transformation within
   JBossESB. It applies a very simple XSLT to a SampleOrder.xml message and prints the before
   and after XML to the console.

5. jboss-as/samples/quickstarts/transform_XML2XML_date_manipulation/
   This Quickstart continues on from the transformation_XML2XML_simple Quickstart and
   demonstrates how you can simplify your transformations by combining XSLT with Java. Java
   is used to perform the string manipulation on the SampleOrder date field (OrderDate.java)
   and XSLT is used for providing a template for output. The original and the transformed
   SampleOrder.xml messages are printed to the Java console.

6. jboss-as/samples/quickstarts/transform_XML2XML_stream/
   This is a very basic example of how to stream a fragment of a transformation to an ESB Service.
   The trick behind this is using a Smooks DOMVisitor that sends the element it is passed in its
   visitBefore and visitAfter.

7. jboss-as/samples/quickstarts/transform_EDI2XML_Groovy_XSLT/
   This is the most advanced of the transform Quickstarts. Be sure to go through the other
   transformation Quickstarts before going through this. There's an accompanying Flash demo at
   http://labs.jboss.com/portal/jbossesb/resources/tutorials/xformation-demos/console-demo-03.html
   which walks you through this Quickstart.

The complete Smooks documentation can be found on the Smooks project website at http://
milyn.codehaus.org/docs/v1.0/SmooksUserGuide_v1.0.html.

Comment 11 Len DiMaggio 2008-10-22 19:45:04 UTC
The pointer to the smooks docs is in the programmers' guide in CR1.

Comment 12 Len DiMaggio 2008-10-22 19:45:04 UTC
Attachment: Added: Screenshot-1.png


Comment 13 Len DiMaggio 2008-10-22 19:45:22 UTC
Verified in CR1


Note You need to log in before you can comment on or make changes to this bug.