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

Last change on this file since 3980 was 3747, checked in by Henrik Bettermann, 16 years ago

provide 'transition admit' button

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