Hi Rishi, The step-by-step CAS-PGE tutorial is great!
I didn't know about the --metaData option till a few days back when Chris told me that it adds the key-value pairs to the Workflow context metadata. Do you know how I can see or get this workflow metadata? For the example in the tutorial, I want to check if the RunID that was sent as metaData to the File Concatenator PGE was recorded for that workflow. When I checked the XmlRpcWorkflowManagerClient.java [1], none of the command-line options seem to return the workflow instance metadata, but I see a method 'public Metadata getWorkflowInstanceMetadata(String wInstId)' and it's not being used yet. [1] https://svn.apache.org/repos/asf/oodt/trunk/workflow/src/main/java/org/apache/oodt/cas/workflow/system/XmlRpcWorkflowManagerClient.java Thanks, On Thu, Sep 22, 2011 at 5:09 PM, Verma, Rishi (317I) < [email protected]> wrote: > Hi Mike, > > A good way to specify which types of files you would like to ingest is by > using the "regExp" attribute within the 'files' element of your > PGEConfig.xml. > > You can specify files with a certain extension, or files that match a > certain regular expression within their file name. > > Here's an example: > > <files > regExp=".*\.txt" > metFileWriterClass="org.apache.oodt.pge.examples.fileconcatenator.writers.ConcactenatingFilenameExtractorWriter" > > args="[PGE_ROOT]/file_concatenator/extractors/concatenatingfilename.extractor.config.xml"/> > You might want to look at a tutorial I wrote on how to create a simple PGE > [1] located within JIRA issue [2]. This tutorial includes a full sample > PGEConfig.xml file with the example above in context. I'm in the process of > converting this to xdoc for the OODT site, but feel free to try it out! > > [1] > https://issues.apache.org/jira/secure/attachment/12489556/CAS-PGE_learn_by_example.docx > [2] https://issues.apache.org/jira/browse/OODT-217 > > Thanks, > Rishi > > On Sep 22, 2011, at 4:45 PM, Cayanan, Michael D (388J) wrote: > > Is there a mechanism in CAS PGE to tell the file manager to only ingest > certain files? If so, how is this done? Is it through a "metout" file of > some sort? > > We'd like to use this feature (if it exists) in SMAP. > > Thanks, > Mike > > > -- -Sheryl
