1 | <?xml version="1.0"?>
|
---|
2 | <cps-workflow workflow_id="waeup_section_wf"
|
---|
3 | title="CPS Workflow Definition"
|
---|
4 | state_variable="review_state"
|
---|
5 | meta_type="CPS Workflow">
|
---|
6 | <permission>View</permission>
|
---|
7 | <state state_id="static" title="">
|
---|
8 | <exit-transition transition_id="create_content"/>
|
---|
9 | <exit-transition transition_id="cut_copy_paste"/>
|
---|
10 | <permission-map name="View" acquired="True">
|
---|
11 | <permission-role>SectionOfficer</permission-role>
|
---|
12 | </permission-map>
|
---|
13 | </state>
|
---|
14 | <transition transition_id="create" title="Initial creation"
|
---|
15 | new_state="static" trigger="USER"
|
---|
16 | before_script="" after_script="">
|
---|
17 |
|
---|
18 | <guard>
|
---|
19 | <guard-role>Manager</guard-role>
|
---|
20 | <guard-role>SectionManager</guard-role>
|
---|
21 | <guard-role>SectionOfficer</guard-role>
|
---|
22 | </guard>
|
---|
23 | <transition-behavior behavior_id="initial-create"/>
|
---|
24 | </transition>
|
---|
25 | <transition transition_id="create_content"
|
---|
26 | title="Create content" new_state=""
|
---|
27 | trigger="USER" before_script="" after_script="">
|
---|
28 |
|
---|
29 | <guard>
|
---|
30 | <guard-role>Manager</guard-role>
|
---|
31 | <guard-role>SectionManager</guard-role>
|
---|
32 | <guard-role>SectionReviewer</guard-role>
|
---|
33 | <guard-role>SectionReader</guard-role>
|
---|
34 | <guard-role>SectionOfficer</guard-role>
|
---|
35 | </guard>
|
---|
36 | <transition-behavior behavior_id="allow-sub-create"/>
|
---|
37 | <transition-behavior behavior_id="allow-sub-publishing"/>
|
---|
38 | </transition>
|
---|
39 | <transition transition_id="cut_copy_paste"
|
---|
40 | title="Cut/Copy/Paste" new_state=""
|
---|
41 | trigger="USER" before_script="" after_script="">
|
---|
42 |
|
---|
43 | <guard>
|
---|
44 | <guard-role>Manager</guard-role>
|
---|
45 | <guard-role>SectionManager</guard-role>
|
---|
46 | <guard-role>SectionReviewer</guard-role>
|
---|
47 | <guard-role>SectionReader</guard-role>
|
---|
48 | <guard-role>SectionOfficer</guard-role>
|
---|
49 | </guard>
|
---|
50 | <transition-behavior behavior_id="allow-sub-delete"/>
|
---|
51 | <transition-behavior behavior_id="allow-sub-move"/>
|
---|
52 | <transition-behavior behavior_id="allow-sub-copy"/>
|
---|
53 | </transition>
|
---|
54 | <script script_id="add_language_to_proxy"
|
---|
55 | type="Script (Python)"
|
---|
56 | filename="workflows/waeup_section_wf/scripts/add_language_to_proxy.py"/>
|
---|
57 | <script script_id="delete_language_from_proxy"
|
---|
58 | type="Script (Python)"
|
---|
59 | filename="workflows/waeup_section_wf/scripts/delete_language_from_proxy.py"/>
|
---|
60 | </cps-workflow>
|
---|