oodt-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mattmann, Chris A (388J)" <chris.a.mattm...@jpl.nasa.gov>
Subject Re: CAS PGE Crawler Question
Date Tue, 07 Feb 2012 23:22:09 GMT
Hi Mike,

Glad to hear!

Cheers,
Chris

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

> 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)" <michael.d.cayanan@jpl.nasa.gov>
> Reply-To: "user@oodt.apache.org" <user@oodt.apache.org>
> Date: Tue, 7 Feb 2012 13:51:12 -0800
> To: "user@oodt.apache.org" <user@oodt.apache.org>
> Cc: "Wong, Cynthia L (388J)" <cynthia.l.wong@jpl.nasa.gov>
> 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">
> 
>     <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: chris.a.mattmann@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Mime
View raw message