Class: Sipity::Method

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/sipity/method.rb

Overview

Note:

When a user takes the “deposit a work” action, call the “Lookup the corresponding Reviewer for the given Department and assign that person or group the Reviewer role for the given work (but not all of the works of the workflow)”

When a Sipity::Action is taken, each Sipity::Method is loaded and it's service_name is instantiated and called (all of this done via the Hyrax::Workflow::ActionTakenService).

This is responsible for mapping the Sipity::WorkflowAction to an object that responds to .call

We store, in the database, the 'service_name'. It is the name of a constant in the object space (e.g. we constantize the given service_name). The resolving service object should specify that `it_behaves_like “a Hyrax workflow method”`

See Also: