-
Notifications
You must be signed in to change notification settings - Fork 0
Actor Stack and Workflows
Jamie Little edited this page Oct 22, 2019
·
7 revisions
-
Understand the Hyrax Actor Stack
- What does the actor stack do,
- What are the default actors in Hyrax
- How do you customize Actor Stack behavior
-
Understand workflows
- What is mediated deposit
- What are the default workflows installed with Hyrax
- How do you customize customize Hyrax workflows
- What kinds of things seem to be happening here: https://github.com/samvera/hyrax/blob/master/app/services/hyrax/default_middleware_stack.rb
- Compare this version:
https://github.com/UCLALibrary/californica/blob/master/app/services/californica/ingest_middleware_stack.rb - To create a custom actor, begin by reading the comments here: https://github.com/samvera/hyrax/blob/master/app/services/hyrax/curation_concern.rb
- Create a second user
- Make one user an administrator by editing
./config/rolemap.ymland adding something that looks like thisdevelopment: admin: - mark@curationexperts.com docker-compose run web rails hyrax:workflow:loaddocker-compose stop webdocker-compose start web- Re-login with your administrator user
- Change the workflow for your default admin set
- localhost:3000/admin/admin_sets/admin_set%2Fdefault/edit#workflow
- Logout and login as your non-admin user
- Add a new work to your repository
- http://localhost:3000/concern/images/new?locale=en
- Set the visibility to "Public"
- Once you've submitted your new image, not the status badge next to the visibility
- Check your notifications (for the depositing user)
- Log out and search for your work - does it show up?
- Log in with your administrator account
- Click on the Review Submissions link in the left dashboard navigation bar
- Check the "Under Review" tab, the newly submitted work should appear there, click on it's title
- Click "Review and Approve" and approve the work
- What other options do you have beside approving a work in the workflow provided by default
- What does the default workflow look like - see ./config/workflows/mediated_deposit_workflow.json - how does this look different than the default workflow
- What happens if you remove the
InitializeWorkflowActoractor from the middleware stack? - Creating your own workflow: https://github.com/samvera/hyrax/wiki/Mediated-Deposit-Workflow