source: WAeUP_SRP/uniben/profiles/default/workflows/section_folder_wf/definition.xml @ 3337

Last change on this file since 3337 was 939, checked in by Henrik Bettermann, 18 years ago

waeup_section_wf instead of section_folder_wf
SectionOfficer? role added to most managed permission sets and transition guards

File size: 3.2 KB
Line 
1<?xml version="1.0"?>
2<cps-workflow workflow_id="section_folder_wf"
3              title="CPS Workflow Definition"
4              state_variable="review_state"
5              meta_type="CPS Workflow">
6 <permission>View</permission>
7 <state state_id="work" title="Work">
8  <exit-transition transition_id="create_content"/>
9  <exit-transition transition_id="cut_copy_paste"/>
10  <exit-transition transition_id="translate"/>
11  <exit-transition transition_id="delete_translation"/>
12  <permission-map name="View" acquired="False">
13   <permission-role>Manager</permission-role>
14   <permission-role>SectionManager</permission-role>
15   <permission-role>SectionOfficer</permission-role>
16   <permission-role>SectionReader</permission-role>
17   <permission-role>SectionReviewer</permission-role>
18  </permission-map>
19 </state>
20 <transition transition_id="create" title="Initial creation"
21             new_state="work" trigger="USER"
22             before_script="" after_script="">
23 
24  <guard>
25   <guard-role>Manager</guard-role>
26   <guard-role>SectionManager</guard-role>
27  </guard>
28  <transition-behavior behavior_id="initial-create"/>
29 </transition>
30 <transition transition_id="create_content"
31             title="Create content" new_state="work"
32             trigger="USER" before_script="" after_script="">
33 
34  <guard>
35   <guard-role>Manager</guard-role>
36   <guard-role>SectionManager</guard-role>
37   <guard-role>SectionReviewer</guard-role>
38   <guard-role>SectionReader</guard-role>
39  </guard>
40  <transition-behavior behavior_id="allow-sub-create"/>
41  <transition-behavior behavior_id="allow-sub-publishing"/>
42 </transition>
43 <transition transition_id="cut_copy_paste"
44             title="Cut/Copy/Paste" new_state=""
45             trigger="USER" before_script="" after_script="">
46 
47  <guard>
48   <guard-role>Manager</guard-role>
49   <guard-role>SectionManager</guard-role>
50   <guard-role>SectionReviewer</guard-role>
51   <guard-role>SectionReader</guard-role>
52  </guard>
53  <transition-behavior behavior_id="allow-sub-move"/>
54  <transition-behavior behavior_id="allow-sub-delete"/>
55  <transition-behavior behavior_id="allow-sub-copy"/>
56 </transition>
57 <transition transition_id="delete_translation"
58             title="Delete a translation" new_state=""
59             trigger="USER"
60             before_script="delete_language_from_proxy"
61             after_script="">
62 
63  <guard>
64   <guard-permission>Modify portal content</guard-permission>
65   <guard-expression>python:not state_change.object.isDefaultLanguage()</guard-expression>
66  </guard>
67 </transition>
68 <transition transition_id="translate"
69             title="Add translation" new_state=""
70             trigger="USER"
71             before_script="add_language_to_proxy"
72             after_script="">
73 
74  <guard>
75   <guard-permission>Modify portal content</guard-permission>
76  </guard>
77 </transition>
78 <script script_id="add_language_to_proxy"
79         type="Script (Python)"
80         filename="workflows/section_folder_wf/scripts/add_language_to_proxy.py"/>
81 <script script_id="delete_language_from_proxy"
82         type="Script (Python)"
83         filename="workflows/section_folder_wf/scripts/delete_language_from_proxy.py"/>
84</cps-workflow>
Note: See TracBrowser for help on using the repository browser.