<?xml version="1.0" encoding="UTF-8"?> <action-sequence> <title>Test Resultset Export</title> <version>1</version> <logging-level>ERROR</logging-level> <documentation> <author>Brian Hagan</author> <description>This action tests the resultset export utility - Success Path</description> <help/> <result-type>rule</result-type> <icon/> </documentation> <inputs/> <outputs> <EXPORTRESULT type="string" /> </outputs> <resources/> <actions> <action-definition> <action-inputs /> <action-outputs> <rs1 type="list"/> </action-outputs> <component-name>JavascriptRule</component-name> <action-type>rule</action-type> <component-definition> <script><![CDATA[ var rs1 = new JavaScriptResultSet(); rs1.setColumnHeaders( 'REGION'); rs1.addRow( new Array( 'Central' ) ); rs1.addRow( new Array( 'Eastern' ) ); rs1.addRow( new Array( 'Western' ) ); rs1.addRow( new Array( 'Southern' ) ); ]]> </script> </component-definition> </action-definition> <action-definition> <action-inputs> <result-set type="list" mapping="rs1"/> </action-inputs> <action-outputs> <EXPORTRESULT type="string" /> </action-outputs> <component-name>org.pentaho.plugin.core.ResultSetExportComponent</component-name> <component-definition> </component-definition> </action-definition> </actions> </action-sequence>