HQL_Datasource.xaction 1.74 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
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence> 
  <name>HQL_Datasource.xaction</name>
  <title>%title</title>
  <version>1</version>
  <logging-level>DEBUG</logging-level>
  <documentation> 
    <author>Michael D'Amour</author>  
    <description>%description</description>  
    <icon>SQL_Datasource.png</icon>  
    <help>Help</help>  
    <result-type>rule</result-type> 
  </documentation>

  <inputs> 
    <output-type type="string"> 
      <default-value>html</default-value>  
      <sources> 
        <request>type</request> 
      </sources> 
    </output-type> 
  </inputs>

  <outputs> 
    <rule-result type="result-set"/> 
  </outputs>

  <resources> 
    <hibernateConfig> 
      <solution-file> 
        <location>HQL_Datasource.cfg.xml</location>  
        <mime-type>text/xml</mime-type> 
      </solution-file> 
    </hibernateConfig> 
  </resources>
  
  <actions> 
    <action-definition> 
      <component-name>HQLLookupRule</component-name>
      <action-type>HQL For Report Data</action-type>
      <hibernateConfig> 
        <catalog type="resource"/> 
      </hibernateConfig>
      <action-outputs> 
        <query-results type="result-set" mapping="rule-result"/> 
      </action-outputs>
      <component-definition> 
        <classNames>org.pentaho.repository.content.ContentItem, org.pentaho.repository.content.ContentItemFile, org.pentaho.repository.content.ContentLocation, org.pentaho.repository.runtime.RuntimeElement</classNames>  
        <query><![CDATA[select name as Name, path as Path, title as Title, mimeType as mimeType, id as Id from ContentItem]]></query>  
        <!--query><![CDATA[select * from RuntimeElementsasdf]]></query--> 
      </component-definition> 
    </action-definition>
 
  </actions> 
</action-sequence>