/
workflow.json.erb
65 lines (65 loc) · 2.71 KB
/
workflow.json.erb
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"workflows": [
{
"name": "one_step_mediated_deposit",
"label": "One-step mediated deposit workflow",
"description": "A single-step workflow for mediated deposit in which all deposits must be approved by a reviewer. Reviewer may also send deposits back to the depositor.",
"actions": [
{
"name": "deposit",
"from_states": [],
"transition_to": "pending_review",
"notifications": [
{
"notification_type": "email",
"name": "Sufia::Workflow::PendingReviewNotification",
"to": ["approving"]
}
],
"methods": [
"CurationConcerns::Workflow::DeactivateObject"
]
}, {
"name": "request_changes",
"from_states": [{"names": ["complete", "pending_review"], "roles": ["approving"]}],
"transition_to": "changes_required",
"notifications": [
{
"notification_type": "email",
"name": "Sufia::Workflow::ChangesRequiredNotification",
"to": ["approving"]
}
],
"methods": [
"CurationConcerns::Workflow::DeactivateObject"
]
}, {
"name": "approve",
"from_states": [{"names": ["pending_review"], "roles": ["approving"]}],
"transition_to": "complete",
"notifications": [
{
"notification_type": "email",
"name": "Sufia::Workflow::CompleteNotification",
"to": ["approving"]
}
],
"methods": [
"CurationConcerns::Workflow::ActivateObject"
]
}, {
"name": "request_review",
"from_states": [{"names": ["changes_required"], "roles": ["depositing"]}],
"transition_to": "pending_review",
"notifications": [
{
"notification_type": "email",
"name": "Sufia::Workflow::PendingReviewNotification",
"to": ["approving"]
}
]
}
]
}
]
}