US and Worldwide: +1 (866) 660-7555
Results 1 to 7 of 7

Thread: Executing BI process within a xaction file

  1. #1
    Join Date
    Jun 2007
    Posts
    14

    Default Executing BI process within a xaction file

    Hi , I've a problem in the path (that's my opinion) of a BI process xaction file that I want to execute in another xaction file.
    I receive the following error message:

    Debug: SolutionRepository.DEBUG_FILE_PATH - getFile path=/home/alessio/pentaho-demo/pentaho-solutions (org.pentaho.repository.filebased.solution.SolutionRepository)
    Errore: RuntimeContext.ERROR_0012 - LActionDefinition per {0} non è stata eseguita con successo (org.pentaho.core.runtime.RuntimeContext)
    Errore: SolutionEngine.ERROR_0007 - Esecuzione dell'Action Sequence fallita (org.pentaho.core.solution.SolutionEngine)

    The action-definition is:
    <action-definition> <component-name>SubActionComponent</component-name>
    <action-type>Pentaho BI Process</action-type>
    <action-inputs>
    <user_id type="string"/>
    <mode type="string"/>
    <regione type="string"/>
    </action-inputs>
    <action-outputs>
    <url type="string"/>
    </action-outputs>
    <component-definition>
    <solution><![CDATA[samples]]></solution> <path><![CDATA[samples/tilesquare/OLAP/incroci]]></path> <action><![CDATA[nome_serieProdotto(0).xaction]]></action>
    </component-definition>
    </action-definition>

    Thanks for your help.

  2. #2
    Join Date
    Dec 2005
    Posts
    530

    Default

    Hi,

    I noticed that you have "samples" as a solution name and as the first folder name in the path:

    Code:
    <solution><![CDATA[samples]]></solution> <path><![CDATA[samples/tilesquare/OLAP/incroci]]></path> <action><![CDATA[nome_serieProdotto(0).xaction]]></action>
    Do you realy have two folders, called sample? => /home/alessio/pentaho-demo/pentaho-solutions/samples/samples/tilesquare/OLAP/incroci/nome_serieProdotto(0).xaction

    If the real path is:
    /home/alessio/pentaho-demo/pentaho-solutions/samples/tilesquare/OLAP/incroci/nome_serieProdotto(0).xaction

    change the path to:
    Code:
    <path><![CDATA[tilesquare/OLAP/incroci]]></path> <action><![CDATA[nome_serieProdotto(0).xaction]]></action>
    All the best,
    Ingo

  3. #3
    Join Date
    Jun 2007
    Posts
    14

    Default Problem persist

    Without samples directory as you stated the problem doesn't disappear.
    I can't understand why the path reported in the log is truncated at pentaho-solution....

  4. #4
    Join Date
    Dec 2005
    Posts
    530

    Default

    Here is the code of an action definition that works for me:

    Code:
    <action-definition> 
          <component-name>SubActionComponent</component-name>
          <action-type>Get Country List from xaction</action-type>
          <action-outputs> 
            <country_list_result type="string"/> 
          </action-outputs>
          <component-definition> 
            <solution><![CDATA[solution]]></solution>  
            <path><![CDATA[xactions_helper]]></path>  
            <action><![CDATA[country_security_list.xaction]]></action> 
          </component-definition> 
        </action-definition>
    The complete path on the server is: /home/pentaho-demo/solution/xactions-helper/country_security_list.xaction

    Maybe there is a problem with the name of your xaction due to the (0)?

    Good luck,
    Ingo

  5. #5
    Join Date
    Jun 2007
    Posts
    14

    Post

    nothing... I changed the directoy and the name of the files but problem remains... Maybe is a bug of the Pentaho distribution.. now I've installed the versione V1.2.0 build 534 GA

  6. #6
    Join Date
    Jun 2005
    Posts
    115

    Default SubAction Problems

    I Tested the following Subaction on your version of the platform and it worked.

    <?xml version="1.0" encoding="UTF-8"?>
    <action-sequence>
    <title>Subaction Test XACTION</title>
    <version>1</version>
    <logging-level>DEBUG</logging-level>
    <documentation>
    <author>Angelo Rodriguez</author>
    <description>Simple test of SubAction component.</description>
    <help>I Need Help</help>
    <result-type>rule</result-type>
    <icon>HelloWorld.png</icon>
    </documentation>

    <inputs/>

    <resources/>

    <actions>
    <action-definition>
    <component-name>SubActionComponent</component-name>
    <action-type>Pentaho BI Process</action-type>
    <action-inputs/>
    <action-outputs/>
    <component-definition>
    <solution><![CDATA[samples]]></solution>
    <path><![CDATA[getting-started/helloworld]]></path>
    <action><![CDATA[HelloWorld.xaction]]></action>
    </component-definition>
    </action-definition>
    </actions>
    </action-sequence>

    Let me know if this helps at all

    Bill

  7. #7
    Join Date
    Jun 2007
    Posts
    14

    Default

    I've installed the version 1.2.1.625-GA of the pentaho platform and I've changed the path of my xaction files from samples/tilesquare/OLAP/incroci to samples/tilesquare/analisi. Now it works ok. Maybe the problem was on the depth of the path?
    Anyway thanks very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •