pentaho爱好者,pentaho中国爱好者社区

 找回密码
 注册
查看: 3171|回复: 0

Action Sequence

[复制链接]
WanYi 发表于 2014-8-27 15:47:48 | 显示全部楼层 |阅读模式
Pentaho  Action Sequence :


例一:

<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
  <title>Send Email</title>
  <version>1</version>
  <logging-level>DEBUG</logging-level>
  <documentation>
    <author>Joe Pentaho</author>  
    <description>Sample sequence for sending an email</description>  
    <help>%help</help>  
    <result-type>rule</result-type>  
    <icon>HelloEmail.png</icon>
  </documentation>

  <inputs>
    <to type="string">
      <default-value><![CDATA[[email protected]]]></default-value>  
      <sources>
        <request>to</request>
      </sources>
    </to>  
    <from type="string">
      <default-value>[email protected]</default-value>  
      <sources>
        <request>from</request>
      </sources>
    </from>  
    <subject type="string">
      <default-value><![CDATA[邮件发送实例]]></default-value>  
      <sources>
        <request>email-subject</request>
      </sources>
    </subject>  
    <message-plain type="string">
      <default-value><![CDATA[邮件发送测试]]></default-value>
    </message-plain>
  </inputs>

  <outputs/>

  <resources/>
  
  <actions>
    <action-definition>
      <component-name>org.pentaho.component.EmailComponent</component-name>
      <action-inputs>
        <to type="string"/>  
        <from type="string"/>  
        <subject type="string"/>  
        <message-plain type="string"/>
      </action-inputs>
      <component-definition/>
    </action-definition>

  </actions>
</action-sequence>



抛错 :



The Pentaho BI Platform reported an error while running an action sequence
Possible Causes:
RuntimeContext.ERROR_0035 - Action validation failed.

Action Sequence:EmailExample.xaction
Execution Stack:
EXECUTING ACTION:  (org.pentaho.component.EmailComponent)

Loop Index (1-based):N/A
Error Time:2014年8月27日 星期三 下午03时46分39秒 CST
Error Type:ActionValidationException
Session ID:joe
Instance Id:47a7736e-2dbe-11e4-9a26-95d28639cc94
Action Classrg.pentaho.component.EmailComponent



例二:
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
  <name>clean_repository.xaction</name>
  <title>%title</title>
  <version>1</version>
  <logging-level>debug</logging-level>
  <documentation>
    <author>William E. Seyler</author>  
    <description>%description</description>  
    <icon>btn_clean.png</icon>  
    <help/>  
    <result-type>rule</result-type>
  </documentation>

  <inputs>
    <days-back type="string">
      <default-value><![CDATA[180]]></default-value>
    </days-back>
  </inputs>

  <outputs>
    <delete-count type="string"/>
  </outputs>

  <resources/>
  
  <actions>
    <action-definition>
      <component-name>org.pentaho.plugin.core.ContentRepositoryCleaner</component-name>
      <action-type>rule</action-type>
      <action-inputs>
        <days-back type="string"/>
      </action-inputs>
      <action-outputs>
        <delete-count type="string"/>
      </action-outputs>
      <component-definition/>
    </action-definition>

  </actions>
</action-sequence>


Possible Causes:
RuntimeContext.ERROR_0035 - Action validation failed.

Action Sequence:ContentRepositoryCleaner.xaction
Execution Stack:
EXECUTING ACTION: rule (org.pentaho.plugin.core.ContentRepositoryCleaner)

Loop Index (1-based):N/A
Error Time:2014年8月27日 星期三 下午03时47分17秒 CST
Error Type:ActionValidationException
Session ID:joe
Instance Id:5e4a6f0f-2dbe-11e4-9a26-95d28639cc94
Action Classrg.pentaho.plugin.core.ContentRepositoryCleaner
Action Description:rule



求解决....
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|灏忛粦灞|pentaho爱好者,pentaho中国爱好者社区 ( 鄂ICP备10205388号 )

GMT+8, 2019-12-16 11:23 , Processed in 0.109375 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表