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