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

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

CouseAdviser? role modifications

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