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

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

exit transition added

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