source: WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml @ 907

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

managed view permission for objection_raised changed

  • Property svn:keywords set to Id
File size: 9.6 KB
Line 
1<?xml version="1.0"?>
2<cps-workflow workflow_id="waeup_student_wf"
3              title="CPS Workflow Definition"
4              state_variable="review_state"
5              meta_type="CPS Workflow">
6 <permission>Modify portal content</permission>
7 <permission>View</permission>
8 <state state_id="admission_applied" title="">
9  <exit-transition transition_id="create_content"/>
10  <exit-transition transition_id="pume_fail"/>
11  <exit-transition transition_id="pume_pass"/>
12 </state>
13 <state state_id="admission_rejected" title="">
14  <exit-transition transition_id="finally_reject"/>
15 </state>
16 <state state_id="admitted" title="">
17  <exit-transition transition_id="create_content"/>
18  <exit-transition transition_id="enter_clearance_pin"/>
19  <exit-transition transition_id="raise_objection"/>
20  <permission-map name="Modify portal content"
21                  acquired="True">
22  </permission-map>
23  <permission-map name="View" acquired="True">
24   <permission-role>Owner</permission-role>
25  </permission-map>
26 </state>
27 <state state_id="application_pin_entered" title="">
28  <exit-transition transition_id="apply_for_admission"/>
29  <exit-transition transition_id="create_content"/>
30  <permission-map name="Modify portal content"
31                  acquired="True">
32  </permission-map>
33  <permission-map name="View" acquired="True">
34   <permission-role>Owner</permission-role>
35  </permission-map>
36 </state>
37 <state state_id="clearance_pin_entered" title="">
38  <exit-transition transition_id="create_content"/>
39  <exit-transition transition_id="request_clearance"/>
40  <permission-map name="Modify portal content"
41                  acquired="True">
42  </permission-map>
43  <permission-map name="View" acquired="True">
44   <permission-role>Owner</permission-role>
45  </permission-map>
46 </state>
47 <state state_id="clearance_requested" title="">
48  <exit-transition transition_id="clear_and_validate"/>
49  <exit-transition transition_id="defer"/>
50  <exit-transition transition_id="reject_clearance"/>
51  <exit-transition transition_id="create_content"/>
52  <permission-map name="Modify portal content"
53                  acquired="True">
54    <permission-role>ClearanceOfficer</permission-role>
55  </permission-map>
56  <permission-map name="View" acquired="True">
57   <permission-role>Owner</permission-role>
58  </permission-map>
59 </state>
60 <state state_id="cleared_and_validated" title="">
61  <exit-transition transition_id="create_content"/>
62  <exit-transition transition_id="reject_clearance"/>
63  <permission-map name="Modify portal content"
64                  acquired="True">
65    <permission-role>ClearanceOfficer</permission-role>
66  </permission-map>
67  <permission-map name="View" acquired="True">
68   <permission-role>Owner</permission-role>
69  </permission-map>
70 </state>
71 <state state_id="deferred" title="">
72  <exit-transition transition_id="admit"/>
73 </state>
74 <state state_id="finally_rejected" title="">
75  <permission-map name="Modify portal content"
76                  acquired="True">
77    <permission-role>ClearanceOfficer</permission-role>
78  </permission-map>
79  <permission-map name="View" acquired="True">
80   <permission-role>Owner</permission-role>
81  </permission-map>
82 </state>
83 <state state_id="objection_raised" title="">
84  <exit-transition transition_id="enter_clearance_pin"/>
85  <permission-map name="View" acquired="True">
86   <permission-role>Owner</permission-role>
87  </permission-map>
88 </state>
89 <state state_id="pume_failed" title="">
90  <exit-transition transition_id="reject_admission"/>
91  <permission-map name="View" acquired="True">
92   <permission-role>Owner</permission-role>
93  </permission-map>
94 </state>
95 <state state_id="pume_passed" title="">
96  <exit-transition transition_id="admit"/>
97  <exit-transition transition_id="reject_admission"/>
98  <permission-map name="View" acquired="True">
99   <permission-role>Owner</permission-role>
100  </permission-map>
101 </state>
102 <state state_id="student_created" title="">
103  <exit-transition transition_id="admit"/>
104  <exit-transition transition_id="clear_and_validate"/>
105  <exit-transition transition_id="create_content"/>
106  <exit-transition transition_id="enter_application_pin"/>
107  <exit-transition transition_id="pume_fail"/>
108  <exit-transition transition_id="pume_pass"/>
109  <exit-transition transition_id="reject_admission"/>
110  <permission-map name="View" acquired="True">
111   <permission-role>Owner</permission-role>
112  </permission-map>
113 </state>
114 <transition transition_id="admit" title=""
115             new_state="admitted" trigger="USER"
116             before_script="" after_script="">
117
118  <guard>
119   <guard-role>ClearanceOfficer</guard-role>
120   <guard-role>Manager</guard-role>
121   <guard-role>SectionManager</guard-role>
122  </guard>
123 </transition>
124 <transition transition_id="apply_for_admission" title=""
125             new_state="admission_applied" trigger="USER"
126             before_script="" after_script="">
127
128  <guard>
129   <guard-role>Owner</guard-role>
130   <guard-role>Manager</guard-role>
131   <guard-role>SectionManager</guard-role>
132  </guard>
133 </transition>
134 <transition transition_id="clear_and_validate" title=""
135             new_state="cleared_and_validated"
136             trigger="USER" before_script="" after_script="">
137
138  <guard>
139   <guard-role>ClearanceOfficer</guard-role>
140   <guard-role>Manager</guard-role>
141   <guard-role>SectionManager</guard-role>
142  </guard>
143 </transition>
144 <transition transition_id="create" title=""
145             new_state="student_created" trigger="USER"
146             before_script="" after_script="">
147
148  <guard>
149  </guard>
150  <transition-behavior behavior_id="allow-sub-create"/>
151  <transition-behavior behavior_id="initial-create"/>
152 </transition>
153 <transition transition_id="create_content" title=""
154             new_state="" trigger="USER" before_script=""
155             after_script="">
156
157  <guard>
158   <guard-role>Owner</guard-role>
159   <guard-role>Manager</guard-role>
160   <guard-role>SectionManager</guard-role>
161  </guard>
162  <transition-behavior behavior_id="allow-sub-create"/>
163 </transition>
164 <transition transition_id="defer" title=""
165             new_state="deferred" trigger="USER"
166             before_script="" after_script="">
167
168  <guard>
169   <guard-role>Owner</guard-role>
170   <guard-role>Manager</guard-role>
171   <guard-role>SectionManager</guard-role>
172  </guard>
173 </transition>
174 <transition transition_id="enter_application_pin" title=""
175             new_state="application_pin_entered"
176             trigger="USER" before_script="" after_script="">
177
178  <guard>
179   <guard-role>Owner</guard-role>
180   <guard-role>Manager</guard-role>
181   <guard-role>SectionManager</guard-role>
182  </guard>
183 </transition>
184 <transition transition_id="enter_clearance_pin" title=""
185             new_state="clearance_pin_entered"
186             trigger="USER" before_script="" after_script="">
187
188  <guard>
189   <guard-role>Owner</guard-role>
190   <guard-role>Manager</guard-role>
191   <guard-role>SectionManager</guard-role>
192  </guard>
193 </transition>
194 <transition transition_id="finally_reject" title=""
195             new_state="finally_rejected" trigger="USER"
196             before_script="" after_script="">
197
198  <guard>
199   <guard-role>ClearanceOfficer</guard-role>
200   <guard-role>Manager</guard-role>
201   <guard-role>SectionManager</guard-role>
202  </guard>
203 </transition>
204 <transition transition_id="pume_fail" title=""
205             new_state="pume_failed" trigger="USER"
206             before_script="" after_script="">
207
208  <guard>
209   <guard-role>ClearanceOfficer</guard-role>
210   <guard-role>Manager</guard-role>
211   <guard-role>SectionManager</guard-role>
212  </guard>
213 </transition>
214 <transition transition_id="pume_pass" title=""
215             new_state="pume_passed" trigger="USER"
216             before_script="" after_script="">
217
218  <guard>
219   <guard-role>ClearanceOfficer</guard-role>
220   <guard-role>Manager</guard-role>
221   <guard-role>SectionManager</guard-role>
222  </guard>
223 </transition>
224 <transition transition_id="raise_objection" title=""
225             new_state="objection_raised" trigger="USER"
226             before_script="" after_script="">
227
228  <guard>
229   <guard-role>Owner</guard-role>
230   <guard-role>ClearanceOfficer</guard-role>
231   <guard-role>Manager</guard-role>
232   <guard-role>SectionManager</guard-role>
233  </guard>
234 </transition>
235 <transition transition_id="reject_admission" title=""
236             new_state="admission_rejected" trigger="USER"
237             before_script="" after_script="">
238
239  <guard>
240   <guard-role>ClearanceOfficer</guard-role>
241   <guard-role>Manager</guard-role>
242   <guard-role>SectionManager</guard-role>
243  </guard>
244 </transition>
245 <transition transition_id="reject_clearance" title=""
246             new_state="clearance_pin_entered"
247             trigger="USER" before_script="" after_script="">
248
249  <guard>
250   <guard-role>ClearanceOfficer</guard-role>
251   <guard-role>Manager</guard-role>
252   <guard-role>SectionManager</guard-role>
253  </guard>
254 </transition>
255 <transition transition_id="request_clearance" title=""
256             new_state="clearance_requested" trigger="USER"
257             before_script="" after_script="">
258
259  <guard>
260   <guard-role>Owner</guard-role>
261   <guard-role>Manager</guard-role>
262   <guard-role>SectionManager</guard-role>
263  </guard>
264 </transition>
265 <variable variable_id="time" for_catalog="True"
266           for_status="True" update_always="True">
267  <description>Time of the last transition</description>
268  <default>
269   <expression>state_change/getDateTime</expression>
270  </default>
271  <guard>
272  </guard>
273 </variable>
274 <script script_id="open_application_personal"
275         type="Script (Python)"
276         filename="workflows/waeup_student_wf/scripts/open_application_personal.py"/>
277</cps-workflow>
Note: See TracBrowser for help on using the repository browser.