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

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

allow transition 'pay_school_fee' by import

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  <permission-map name="Delete objects" acquired="False">
191   <permission-role>Manager</permission-role>
192   <permission-role>SectionManager</permission-role>
193  </permission-map>
194  <permission-map name="Modify portal content"
195                  acquired="True">
196  </permission-map>
197  <permission-map name="View" acquired="True">
198   <permission-role>Owner</permission-role>
199   <permission-role>SectionOfficer</permission-role>
200  </permission-map>
201 </state>
202 <state state_id="school_fee_paid" title="">
203  <exit-transition transition_id="create_content"/>
204  <exit-transition transition_id="register_courses"/>
205  <exit-transition transition_id="deactivate"/>
206  <exit-transition transition_id="return"/>
207  <exit-transition transition_id="graduate"/>
208  <permission-map name="Delete objects" acquired="False">
209   <permission-role>Manager</permission-role>
210   <permission-role>SectionManager</permission-role>
211  </permission-map>
212  <permission-map name="Modify portal content"
213                  acquired="True">
214  </permission-map>
215  <permission-map name="View" acquired="True">
216   <permission-role>Owner</permission-role>
217   <permission-role>SectionOfficer</permission-role>
218  </permission-map>
219 </state>
220 <state state_id="student_created" title="">
221  <exit-transition transition_id="admit"/>
222  <exit-transition transition_id="create_content"/>
223  <exit-transition transition_id="enter_application_pin"/>
224  <exit-transition transition_id="return"/>
225  <exit-transition transition_id="deactivate"/>
226  <exit-transition transition_id="pay_school_fee"/>
227  <permission-map name="Delete objects" acquired="False">
228   <permission-role>Manager</permission-role>
229   <permission-role>SectionManager</permission-role>
230  </permission-map>
231  <permission-map name="Modify portal content"
232                  acquired="True">
233   <permission-role>SectionOfficer</permission-role>
234  </permission-map>
235  <permission-map name="View" acquired="True">
236   <permission-role>Owner</permission-role>
237   <permission-role>SectionOfficer</permission-role>
238  </permission-map>
239 </state>
240 <transition transition_id="admit" title=""
241             new_state="admitted" trigger="USER"
242             before_script="" after_script="">
243
244
245  <guard>
246   <guard-role>SectionOfficer</guard-role>
247   <guard-role>ClearanceOfficer</guard-role>
248   <guard-role>Manager</guard-role>
249   <guard-role>SectionManager</guard-role>
250   <guard-role>Owner</guard-role>
251  </guard>
252 </transition>
253 <transition transition_id="clear_and_validate" title=""
254             new_state="cleared_and_validated"
255             trigger="USER" before_script="" after_script="">
256
257
258  <guard>
259   <guard-role>SectionOfficer</guard-role>
260   <guard-role>ClearanceOfficer</guard-role>
261   <guard-role>Manager</guard-role>
262   <guard-role>SectionManager</guard-role>
263  </guard>
264 </transition>
265 <transition transition_id="create" title="Initial creation"
266             new_state="student_created" trigger="USER"
267             before_script="" after_script="">
268
269
270  <guard>
271   <guard-role>Manager</guard-role>
272   <guard-role>SectionManager</guard-role>
273   <guard-role>SectionOfficer</guard-role>
274  </guard>
275  <transition-behavior behavior_id="allow-sub-create"/>
276  <transition-behavior behavior_id="initial-create"/>
277 </transition>
278 <transition transition_id="create_content" title=""
279             new_state="" trigger="USER" before_script=""
280             after_script="">
281
282
283  <guard>
284   <guard-role>Manager</guard-role>
285   <guard-role>SectionManager</guard-role>
286   <guard-role>Owner</guard-role>
287   <guard-role>SectionOfficer</guard-role>
288  </guard>
289  <transition-behavior behavior_id="allow-sub-create"/>
290  <transition-behavior behavior_id="allow-sub-delete"/>
291 </transition>
292 <transition transition_id="deactivate" title=""
293             new_state="deactivated" trigger="USER"
294             before_script="" after_script="">
295
296
297  <guard>
298   <guard-role>SectionOfficer</guard-role>
299   <guard-role>Manager</guard-role>
300   <guard-role>SectionManager</guard-role>
301  </guard>
302 </transition>
303 <transition transition_id="graduate" title=""
304             new_state="graduated" trigger="USER"
305             before_script="" after_script="">
306
307
308  <guard>
309   <guard-role>SectionOfficer</guard-role>
310   <guard-role>Manager</guard-role>
311   <guard-role>SectionManager</guard-role>
312  </guard>
313 </transition>
314 <transition transition_id="defer" title=""
315             new_state="deferred" trigger="USER"
316             before_script="" after_script="">
317
318
319  <guard>
320   <guard-role>SectionOfficer</guard-role>
321   <guard-role>Owner</guard-role>
322   <guard-role>Manager</guard-role>
323   <guard-role>SectionManager</guard-role>
324  </guard>
325 </transition>
326 <transition transition_id="enter_clearance_pin" title=""
327             new_state="clearance_pin_entered"
328             trigger="USER" before_script="" after_script="">
329
330
331  <guard>
332   <guard-role>SectionOfficer</guard-role>
333   <guard-role>Owner</guard-role>
334   <guard-role>Manager</guard-role>
335   <guard-role>SectionManager</guard-role>
336  </guard>
337 </transition>
338 <transition transition_id="pay_school_fee" title=""
339             new_state="school_fee_paid" trigger="USER"
340             before_script="" after_script="">
341
342
343  <guard>
344   <guard-role>Manager</guard-role>
345   <guard-role>SectionManager</guard-role>
346   <guard-role>Owner</guard-role>
347   <guard-role>SectionOfficer</guard-role>
348  </guard>
349 </transition>
350 <transition transition_id="raise_objection" title=""
351             new_state="objection_raised" trigger="USER"
352             before_script="" after_script="">
353
354
355  <guard>
356   <guard-role>SectionOfficer</guard-role>
357   <guard-role>Owner</guard-role>
358   <guard-role>ClearanceOfficer</guard-role>
359   <guard-role>Manager</guard-role>
360   <guard-role>SectionManager</guard-role>
361  </guard>
362 </transition>
363 <transition transition_id="register_courses" title=""
364             new_state="courses_registered" trigger="USER"
365             before_script="" after_script="">
366
367
368  <guard>
369   <guard-role>CourseAdviser</guard-role>
370   <guard-role>Manager</guard-role>
371   <guard-role>SectionManager</guard-role>
372   <guard-role>Owner</guard-role>
373   <guard-role>SectionOfficer</guard-role>
374  </guard>
375 </transition>
376 <transition transition_id="reject_clearance" title=""
377             new_state="clearance_pin_entered"
378             trigger="USER" before_script="" after_script="">
379
380
381  <guard>
382   <guard-role>SectionOfficer</guard-role>
383   <guard-role>ClearanceOfficer</guard-role>
384   <guard-role>Manager</guard-role>
385   <guard-role>SectionManager</guard-role>
386  </guard>
387 </transition>
388 <transition transition_id="reject_courses" title=""
389             new_state="school_fee_paid" trigger="USER"
390             before_script="" after_script="">
391
392
393  <guard>
394   <guard-role>CourseAdviser</guard-role>
395   <guard-role>SectionOfficer</guard-role>
396   <guard-role>Manager</guard-role>
397   <guard-role>SectionManager</guard-role>
398  </guard>
399 </transition>
400 <transition transition_id="request_clearance" title=""
401             new_state="clearance_requested" trigger="USER"
402             before_script="" after_script="">
403
404
405  <guard>
406   <guard-role>SectionOfficer</guard-role>
407   <guard-role>Owner</guard-role>
408   <guard-role>Manager</guard-role>
409   <guard-role>SectionManager</guard-role>
410  </guard>
411 </transition>
412 <transition transition_id="return" title=""
413             new_state="returning" trigger="USER"
414             before_script="" after_script="">
415
416
417  <guard>
418   <guard-role>SectionOfficer</guard-role>
419   <guard-role>Manager</guard-role>
420   <guard-role>SectionManager</guard-role>
421  </guard>
422 </transition>
423 <transition transition_id="validate_courses" title=""
424             new_state="courses_validated" trigger="USER"
425             before_script="" after_script="">
426
427
428  <guard>
429   <guard-role>CourseAdviser</guard-role>
430   <guard-role>SectionOfficer</guard-role>
431   <guard-role>Manager</guard-role>
432   <guard-role>SectionManager</guard-role>
433  </guard>
434 </transition>
435 <variable variable_id="time" for_catalog="True"
436           for_status="True" update_always="True">
437  <description>Time of the last transition</description>
438  <default>
439
440   <expression>state_change/getDateTime</expression>
441  </default>
442  <guard>
443  </guard>
444 </variable>
445 <script script_id="open_application_personal"
446         type="Script (Python)"
447         filename="workflows/waeup_student_wf/scripts/open_application_personal.py"/>
448</cps-workflow>
Note: See TracBrowser for help on using the repository browser.