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