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