ResultSetExportTest.xaction 1.59 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
<?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>