BurstingTest.xaction 3.78 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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence> 
  <name>BurstingTest.xaction</name>
  <title>Bursting Test 1</title>
  <version>1</version>
  <logging-level>debug</logging-level>
  <documentation> 
    <author>Doug Moran</author>  
    <description>Bursting rule test</description>  
    <help>This bad boy tests the ability to loop and burst</help> 
  </documentation>

  <inputs> 
    <output-type type="string"> 
      <default-value>pdf</default-value>  
      <sources> 
        <request>type</request> 
      </sources> 
    </output-type>  
    <to type="string"> 
      <default-value>rmansoor@pentaho.org</default-value> 
    </to>  
    <from type="string"> 
      <default-value>rmansoor@pentaho.org</default-value> 
    </from>  
    <subject type="string"> 
      <default-value>Burst Test</default-value>  
      <sources> 
        <request>email-subject</request> 
      </sources> 
    </subject>  
    <message-plain type="string"> 
      <default-value>This email was automatically generated by a whole heap of noodle-code(tm). Not sure why it works - but hey who knows why anything works - right?</default-value> 
    </message-plain>  
    <attach type="string"> 
      <default-value>report-output</default-value> 
    </attach>  
    <attach-name type="string"> 
      <default-value>report.pdf</default-value> 
    </attach-name>  
    <report-output type="content"/> 
  </inputs>

  <outputs> 
    <report-output type="content"/> 
  </outputs>

  <resources> 
    <report-definition> 
      <solution-file> 
        <location>/reporting/quadrant-budget-for-region-and-dept-hsql.rptdesign</location>  
        <mime-type>text/xml</mime-type> 
      </solution-file> 
    </report-definition> 
  </resources>
  
  <actions> 
    <action-definition> 
      <component-name>SQLLookupRule</component-name>
      <action-type>rule</action-type>
      <action-outputs> 
        <rule-result type="list"/>  
        <DEPARTMENT type="string"/>  
        <REGION type="string"/> 
      </action-outputs>
      <component-definition> 
        <jndi>SampleData</jndi>  
        <query><![CDATA[select distinct Region, Department from QUADRANT_ACTUALS where Region='Western']]></query> 
      </component-definition> 
    </action-definition>
  
    <actions loop-on="rule-result"> 
      <action-definition> 
        <component-name>TestComponent</component-name>
        <action-inputs> 
          <DEPARTMENT type="string"/>  
          <REGION type="string"/> 
        </action-inputs>
        <action-outputs/>
        <component-definition> 
          <test>print2</test>  
          <p1>REGION</p1>  
          <p2>DEPARTMENT</p2> 
        </component-definition>
        <action-name>Print it</action-name> 
      </action-definition>
  
      <action-definition> 
        <component-name>BIRTReportComponent</component-name>
        <action-type>report</action-type>
        <action-inputs> 
          <output-type type="string"/>  
          <REGION type="string"/>  
          <DEPARTMENT type="string"/> 
        </action-inputs>
        <action-resources>
          <report-definition type="resource"/>
        </action-resources>
        <action-outputs> 
          <report-output type="content"/> 
        </action-outputs>
        <component-definition/> 
      </action-definition>
  
      <action-definition> 
        <component-name>EmailComponent</component-name>
        <action-type>email</action-type>
        <action-inputs> 
          <report-output type="content"/>  
          <to type="string"/>  
          <subject type="string"/>  
          <from type="string"/>  
          <message-plain type="string"/>  
          <attach type="string"/>  
          <attach-name type="string"/> 
        </action-inputs>
        <component-definition/> 
      </action-definition>
 
    </actions>
 
  </actions> 
</action-sequence>