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

Last change on this file since 14580 was 8269, checked in by Henrik Bettermann, 13 years ago

Disable raising objection on all portals.

File size: 16.3 KB
Line 
1<?xml version="1.0"?>
2<?xml-stylesheet type="text/xsl" href="../definition.xsl"?>
3<cps-workflow workflow_id="waeup_student_wf"
4              title="CPS Workflow Definition"
5              state_variable="review_state"
6              meta_type="CPS Workflow">
7 <permission>Delete objects</permission>
8 <permission>Modify portal content</permission>
9 <permission>View</permission>
10 <state state_id="admitted" title="">
11  <exit-transition transition_id="create_content"/>
12  <exit-transition transition_id="enter_clearance_pin"/>
13  <exit-transition transition_id="deactivate"/>
14  <permission-map name="Delete objects" acquired="False">
15   <permission-role>Manager</permission-role>
16   <permission-role>SectionManager</permission-role>
17  </permission-map>
18  <permission-map name="Modify portal content"
19                  acquired="True">
20  </permission-map>
21  <permission-map name="View" acquired="True">
22   <permission-role>Owner</permission-role>
23   <permission-role>SectionOfficer</permission-role>
24  </permission-map>
25 </state>
26 <state state_id="clearance_pin_entered" title="">
27  <exit-transition transition_id="create_content"/>
28  <exit-transition transition_id="request_clearance"/>
29  <exit-transition transition_id="deactivate"/>
30  <permission-map name="Delete objects" acquired="False">
31   <permission-role>Manager</permission-role>
32   <permission-role>SectionManager</permission-role>
33  </permission-map>
34  <permission-map name="Modify portal content"
35                  acquired="True">
36   <permission-role>SectionOfficer</permission-role>
37  </permission-map>
38  <permission-map name="View" acquired="True">
39   <permission-role>Owner</permission-role>
40   <permission-role>SectionOfficer</permission-role>
41  </permission-map>
42 </state>
43 <state state_id="clearance_requested" title="">
44  <exit-transition transition_id="clear_and_validate"/>
45  <exit-transition transition_id="create_content"/>
46  <exit-transition transition_id="reject_clearance"/>
47  <exit-transition transition_id="deactivate"/>
48  <permission-map name="Delete objects" acquired="False">
49   <permission-role>Manager</permission-role>
50   <permission-role>SectionManager</permission-role>
51  </permission-map>
52  <permission-map name="Modify portal content"
53                  acquired="True">
54   <permission-role>ClearanceOfficer</permission-role>
55   <permission-role>SectionOfficer</permission-role>
56  </permission-map>
57  <permission-map name="View" acquired="True">
58   <permission-role>Owner</permission-role>
59   <permission-role>SectionOfficer</permission-role>
60  </permission-map>
61 </state>
62 <state state_id="cleared_and_validated" title="">
63  <exit-transition transition_id="create_content"/>
64  <exit-transition transition_id="defer"/>
65  <exit-transition transition_id="pay_school_fee"/>
66  <exit-transition transition_id="reject_clearance"/>
67  <exit-transition transition_id="deactivate"/>
68  <permission-map name="Delete objects" acquired="False">
69   <permission-role>Manager</permission-role>
70   <permission-role>SectionManager</permission-role>
71  </permission-map>
72  <permission-map name="Modify portal content"
73                  acquired="True">
74   <permission-role>ClearanceOfficer</permission-role>
75   <permission-role>SectionOfficer</permission-role>
76  </permission-map>
77  <permission-map name="View" acquired="True">
78   <permission-role>Owner</permission-role>
79   <permission-role>SectionOfficer</permission-role>
80  </permission-map>
81 </state>
82 <state state_id="courses_registered" title="">
83  <exit-transition transition_id="reject_courses"/>
84  <exit-transition transition_id="validate_courses"/>
85  <exit-transition transition_id="deactivate"/>
86  <exit-transition transition_id="create_content"/>
87  <exit-transition transition_id="graduate"/>
88  <permission-map name="Delete objects" acquired="False">
89   <permission-role>Manager</permission-role>
90   <permission-role>SectionManager</permission-role>
91  </permission-map>
92  <permission-map name="Modify portal content"
93                  acquired="True">
94  </permission-map>
95  <permission-map name="View" acquired="True">
96   <permission-role>Owner</permission-role>
97   <permission-role>SectionOfficer</permission-role>
98  </permission-map>
99 </state>
100 <state state_id="courses_validated" title="">
101  <exit-transition transition_id="reject_courses"/>
102  <exit-transition transition_id="deactivate"/>
103  <exit-transition transition_id="create_content"/>
104  <exit-transition transition_id="return"/>
105  <exit-transition transition_id="graduate"/>
106  <permission-map name="Delete objects" acquired="False">
107   <permission-role>Manager</permission-role>
108   <permission-role>SectionManager</permission-role>
109  </permission-map>
110  <permission-map name="Modify portal content"
111                  acquired="True">
112  </permission-map>
113  <permission-map name="View" acquired="True">
114   <permission-role>Owner</permission-role>
115   <permission-role>SectionOfficer</permission-role>
116  </permission-map>
117 </state>
118 <state state_id="deactivated" title="">
119  <exit-transition transition_id="return"/>
120  <exit-transition transition_id="graduate"/>
121  <permission-map name="Delete objects" acquired="True">
122   <permission-role>Manager</permission-role>
123   <permission-role>SectionManager</permission-role>
124   <permission-role>SectionOfficer</permission-role>
125  </permission-map>
126  <permission-map name="Modify portal content"
127                  acquired="False">
128   <permission-role>Manager</permission-role>
129   <permission-role>SectionManager</permission-role>
130   <permission-role>SectionOfficer</permission-role>
131  </permission-map>
132  <permission-map name="View" acquired="True">
133   <permission-role>Owner</permission-role>
134  </permission-map>
135 </state>
136 <state state_id="graduated" title="">
137  <exit-transition transition_id="return"/>
138  <permission-map name="Delete objects" acquired="True">
139   <permission-role>Manager</permission-role>
140   <permission-role>SectionManager</permission-role>
141   <permission-role>SectionOfficer</permission-role>
142  </permission-map>
143  <permission-map name="Modify portal content"
144                  acquired="False">
145   <permission-role>Manager</permission-role>
146   <permission-role>SectionManager</permission-role>
147   <permission-role>SectionOfficer</permission-role>
148  </permission-map>
149  <permission-map name="View" acquired="True">
150   <permission-role>Owner</permission-role>
151  </permission-map>
152 </state>
153 <state state_id="deferred" title="">
154  <exit-transition transition_id="deactivate"/>
155  <permission-map name="Delete objects" acquired="False">
156   <permission-role>Manager</permission-role>
157   <permission-role>SectionManager</permission-role>
158  </permission-map>
159  <permission-map name="Modify portal content"
160                  acquired="True">
161   <permission-role>SectionOfficer</permission-role>
162  </permission-map>
163  <permission-map name="View" acquired="True">
164   <permission-role>SectionOfficer</permission-role>
165  </permission-map>
166 </state>
167 <state state_id="objection_raised" title="">
168  <exit-transition transition_id="enter_clearance_pin"/>
169  <exit-transition transition_id="create_content"/>
170  <exit-transition transition_id="deactivate"/>
171  <exit-transition transition_id="admit"/>
172  <permission-map name="Delete objects" acquired="False">
173   <permission-role>Manager</permission-role>
174   <permission-role>SectionManager</permission-role>
175  </permission-map>
176  <permission-map name="Modify portal content"
177                  acquired="True">
178   <permission-role>SectionOfficer</permission-role>
179  </permission-map>
180  <permission-map name="View" acquired="True">
181   <permission-role>Owner</permission-role>
182   <permission-role>SectionOfficer</permission-role>
183  </permission-map>
184 </state>
185 <state state_id="returning" title="">
186  <exit-transition transition_id="create_content"/>
187  <exit-transition transition_id="deactivate"/>
188  <exit-transition transition_id="pay_school_fee"/>
189  <exit-transition transition_id="graduate"/>
190  <exit-transition transition_id="admit"/>
191  <permission-map name="Delete objects" acquired="False">
192   <permission-role>Manager</permission-role>
193   <permission-role>SectionManager</permission-role>
194  </permission-map>
195  <permission-map name="Modify portal content"
196                  acquired="True">
197  </permission-map>
198  <permission-map name="View" acquired="True">
199   <permission-role>Owner</permission-role>
200   <permission-role>SectionOfficer</permission-role>
201  </permission-map>
202 </state>
203 <state state_id="school_fee_paid" title="">
204  <exit-transition transition_id="create_content"/>
205  <exit-transition transition_id="register_courses"/>
206  <exit-transition transition_id="deactivate"/>
207  <exit-transition transition_id="return"/>
208  <exit-transition transition_id="graduate"/>
209  <permission-map name="Delete objects" acquired="False">
210   <permission-role>Manager</permission-role>
211   <permission-role>SectionManager</permission-role>
212  </permission-map>
213  <permission-map name="Modify portal content"
214                  acquired="True">
215  </permission-map>
216  <permission-map name="View" acquired="True">
217   <permission-role>Owner</permission-role>
218   <permission-role>SectionOfficer</permission-role>
219  </permission-map>
220 </state>
221 <state state_id="student_created" title="">
222  <exit-transition transition_id="admit"/>
223  <exit-transition transition_id="create_content"/>
224  <exit-transition transition_id="enter_application_pin"/>
225  <exit-transition transition_id="return"/>
226  <exit-transition transition_id="deactivate"/>
227  <exit-transition transition_id="pay_school_fee"/>
228  <exit-transition transition_id="graduate"/>
229  <permission-map name="Delete objects" acquired="False">
230   <permission-role>Manager</permission-role>
231   <permission-role>SectionManager</permission-role>
232  </permission-map>
233  <permission-map name="Modify portal content"
234                  acquired="True">
235   <permission-role>SectionOfficer</permission-role>
236  </permission-map>
237  <permission-map name="View" acquired="True">
238   <permission-role>Owner</permission-role>
239   <permission-role>SectionOfficer</permission-role>
240  </permission-map>
241 </state>
242 <transition transition_id="admit" title=""
243             new_state="admitted" trigger="USER"
244             before_script="" after_script="">
245
246
247  <guard>
248   <guard-role>SectionOfficer</guard-role>
249   <guard-role>ClearanceOfficer</guard-role>
250   <guard-role>Manager</guard-role>
251   <guard-role>SectionManager</guard-role>
252   <guard-role>Owner</guard-role>
253  </guard>
254 </transition>
255 <transition transition_id="clear_and_validate" title=""
256             new_state="cleared_and_validated"
257             trigger="USER" before_script="" after_script="">
258
259
260  <guard>
261   <guard-role>SectionOfficer</guard-role>
262   <guard-role>ClearanceOfficer</guard-role>
263   <guard-role>Manager</guard-role>
264   <guard-role>SectionManager</guard-role>
265  </guard>
266 </transition>
267 <transition transition_id="create" title="Initial creation"
268             new_state="student_created" trigger="USER"
269             before_script="" after_script="">
270
271
272  <guard>
273   <guard-role>Manager</guard-role>
274   <guard-role>SectionManager</guard-role>
275   <guard-role>SectionOfficer</guard-role>
276  </guard>
277  <transition-behavior behavior_id="allow-sub-create"/>
278  <transition-behavior behavior_id="initial-create"/>
279 </transition>
280 <transition transition_id="create_content" title=""
281             new_state="" trigger="USER" before_script=""
282             after_script="">
283
284
285  <guard>
286   <guard-role>Manager</guard-role>
287   <guard-role>SectionManager</guard-role>
288   <guard-role>Owner</guard-role>
289   <guard-role>SectionOfficer</guard-role>
290  </guard>
291  <transition-behavior behavior_id="allow-sub-create"/>
292  <transition-behavior behavior_id="allow-sub-delete"/>
293 </transition>
294 <transition transition_id="deactivate" title=""
295             new_state="deactivated" trigger="USER"
296             before_script="" after_script="">
297
298
299  <guard>
300   <guard-role>SectionOfficer</guard-role>
301   <guard-role>Manager</guard-role>
302   <guard-role>SectionManager</guard-role>
303  </guard>
304 </transition>
305 <transition transition_id="graduate" title=""
306             new_state="graduated" trigger="USER"
307             before_script="" after_script="">
308
309
310  <guard>
311   <guard-role>SectionOfficer</guard-role>
312   <guard-role>Manager</guard-role>
313   <guard-role>SectionManager</guard-role>
314  </guard>
315 </transition>
316 <transition transition_id="defer" title=""
317             new_state="deferred" trigger="USER"
318             before_script="" after_script="">
319
320
321  <guard>
322   <guard-role>SectionOfficer</guard-role>
323   <guard-role>Owner</guard-role>
324   <guard-role>Manager</guard-role>
325   <guard-role>SectionManager</guard-role>
326  </guard>
327 </transition>
328 <transition transition_id="enter_clearance_pin" title=""
329             new_state="clearance_pin_entered"
330             trigger="USER" before_script="" after_script="">
331
332
333  <guard>
334   <guard-role>SectionOfficer</guard-role>
335   <guard-role>Owner</guard-role>
336   <guard-role>Manager</guard-role>
337   <guard-role>SectionManager</guard-role>
338  </guard>
339 </transition>
340 <transition transition_id="pay_school_fee" title=""
341             new_state="school_fee_paid" trigger="USER"
342             before_script="" after_script="">
343
344
345  <guard>
346   <guard-role>Manager</guard-role>
347   <guard-role>SectionManager</guard-role>
348   <guard-role>Owner</guard-role>
349   <guard-role>SectionOfficer</guard-role>
350  </guard>
351 </transition>
352 <transition transition_id="raise_objection" title=""
353             new_state="objection_raised" trigger="USER"
354             before_script="" after_script="">
355
356
357  <guard>
358   <guard-role>SectionOfficer</guard-role>
359   <guard-role>Owner</guard-role>
360   <guard-role>ClearanceOfficer</guard-role>
361   <guard-role>Manager</guard-role>
362   <guard-role>SectionManager</guard-role>
363  </guard>
364 </transition>
365 <transition transition_id="register_courses" title=""
366             new_state="courses_registered" trigger="USER"
367             before_script="" after_script="">
368
369
370  <guard>
371   <guard-role>CourseAdviser</guard-role>
372   <guard-role>Manager</guard-role>
373   <guard-role>SectionManager</guard-role>
374   <guard-role>Owner</guard-role>
375   <guard-role>SectionOfficer</guard-role>
376  </guard>
377 </transition>
378 <transition transition_id="reject_clearance" title=""
379             new_state="clearance_pin_entered"
380             trigger="USER" before_script="" after_script="">
381
382
383  <guard>
384   <guard-role>SectionOfficer</guard-role>
385   <guard-role>ClearanceOfficer</guard-role>
386   <guard-role>Manager</guard-role>
387   <guard-role>SectionManager</guard-role>
388  </guard>
389 </transition>
390 <transition transition_id="reject_courses" title=""
391             new_state="school_fee_paid" trigger="USER"
392             before_script="" after_script="">
393
394
395  <guard>
396   <guard-role>CourseAdviser</guard-role>
397   <guard-role>SectionOfficer</guard-role>
398   <guard-role>Manager</guard-role>
399   <guard-role>SectionManager</guard-role>
400  </guard>
401 </transition>
402 <transition transition_id="request_clearance" title=""
403             new_state="clearance_requested" trigger="USER"
404             before_script="" after_script="">
405
406
407  <guard>
408   <guard-role>SectionOfficer</guard-role>
409   <guard-role>Owner</guard-role>
410   <guard-role>Manager</guard-role>
411   <guard-role>SectionManager</guard-role>
412  </guard>
413 </transition>
414 <transition transition_id="return" title=""
415             new_state="returning" trigger="USER"
416             before_script="" after_script="">
417
418
419  <guard>
420   <guard-role>SectionOfficer</guard-role>
421   <guard-role>Manager</guard-role>
422   <guard-role>SectionManager</guard-role>
423  </guard>
424 </transition>
425 <transition transition_id="validate_courses" title=""
426             new_state="courses_validated" trigger="USER"
427             before_script="" after_script="">
428
429
430  <guard>
431   <guard-role>CourseAdviser</guard-role>
432   <guard-role>SectionOfficer</guard-role>
433   <guard-role>Manager</guard-role>
434   <guard-role>SectionManager</guard-role>
435  </guard>
436 </transition>
437 <variable variable_id="time" for_catalog="True"
438           for_status="True" update_always="True">
439  <description>Time of the last transition</description>
440  <default>
441
442   <expression>state_change/getDateTime</expression>
443  </default>
444  <guard>
445  </guard>
446 </variable>
447 <script script_id="open_application_personal"
448         type="Script (Python)"
449         filename="workflows/waeup_student_wf/scripts/open_application_personal.py"/>
450</cps-workflow>
Note: See TracBrowser for help on using the repository browser.