source: WAeUP_SRP/uniben/profiles/default/workflows/waeup_student_wf/definition.xml @ 2893

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