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

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

New BASE and EXTENSION profiles

File size: 15.1 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  <permission-map name="Delete objects" acquired="False">
89   <permission-role>Manager</permission-role>
90   <permission-role>SectionManager</permission-role>
91  </permission-map>
92  <permission-map name="Modify portal content"
93                  acquired="True">
94  </permission-map>
95  <permission-map name="View" acquired="True">
96   <permission-role>Owner</permission-role>
97   <permission-role>SectionOfficer</permission-role>
98  </permission-map>
99 </state>
100 <state state_id="courses_validated" title="">
101  <exit-transition transition_id="reject_courses"/>
102  <exit-transition transition_id="deactivate"/>
103  <exit-transition transition_id="create_content"/>
104  <exit-transition transition_id="return"/>
105  <permission-map name="Delete objects" acquired="False">
106   <permission-role>Manager</permission-role>
107   <permission-role>SectionManager</permission-role>
108  </permission-map>
109  <permission-map name="Modify portal content"
110                  acquired="True">
111  </permission-map>
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="deactivated" title="">
118  <exit-transition transition_id="return"/>
119  <permission-map name="Delete objects" acquired="True">
120   <permission-role>Manager</permission-role>
121   <permission-role>SectionManager</permission-role>
122   <permission-role>SectionOfficer</permission-role>
123  </permission-map>
124  <permission-map name="Modify portal content"
125                  acquired="False">
126   <permission-role>Manager</permission-role>
127   <permission-role>SectionManager</permission-role>
128   <permission-role>SectionOfficer</permission-role>
129  </permission-map>
130  <permission-map name="View" acquired="True">
131   <permission-role>Owner</permission-role>
132  </permission-map>
133 </state>
134 <state state_id="deferred" title="">
135  <exit-transition transition_id="deactivate"/>
136  <permission-map name="Delete objects" acquired="False">
137   <permission-role>Manager</permission-role>
138   <permission-role>SectionManager</permission-role>
139  </permission-map>
140  <permission-map name="Modify portal content"
141                  acquired="True">
142   <permission-role>SectionOfficer</permission-role>
143  </permission-map>
144  <permission-map name="View" acquired="True">
145   <permission-role>SectionOfficer</permission-role>
146  </permission-map>
147 </state>
148 <state state_id="objection_raised" title="">
149  <exit-transition transition_id="enter_clearance_pin"/>
150  <exit-transition transition_id="create_content"/>
151  <exit-transition transition_id="deactivate"/>
152  <permission-map name="Delete objects" acquired="False">
153   <permission-role>Manager</permission-role>
154   <permission-role>SectionManager</permission-role>
155  </permission-map>
156  <permission-map name="Modify portal content"
157                  acquired="True">
158   <permission-role>SectionOfficer</permission-role>
159  </permission-map>
160  <permission-map name="View" acquired="True">
161   <permission-role>Owner</permission-role>
162   <permission-role>SectionOfficer</permission-role>
163  </permission-map>
164 </state>
165 <state state_id="returning" title="">
166  <exit-transition transition_id="create_content"/>
167  <exit-transition transition_id="deactivate"/>
168  <exit-transition transition_id="pay_school_fee"/>
169  <permission-map name="Delete objects" acquired="False">
170   <permission-role>Manager</permission-role>
171   <permission-role>SectionManager</permission-role>
172  </permission-map>
173  <permission-map name="Modify portal content"
174                  acquired="True">
175  </permission-map>
176  <permission-map name="View" acquired="True">
177   <permission-role>Owner</permission-role>
178   <permission-role>SectionOfficer</permission-role>
179  </permission-map>
180 </state>
181 <state state_id="school_fee_paid" title="">
182  <exit-transition transition_id="create_content"/>
183  <exit-transition transition_id="register_courses"/>
184  <exit-transition transition_id="deactivate"/>
185  <exit-transition transition_id="return"/>
186  <permission-map name="Delete objects" acquired="False">
187   <permission-role>Manager</permission-role>
188   <permission-role>SectionManager</permission-role>
189  </permission-map>
190  <permission-map name="Modify portal content"
191                  acquired="True">
192  </permission-map>
193  <permission-map name="View" acquired="True">
194   <permission-role>Owner</permission-role>
195   <permission-role>SectionOfficer</permission-role>
196  </permission-map>
197 </state>
198 <state state_id="student_created" title="">
199  <exit-transition transition_id="admit"/>
200  <exit-transition transition_id="create_content"/>
201  <exit-transition transition_id="enter_application_pin"/>
202  <exit-transition transition_id="pume_fail"/>
203  <exit-transition transition_id="pume_pass"/>
204  <exit-transition transition_id="reject_admission"/>
205  <exit-transition transition_id="return"/>
206  <exit-transition transition_id="deactivate"/>
207  <permission-map name="Delete objects" acquired="False">
208   <permission-role>Manager</permission-role>
209   <permission-role>SectionManager</permission-role>
210  </permission-map>
211  <permission-map name="Modify portal content"
212                  acquired="True">
213   <permission-role>SectionOfficer</permission-role>
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 <transition transition_id="admit" title=""
221             new_state="admitted" trigger="USER"
222             before_script="" after_script="">
223
224
225  <guard>
226   <guard-role>SectionOfficer</guard-role>
227   <guard-role>ClearanceOfficer</guard-role>
228   <guard-role>Manager</guard-role>
229   <guard-role>SectionManager</guard-role>
230   <guard-role>Owner</guard-role>
231  </guard>
232 </transition>
233 <transition transition_id="clear_and_validate" title=""
234             new_state="cleared_and_validated"
235             trigger="USER" before_script="" after_script="">
236
237
238  <guard>
239   <guard-role>SectionOfficer</guard-role>
240   <guard-role>ClearanceOfficer</guard-role>
241   <guard-role>Manager</guard-role>
242   <guard-role>SectionManager</guard-role>
243  </guard>
244 </transition>
245 <transition transition_id="create" title="Initial creation"
246             new_state="student_created" trigger="USER"
247             before_script="" after_script="">
248
249
250  <guard>
251   <guard-role>Manager</guard-role>
252   <guard-role>SectionManager</guard-role>
253   <guard-role>SectionOfficer</guard-role>
254  </guard>
255  <transition-behavior behavior_id="allow-sub-create"/>
256  <transition-behavior behavior_id="initial-create"/>
257 </transition>
258 <transition transition_id="create_content" title=""
259             new_state="" trigger="USER" before_script=""
260             after_script="">
261
262
263  <guard>
264   <guard-role>Manager</guard-role>
265   <guard-role>SectionManager</guard-role>
266   <guard-role>Owner</guard-role>
267   <guard-role>SectionOfficer</guard-role>
268  </guard>
269  <transition-behavior behavior_id="allow-sub-create"/>
270  <transition-behavior behavior_id="allow-sub-delete"/>
271 </transition>
272 <transition transition_id="deactivate" title=""
273             new_state="deactivated" trigger="USER"
274             before_script="" after_script="">
275
276
277  <guard>
278   <guard-role>SectionOfficer</guard-role>
279   <guard-role>Manager</guard-role>
280   <guard-role>SectionManager</guard-role>
281  </guard>
282 </transition>
283 <transition transition_id="defer" title=""
284             new_state="deferred" trigger="USER"
285             before_script="" after_script="">
286
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_clearance_pin" title=""
296             new_state="clearance_pin_entered"
297             trigger="USER" before_script="" after_script="">
298
299
300  <guard>
301   <guard-role>SectionOfficer</guard-role>
302   <guard-role>Owner</guard-role>
303   <guard-role>Manager</guard-role>
304   <guard-role>SectionManager</guard-role>
305  </guard>
306 </transition>
307 <transition transition_id="pay_school_fee" title=""
308             new_state="school_fee_paid" trigger="USER"
309             before_script="" after_script="">
310
311
312  <guard>
313   <guard-role>Manager</guard-role>
314   <guard-role>SectionManager</guard-role>
315   <guard-role>Owner</guard-role>
316   <guard-role>SectionOfficer</guard-role>
317  </guard>
318 </transition>
319 <transition transition_id="raise_objection" title=""
320             new_state="objection_raised" trigger="USER"
321             before_script="" after_script="">
322
323
324  <guard>
325   <guard-role>SectionOfficer</guard-role>
326   <guard-role>Owner</guard-role>
327   <guard-role>ClearanceOfficer</guard-role>
328   <guard-role>Manager</guard-role>
329   <guard-role>SectionManager</guard-role>
330  </guard>
331 </transition>
332 <transition transition_id="register_courses" title=""
333             new_state="courses_registered" trigger="USER"
334             before_script="" after_script="">
335
336
337  <guard>
338   <guard-role>CourseAdviser</guard-role>
339   <guard-role>Manager</guard-role>
340   <guard-role>SectionManager</guard-role>
341   <guard-role>Owner</guard-role>
342   <guard-role>SectionOfficer</guard-role>
343  </guard>
344 </transition>
345 <transition transition_id="reject_clearance" title=""
346             new_state="clearance_pin_entered"
347             trigger="USER" before_script="" after_script="">
348
349
350  <guard>
351   <guard-role>SectionOfficer</guard-role>
352   <guard-role>ClearanceOfficer</guard-role>
353   <guard-role>Manager</guard-role>
354   <guard-role>SectionManager</guard-role>
355  </guard>
356 </transition>
357 <transition transition_id="reject_courses" title=""
358             new_state="school_fee_paid" trigger="USER"
359             before_script="" after_script="">
360
361
362  <guard>
363   <guard-role>CourseAdviser</guard-role>
364   <guard-role>SectionOfficer</guard-role>
365   <guard-role>Manager</guard-role>
366   <guard-role>SectionManager</guard-role>
367  </guard>
368 </transition>
369 <transition transition_id="request_clearance" title=""
370             new_state="clearance_requested" trigger="USER"
371             before_script="" after_script="">
372
373
374  <guard>
375   <guard-role>SectionOfficer</guard-role>
376   <guard-role>Owner</guard-role>
377   <guard-role>Manager</guard-role>
378   <guard-role>SectionManager</guard-role>
379  </guard>
380 </transition>
381 <transition transition_id="return" title=""
382             new_state="returning" trigger="USER"
383             before_script="" after_script="">
384
385
386  <guard>
387   <guard-role>SectionOfficer</guard-role>
388   <guard-role>Manager</guard-role>
389   <guard-role>SectionManager</guard-role>
390  </guard>
391 </transition>
392 <transition transition_id="validate_courses" title=""
393             new_state="courses_validated" trigger="USER"
394             before_script="" after_script="">
395
396
397  <guard>
398   <guard-role>CourseAdviser</guard-role>
399   <guard-role>SectionOfficer</guard-role>
400   <guard-role>Manager</guard-role>
401   <guard-role>SectionManager</guard-role>
402  </guard>
403 </transition>
404 <variable variable_id="time" for_catalog="True"
405           for_status="True" update_always="True">
406  <description>Time of the last transition</description>
407  <default>
408
409   <expression>state_change/getDateTime</expression>
410  </default>
411  <guard>
412  </guard>
413 </variable>
414 <script script_id="open_application_personal"
415         type="Script (Python)"
416         filename="workflows/waeup_student_wf/scripts/open_application_personal.py"/>
417</cps-workflow>
Note: See TracBrowser for help on using the repository browser.