Hi Val,

Sorry for the delay in answering this. The key way to make sure that
the workflow id and other properties like JobId are passed to the met
file would be to use the PcsMetListFileWriter and add it as an additional
writer for your files. All met writers that match the same files using
the regExp tag will be called. An example of using the PcsMetFileListWriter
is here in DRAT:

https://github.com/chrismattmann/drat/blob/master/pge/src/main/resources/co
nfig/PgeConfig_Rat.xml

https://github.com/chrismattmann/drat/blob/master/pge/src/main/resources/co
nfig/metout/rat_log_metout.xml


Here is some info on the philosophy behind the flow of metadata in
CAS-PGE that I recently penned on the wiki:

https://cwiki.apache.org/confluence/display/OODT/Understanding+CAS-PGE+Meta
data+Precendence

https://cwiki.apache.org/confluence/display/OODT/Understanding+the+flow+of+
Metadata+during+PGE+based+Processing


Let me know if that helps!

Cheers,
Chris

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Chief Architect
Instrument Software and Science Data Systems Section (398)
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 168-519, Mailstop: 168-527
Email: [email protected]
WWW:  http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Associate Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++






-----Original Message-----
From: <Mallder>, Valerie <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Monday, October 27, 2014 at 12:57 PM
To: "[email protected]" <[email protected]>
Subject: Passing WorkflowInstId to extern extractor

>Hello Everyone,
>
>I would like to query the file manager for all files ingested by a
>particular WorkflowInstId, or JobId, so I am trying to figure out how to
>get the WorkflowInstId or JobId written to each product's met file.  My
>met writer is an ExternExtractorMetWriter  so I would like to pass the
>WorkflowInstId or JobId as a parameter to the extractor. I tried
>specifying the parameter [WorkflowInstId] (also tried JobId) to the
>extern extractor config file like shown below, but this did not work.
>Does anyone have any ideas on how I could do this?
>
><cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas";>
>  <exec workingDir="">
>    <extractorBinPath
>envReplace="true">[OODT_HOME]/extensions/extractors/level0ExternMetExtract
>or.pl</extractorBinPath>
>    <args>
>       <arg isDataFile="true"></arg>
>       <arg>[WorkflowInstId]</arg>
>    </args>
>   </exec>
></cas:externextractor>
>
>Thanks!!
>Val
>
>
>
>
>Valerie A. Mallder
>
>New Horizons Deputy Mission System Engineer
>The Johns Hopkins University/Applied Physics Laboratory
>11100 Johns Hopkins Rd (MS 23-282), Laurel, MD 20723
>240-228-7846 (Office) 410-504-2233 (Blackberry)
>

Reply via email to