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

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

export student_study_levels
export payments
create file for reimport

File size: 16.4 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  <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.