All actions in setup are only available to an admin user. So, first sign in as an admin user.
1. Setup the collection `CRC1280 publication workflow` (of type admin set)
**This part of the setup is performed automatically by the rake task `default_admin_set_for_workflow.rake`. **
The collection `CRC1280 publication workflow` (of type admin set) should be available with the participants, visibility, and workflow already setup. Edit the collection to see the values assigned.
If the collection is not available, you can add a new collection of type `Admin set`.
```
Type: Admin set
Title: CRC1280 publication workflow
participants:
add user: publication_manager@hyrax as Manager
add group: CRC1280_member as Depositor
Release and visibility:
Do not allow embargoes or leases
Visibility
Private - depositor can only select private for visibility. Access is restricted to repository administrators, managers, and viewers of the set. Must be used with "No embargo" setting above.
Workflow:
CRC1280 publication workflow
```
**Note:** The system user `ENV['SYSTEM_PUBLICATION_MANAGER']` (default `publication_manager@hyrax`) is added as the manager of the workflow and can view all experiments within all states of review.
2. Create the collection `CRC1280` (of type CRC1280)
**This part of the setup is performed automatically by the rake task `create_CRC1280_collection.rake`. **
The admin user is the owner of this collection.
## Workflow roles
The review process in the`CRC1280 publication workflow` makes use of the following roles
| CRC1280_group_member | A user with the role `CRC1280_group_member` can create an experiment, deposit the experiment to be published or archived, and make changes when requested by the `CRC1280_group_manager` and submit it again for review. |
| CRC1280_group_manager | A user with the role `CRC1280_group_manager` does the first level of review. If acceptable, passes it on to the CRC1280_manager for review or requests the depositor to make changes. |
| CRC1280_manager | A user with the role `CRC1280_manager` does the second level of review. If acceptable, passes it on to the `publication_manager` for the final review or requests the `CRC1280_group_manager` to make changes. |
| publication_manager | A user with the role `publication_manager` does the final level of review of the experiment. If acceptable, the experiment gets either archived or published, as requested by the depositor or requests the `CRC1280_manager` to make changes.<br/>After publishing an experiment, the user with the role `publication_manager` can initiate tombstone of a published experiment, and then confirm the tombstone or revert the tombstone.<br/> If confirmed, all data and metadata of the experiment is deleted, keeping just a record of the experiment. <br/> If reverted, the experiment is back to its published state. |
## Assign users to roles
This feature is only available to an admin user. So, first sign in as an admin user.
### Add user(s) as publication manager
**Note:** The user with the role `publication_manager` is also the publication manager for the `RUB publication workflow`. So if a user has already been added to this role, skip this step.
To add a user to the publication_manager role
* Click on `Manage roles` (/roles)
* Click on the role `publication_manager` and add a user to the role
* If the role doesn't exists, add a new role
```
Role name: publication_manager
```
* Add a user to the account (for example user10@hyrax)
### Setup the CRC1280 group and users
Before users are able to create and publish an experiment from a CRC1280 group they belong to, the following steps need to be performed
* From the collection dashboard, select the collection `CRC1280`
* Add user(s) as `CRC1280 manager`
* Add at least a couple of users as `CRC1280 members`
* Create a new group within the `CRC1280` (example: `A99`)
* From the collection dashboard, select the collection `A99`
* Add user(s) as `group manager`
* Add at least a couple of users as `group members`