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

Last change on this file since 2134 was 2092, checked in by Henrik Bettermann, 17 years ago

transition notify_change_courses removed

File size: 16.9 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-role>SectionOfficer</guard-role>
280  </guard>
281  <transition-behavior behavior_id="allow-sub-create"/>
282  <transition-behavior behavior_id="allow-sub-delete"/>
283 </transition>
284 <transition transition_id="defer" title=""
285             new_state="deferred" trigger="USER"
286             before_script="" after_script="">
287 
288  <guard>
289   <guard-role>SectionOfficer</guard-role>
290   <guard-role>Owner</guard-role>
291   <guard-role>Manager</guard-role>
292   <guard-role>SectionManager</guard-role>
293  </guard>
294 </transition>
295 <transition transition_id="enter_application_pin" title=""
296             new_state="application_pin_entered"
297             trigger="USER" before_script="" after_script="">
298 
299  <guard>
300   <guard-role>SectionOfficer</guard-role>
301   <guard-role>Owner</guard-role>
302   <guard-role>Manager</guard-role>
303   <guard-role>SectionManager</guard-role>
304  </guard>
305 </transition>
306 <transition transition_id="enter_clearance_pin" title=""
307             new_state="clearance_pin_entered"
308             trigger="USER" before_script="" after_script="">
309 
310  <guard>
311   <guard-role>SectionOfficer</guard-role>
312   <guard-role>Owner</guard-role>
313   <guard-role>Manager</guard-role>
314   <guard-role>SectionManager</guard-role>
315  </guard>
316 </transition>
317 <transition transition_id="finally_reject" title=""
318             new_state="finally_rejected" trigger="USER"
319             before_script="" after_script="">
320 
321  <guard>
322   <guard-role>SectionOfficer</guard-role>
323   <guard-role>ClearanceOfficer</guard-role>
324   <guard-role>Manager</guard-role>
325   <guard-role>SectionManager</guard-role>
326  </guard>
327 </transition>
328
329 <transition transition_id="pay_school_fee" title=""
330             new_state="school_fee_paid" trigger="USER"
331             before_script="" after_script="">
332 
333  <guard>
334   <guard-role>Manager</guard-role>
335   <guard-role>SectionManager</guard-role>
336   <guard-role>Owner</guard-role>
337   <guard-role>SectionOfficer</guard-role>
338  </guard>
339 </transition>
340 <transition transition_id="pume_fail" title=""
341             new_state="pume_failed" trigger="USER"
342             before_script="" after_script="">
343 
344  <guard>
345   <guard-role>SectionOfficer</guard-role>
346   <guard-role>ClearanceOfficer</guard-role>
347   <guard-role>Manager</guard-role>
348   <guard-role>SectionManager</guard-role>
349  </guard>
350 </transition>
351 <transition transition_id="pume_pass" title=""
352             new_state="pume_passed" trigger="USER"
353             before_script="" after_script="">
354 
355  <guard>
356   <guard-role>SectionOfficer</guard-role>
357   <guard-role>ClearanceOfficer</guard-role>
358   <guard-role>Manager</guard-role>
359   <guard-role>SectionManager</guard-role>
360  </guard>
361 </transition>
362 <transition transition_id="raise_objection" title=""
363             new_state="objection_raised" trigger="USER"
364             before_script="" after_script="">
365 
366  <guard>
367   <guard-role>SectionOfficer</guard-role>
368   <guard-role>Owner</guard-role>
369   <guard-role>ClearanceOfficer</guard-role>
370   <guard-role>Manager</guard-role>
371   <guard-role>SectionManager</guard-role>
372  </guard>
373 </transition>
374 <transition transition_id="register_courses" title=""
375             new_state="courses_registered" trigger="USER"
376             before_script="" after_script="">
377 
378  <guard>
379   <guard-role>CourseAdviser</guard-role>
380   <guard-role>Manager</guard-role>
381   <guard-role>SectionManager</guard-role>
382   <guard-role>Owner</guard-role>
383   <guard-role>SectionOfficer</guard-role>
384  </guard>
385 </transition>
386 <transition transition_id="reject_admission" title=""
387             new_state="admission_rejected" trigger="USER"
388             before_script="" after_script="">
389 
390  <guard>
391   <guard-role>SectionOfficer</guard-role>
392   <guard-role>ClearanceOfficer</guard-role>
393   <guard-role>Manager</guard-role>
394   <guard-role>SectionManager</guard-role>
395  </guard>
396 </transition>
397 <transition transition_id="reject_clearance" title=""
398             new_state="clearance_pin_entered"
399             trigger="USER" before_script="" after_script="">
400 
401  <guard>
402   <guard-role>SectionOfficer</guard-role>
403   <guard-role>ClearanceOfficer</guard-role>
404   <guard-role>Manager</guard-role>
405   <guard-role>SectionManager</guard-role>
406  </guard>
407 </transition>
408 <transition transition_id="reject_courses" title=""
409             new_state="school_fee_paid" trigger="USER"
410             before_script="" after_script="">
411 
412  <guard>
413   <guard-role>CourseAdviser</guard-role>
414   <guard-role>SectionOfficer</guard-role>
415   <guard-role>Manager</guard-role>
416   <guard-role>SectionManager</guard-role>
417  </guard>
418 </transition>
419 <transition transition_id="request_clearance" title=""
420             new_state="clearance_requested" trigger="USER"
421             before_script="" after_script="">
422 
423  <guard>
424   <guard-role>SectionOfficer</guard-role>
425   <guard-role>Owner</guard-role>
426   <guard-role>Manager</guard-role>
427   <guard-role>SectionManager</guard-role>
428  </guard>
429 </transition>
430 <transition transition_id="return" title=""
431             new_state="returning" trigger="USER"
432             before_script="" after_script="">
433 
434  <guard>
435   <guard-role>SectionOfficer</guard-role>
436   <guard-role>Manager</guard-role>
437   <guard-role>SectionManager</guard-role>
438  </guard>
439 </transition>
440 <transition transition_id="validate_courses" title=""
441             new_state="courses_validated" trigger="USER"
442             before_script="" after_script="">
443 
444  <guard>
445   <guard-role>CourseAdviser</guard-role>
446   <guard-role>SectionOfficer</guard-role>
447   <guard-role>Manager</guard-role>
448   <guard-role>SectionManager</guard-role>
449  </guard>
450 </transition>
451 <variable variable_id="time" for_catalog="True"
452           for_status="True" update_always="True">
453  <description>Time of the last transition</description>
454  <default>
455   
456   <expression>state_change/getDateTime</expression>
457  </default>
458  <guard>
459  </guard>
460 </variable>
461 <script script_id="open_application_personal"
462         type="Script (Python)"
463         filename="workflows/waeup_student_wf/scripts/open_application_personal.py"/>
464</cps-workflow>
Note: See TracBrowser for help on using the repository browser.