Hi all,

Disregard my previous message. Turns out I had a typo. I had to set 
'PCS_ActionsIds' instead of 'PCS_ActionIds'.

-Mike

From: "Cayanan, Michael D (388J)" 
<[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Tue, 7 Feb 2012 13:51:12 -0800
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Cc: "Wong, Cynthia L (388J)" 
<[email protected]<mailto:[email protected]>>
Subject: CAS PGE Crawler Question

Hi all,

I would like CAS PGE to run a post ingest success action that I created upon a 
successful ingestion of the output file(s). How do you configure CAS PGE for 
this type of scenario?

I have a tasks.xml file in the workflow, where I define my post ingest action 
under the 'PCS_ActionIds' property:

    <task id="urn:my:Task" name="Task"
...
            <property name="PCS_ActionIds" value="MyPostIngestSuccessAction" />
            <property name="PCS_ActionRepoFile" value="crawler-config.xml" />
        </configuration>
    </task>

My crawler-config.xml has the following:

<beans xmlns="http://www.springframework.org/schema/beans";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xmlns:p="http://www.springframework.org/schema/p";
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd";<http://www.springframework.org/schema/beans/spring-beans-2.5.xsd%22>>

    <import resource="classpath:/org/apache/oodt/cas/crawl/crawler-beans.xml"/>
    <import resource="./action-beans.xml"/>
    <import 
resource="classpath:/org/apache/oodt/cas/crawl/comparator/precondition-beans.xml"/>
    <import 
resource="classpath:/org/apache/oodt/cas/crawl/option/cmd-line-option-beans.xml"/>
</beans>

Within my action-beans.xml, I added the post ingest success action:

<beans xmlns="http://www.springframework.org/schema/beans";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd";<http://www.springframework.org/schema/beans/spring-beans-2.5.xsd%22>>

    <bean 
class="org.apache.oodt.commons.spring.postprocessor.SetIdBeanPostProcessor"/>

    <!-- Crawler Actions -->

    <bean id="MyPostIngestSuccessAction" lazy-init="true" 
class="gov.nasa.jpl.crawler.action.MyPostIngestSuccessAction">
        <property name="description" value="Kickoff Another Workflow Event"/>
        <property name="executeCommand" value="sh 
[WORKFLOWMGR_HOME]/bin/run_L1B_S0_LoRes.sh"/>
        <property name="phases">
            <list>
                <value type="java.lang.String">postIngestSuccess</value>
            </list>
        </property>
    </bean>

Not sure if I'm missing anything else.

Thanks in advance,
Mike

Reply via email to