Hi Chris,
Working perfectly now thanks for the guidance.
My tika.conf has to contain the following KV's

ProductType=GenericFile
ProductTypeName=GenericFileIngest

My events.xml has to contain the following

<cas:workflowevents xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas";>
  <event name="GenericFileIngest">
    <workflow id="urn:oodt:PycoalWorkflow"/>
  </event>
</cas:workflowevents>

The 'GenericFileIngest' concerns me as these files are not really considered as 
generic from within the COAL-SDS system... but it is something I can live with 
for sure.
Thanks again,
Lewis

On 2018/12/04 19:08:08, Chris Mattmann <mattm...@apache.org> wrote: 
> I think it needs to be “ProductTypeName” specifically so try changing the
> met field name to exactly that, and yes it needs to be GenericFileIngest.
> 
> So you want basically an event named that in events.xml and then you want
> to map that to the workflow you want it to automatically kick off in the 
> event-to-worfklow-map.xml.
> 
>  
> 
>  
> 
>  
> 
> From: Lewis John McGibbney <lewi...@apache.org>
> Reply-To: <dev@oodt.apache.org>
> Date: Tuesday, December 4, 2018 at 10:43 AM
> To: <dev@oodt.apache.org>
> Subject: Re: Updating Workflow Status to Post-Ingest
> 
>  
> 
> Hi Chris,
> 
>  
> 
> On 2018/12/04 16:51:35, Chris Mattmann <mattm...@apache.org> wrote: 
> 
> Do you have a workflow with the name [ProductTypeName]Ingest?
> 
>  
> 
> No I do not. Is the key within the square brackets a variable e.g. would it 
> look like 'GenericFileIngest'?
> 
> I'm not entirely sure how and where to define this.
> 
>  
> 
> Is ProductTypeName one of the extracted metadata fields? 
> 
>  
> 
> In my Solr Catalog every record ends up with a field '"CAS.ProductTypeName": 
> "GenericFile",' however I will most likely change this from 'GenericFile' to 
> something more specific and relevant e.g. 'AVIRIS-NGDataFile', for each 
> crawler daemon I have set up. This can be set in tika.conf.
> 
>  
> 
> If not, then
> 
> that part will be null when it goes to look it up in the crawler. Please 
> check.
> 
>  
> 
> Is my above understanding correct?
> 
> Thanks
> 
>  
> 
> 

Reply via email to