-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathworkflow.feature
33 lines (30 loc) · 1.79 KB
/
workflow.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@api
Feature: Workflow
In order to ensure its readiness and compliance
As a site owner
I want my content to go through workflow prior to publication.
Scenario: Workflow
Then exactly the following workflows should exist
| Label | Machine name | Type |
| Editorial | editorial | Content moderation |
Scenario: Workflow states
Then exactly the following workflow states should exist
| Workflow | Label | Machine name |
| Editorial | Draft | draft |
| Editorial | In review | review |
| Editorial | Published | published |
| Editorial | Archived | archived |
Scenario: Workflow transitions
Then exactly the following workflow transitions should exist
| Workflow | Label | Machine name | From state | To state |
| Editorial | Create New Draft | create_new_draft | Draft | Draft |
| Editorial | Create New Draft | create_new_draft | In review | Draft |
| Editorial | Create New Draft | create_new_draft | Published | Draft |
| Editorial | Create New Draft | create_new_draft | Archived | Draft |
| Editorial | Send to review | review | Draft | In review |
| Editorial | Send to review | review | In review | In review |
| Editorial | Publish | publish | Draft | Published |
| Editorial | Publish | publish | In review | Published |
| Editorial | Publish | publish | Published | Published |
| Editorial | Archive | archive | Published | Archived |
| Editorial | Restore from archive | archived_published | Archived | Published |