1 | <?xml version="1.0"?> |
---|
2 | <cps-workflow workflow_id="waeup_faculty_wf" |
---|
3 | title="CPS Workflow Definition" |
---|
4 | state_variable="review_state" |
---|
5 | meta_type="CPS Workflow"> |
---|
6 | <permission>View</permission> |
---|
7 | <state state_id="reviewed" title=""> |
---|
8 | <exit-transition transition_id="retract"/> |
---|
9 | </state> |
---|
10 | <state state_id="work" title="Work"> |
---|
11 | <exit-transition transition_id="create_content"/> |
---|
12 | <exit-transition transition_id="cut_copy_paste"/> |
---|
13 | <exit-transition transition_id="review"/> |
---|
14 | <permission-map name="View" acquired="False"> |
---|
15 | <permission-role>Manager</permission-role> |
---|
16 | <permission-role>SectionManager</permission-role> |
---|
17 | <permission-role>SectionReviewer</permission-role> |
---|
18 | <permission-role>SectionReader</permission-role> |
---|
19 | </permission-map> |
---|
20 | </state> |
---|
21 | <transition transition_id="create" title="Initial creation" |
---|
22 | new_state="work" trigger="USER" |
---|
23 | before_script="" after_script=""> |
---|
24 | |
---|
25 | <guard> |
---|
26 | <guard-role>Manager</guard-role> |
---|
27 | <guard-role>SectionManager</guard-role> |
---|
28 | </guard> |
---|
29 | <transition-behavior behavior_id="initial-create"/> |
---|
30 | </transition> |
---|
31 | <transition transition_id="create_content" |
---|
32 | title="Create content" new_state="work" |
---|
33 | trigger="USER" before_script="" after_script=""> |
---|
34 | |
---|
35 | <guard> |
---|
36 | <guard-role>Manager</guard-role> |
---|
37 | <guard-role>SectionManager</guard-role> |
---|
38 | <guard-role>SectionReviewer</guard-role> |
---|
39 | <guard-role>SectionReader</guard-role> |
---|
40 | </guard> |
---|
41 | <transition-behavior behavior_id="allow-sub-create"/> |
---|
42 | <transition-behavior behavior_id="allow-sub-publishing"/> |
---|
43 | </transition> |
---|
44 | <transition transition_id="cut_copy_paste" |
---|
45 | title="Cut/Copy/Paste" new_state="" |
---|
46 | trigger="USER" before_script="" after_script=""> |
---|
47 | |
---|
48 | <guard> |
---|
49 | <guard-role>Manager</guard-role> |
---|
50 | <guard-role>SectionManager</guard-role> |
---|
51 | <guard-role>SectionReviewer</guard-role> |
---|
52 | <guard-role>SectionReader</guard-role> |
---|
53 | </guard> |
---|
54 | <transition-behavior behavior_id="allow-sub-move"/> |
---|
55 | <transition-behavior behavior_id="allow-sub-delete"/> |
---|
56 | <transition-behavior behavior_id="allow-sub-copy"/> |
---|
57 | </transition> |
---|
58 | <transition transition_id="retract" |
---|
59 | title="Retract a reviewed Faculty" |
---|
60 | new_state="work" trigger="USER" |
---|
61 | before_script="" after_script=""> |
---|
62 | <action url="%(content_url)s/cpsdocument_edit_form" |
---|
63 | category="workflow">action_retract</action> |
---|
64 | <guard> |
---|
65 | <guard-role>FacultyManager</guard-role> |
---|
66 | <guard-role></guard-role> |
---|
67 | </guard> |
---|
68 | </transition> |
---|
69 | <transition transition_id="review" title="" |
---|
70 | new_state="reviewed" trigger="USER" |
---|
71 | before_script="" after_script=""> |
---|
72 | <action url="%(content_url)s/cpsdocument_edit_form" |
---|
73 | category="workflow">Review</action> |
---|
74 | <guard> |
---|
75 | <guard-role>FacultyManager</guard-role> |
---|
76 | <guard-role>Manager</guard-role> |
---|
77 | </guard> |
---|
78 | </transition> |
---|
79 | </cps-workflow> |
---|