Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

ingest_hooks.jpgWorkflow documentation

This is an attempt to decouple the ingest processes into something generic that can be abstracted into a gem and easily overridden by institutions who do not want to use the default behaviors. A first pass includes adding hooks for different events, extending the initializer, and writing an abstract ingest handler that can proxy for requests through both HTTP and batch workflows.

Configuration

An initializer underneath /config is used to set up the list of steps along with define any event hooks needed by the application. A default implementation might look something like the following code snippet.

config/initializers/hydrant.rb
include Hydrant::Workflow::Steps
 
ingest_steps.load({
  Steps.file_upload,
  Steps.structure,
  Steps.metadata,
  Steps.access_control,
  Steps.preview
})
 
after_step :file_upload  { |context|
  # Kick off processing with Matterhorn
}

Event listeners

Module API

IngestWorkflow

IngestStep

  • No labels