Hi Mike,

Thanks. Have you tried the below? Looks good to me. Let me know if you have a 
specific error
or issue and then I'd be happy to help.

Cheers,
Chris

On Feb 7, 2012, at 1:51 PM, Cayanan, Michael D (388J) wrote:

> 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";>
> 
>     <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";>
> 
>     <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
> 


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: [email protected]
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Reply via email to