Issue Type: Enhancement Enhancement
Affects Versions: 1.0, 1.1
Assignee: Unassigned
Components: transformation
Created: 31/Mar/14 7:30 PM
Description:

Smooks transform XML allows setting reportPath attribute, that should configure the Smooks HTML report for debugging Smooks tranformations, like:

    <sy:transforms>
        <tfmt:transform.smooks
                config="my-message.smooks.xml"
                from="java:com.my.app.Message"
                to="{urn:com.my:APP:1.0}Message"
                type="JAVA2XML"
                reportPath="/tmp/my-message.smooks.report.html"
                />
    </sy:transforms>

The actual report path is not configured in SmooksTransformFactory or anywhere else. The configuration should looks something like (from Smooks documentation):

Smooks smooks = new Smooks("/smooks/smooks-transform-x.xml");
ExecutionContext execContext = smooks.createExecutionContext();
 
execContext.setEventListener(new HtmlReportGenerator("/tmp/smooks-report.html"));
...

Instead, the default execution context is simply created in SmooksTransformFactory and never added any event listners to.

Of course the reportPath attribute is not even mentioned in the documentation (https://docs.jboss.org/author/display/SWITCHYARD/Smooks+Transformer), so there is no promise of it to be working, but HTML report is paramount in debugging Smooks transforms and would be a very useful addition.

Project: SwitchYard
Priority: Major Major
Reporter: Artem Egorkine
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira