Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is an attempt to decouple the ingest processes into something generic that can be abstracted into a gem and easily overridden by instituions 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.

Code Block
themeEclipse
languageruby
titleconfig/initializers/hydrant.rb
linenumberstrue
collapsetrue
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