oodt-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cayanan, Michael D (388J)" <michael.d.caya...@jpl.nasa.gov>
Subject CAS PGE Crawler Question
Date Tue, 07 Feb 2012 21:51:12 GMT
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


Mime
View raw message