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 name="Modify portal content"
|
---|
15 | acquired="True">
|
---|
16 | <permission-role>SectionOfficer</permission-role>
|
---|
17 | </permission-map>
|
---|
18 | <permission-map name="View" acquired="True">
|
---|
19 | <permission-role>SectionOfficer</permission-role>
|
---|
20 | </permission-map>
|
---|
21 | </state>
|
---|
22 | <state state_id="admission_rejected" title="">
|
---|
23 | <exit-transition transition_id="finally_reject"/>
|
---|
24 | <permission-map name="Delete objects" acquired="False" />
|
---|
25 | <permission-map name="Modify portal content"
|
---|
26 | acquired="True">
|
---|
27 | <permission-role>SectionOfficer</permission-role>
|
---|
28 | </permission-map>
|
---|
29 | <permission-map name="View" acquired="True">
|
---|
30 | <permission-role>SectionOfficer</permission-role>
|
---|
31 | </permission-map>
|
---|
32 | </state>
|
---|
33 | <state state_id="admitted" title="">
|
---|
34 | <exit-transition transition_id="create_content"/>
|
---|
35 | <exit-transition transition_id="enter_clearance_pin"/>
|
---|
36 | <exit-transition transition_id="raise_objection"/>
|
---|
37 | <permission-map name="Delete objects" acquired="False" />
|
---|
38 | <permission-map name="Modify portal content"
|
---|
39 | acquired="True">
|
---|
40 | </permission-map>
|
---|
41 | <permission-map name="View" acquired="True">
|
---|
42 | <permission-role>Owner</permission-role>
|
---|
43 | <permission-role>SectionOfficer</permission-role>
|
---|
44 | </permission-map>
|
---|
45 | </state>
|
---|
46 | <state state_id="application_pin_entered" title="">
|
---|
47 | <exit-transition transition_id="apply_for_admission"/>
|
---|
48 | <exit-transition transition_id="create_content"/>
|
---|
49 | <permission-map name="Delete objects" acquired="False" />
|
---|
50 | <permission-map name="Modify portal content"
|
---|
51 | acquired="True">
|
---|
52 | <permission-role>SectionOfficer</permission-role>
|
---|
53 | </permission-map>
|
---|
54 | <permission-map name="View" acquired="True">
|
---|
55 | <permission-role>Owner</permission-role>
|
---|
56 | <permission-role>SectionOfficer</permission-role>
|
---|
57 | </permission-map>
|
---|
58 | </state>
|
---|
59 | <state state_id="clearance_pin_entered" title="">
|
---|
60 | <exit-transition transition_id="create_content"/>
|
---|
61 | <exit-transition transition_id="request_clearance"/>
|
---|
62 | <permission-map name="Delete objects" acquired="False" />
|
---|
63 | <permission-map name="Modify portal content"
|
---|
64 | acquired="True">
|
---|
65 | <permission-role>SectionOfficer</permission-role>
|
---|
66 | </permission-map>
|
---|
67 | <permission-map name="View" acquired="True">
|
---|
68 | <permission-role>Owner</permission-role>
|
---|
69 | <permission-role>SectionOfficer</permission-role>
|
---|
70 | </permission-map>
|
---|
71 | </state>
|
---|
72 | <state state_id="clearance_requested" title="">
|
---|
73 | <exit-transition transition_id="clear_and_validate"/>
|
---|
74 | <exit-transition transition_id="defer"/>
|
---|
75 | <exit-transition transition_id="reject_clearance"/>
|
---|
76 | <exit-transition transition_id="create_content"/>
|
---|
77 | <permission-map name="Delete objects" acquired="False" />
|
---|
78 | <permission-map name="Modify portal content"
|
---|
79 | acquired="True">
|
---|
80 | <permission-role>ClearanceOfficer</permission-role>
|
---|
81 | <permission-role>SectionOfficer</permission-role>
|
---|
82 | </permission-map>
|
---|
83 | <permission-map name="View" acquired="True">
|
---|
84 | <permission-role>Owner</permission-role>
|
---|
85 | <permission-role>SectionOfficer</permission-role>
|
---|
86 | </permission-map>
|
---|
87 | </state>
|
---|
88 | <state state_id="cleared_and_validated" title="">
|
---|
89 | <exit-transition transition_id="create_content"/>
|
---|
90 | <exit-transition transition_id="reject_clearance"/>
|
---|
91 | <permission-map name="Delete objects" acquired="False" />
|
---|
92 | <permission-map name="Modify portal content"
|
---|
93 | acquired="True">
|
---|
94 | <permission-role>ClearanceOfficer</permission-role>
|
---|
95 | <permission-role>SectionOfficer</permission-role>
|
---|
96 | </permission-map>
|
---|
97 | <permission-map name="View" acquired="True">
|
---|
98 | <permission-role>Owner</permission-role>
|
---|
99 | <permission-role>SectionOfficer</permission-role>
|
---|
100 | </permission-map>
|
---|
101 | </state>
|
---|
102 | <state state_id="deferred" title="">
|
---|
103 | <exit-transition transition_id="admit"/>
|
---|
104 | <permission-map name="Delete objects" acquired="False" />
|
---|
105 | <permission-map name="Modify portal content"
|
---|
106 | acquired="True">
|
---|
107 | <permission-role>SectionOfficer</permission-role>
|
---|
108 | </permission-map>
|
---|
109 | <permission-map name="View" acquired="True">
|
---|
110 | <permission-role>SectionOfficer</permission-role>
|
---|
111 | </permission-map>
|
---|
112 | </state>
|
---|
113 | <state state_id="finally_rejected" title="">
|
---|
114 | <permission-map name="Delete objects" acquired="False" />
|
---|
115 | <permission-map name="Modify portal content"
|
---|
116 | acquired="True">
|
---|
117 | <permission-role>ClearanceOfficer</permission-role>
|
---|
118 | <permission-role>SectionOfficer</permission-role>
|
---|
119 | </permission-map>
|
---|
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="objection_raised" title="">
|
---|
126 | <exit-transition transition_id="enter_clearance_pin"/>
|
---|
127 | <permission-map name="Delete objects" acquired="False" />
|
---|
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>Owner</permission-role>
|
---|
134 | <permission-role>SectionOfficer</permission-role>
|
---|
135 | </permission-map>
|
---|
136 | </state>
|
---|
137 | <state state_id="pume_failed" title="">
|
---|
138 | <exit-transition transition_id="reject_admission"/>
|
---|
139 | <permission-map name="Delete objects" acquired="False" />
|
---|
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>Owner</permission-role>
|
---|
146 | <permission-role>SectionOfficer</permission-role>
|
---|
147 | </permission-map>
|
---|
148 | </state>
|
---|
149 | <state state_id="pume_passed" title="">
|
---|
150 | <exit-transition transition_id="admit"/>
|
---|
151 | <exit-transition transition_id="reject_admission"/>
|
---|
152 | <permission-map name="Delete objects" acquired="False" />
|
---|
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="student_created" title="">
|
---|
163 | <exit-transition transition_id="admit"/>
|
---|
164 | <exit-transition transition_id="clear_and_validate"/>
|
---|
165 | <exit-transition transition_id="create_content"/>
|
---|
166 | <exit-transition transition_id="enter_application_pin"/>
|
---|
167 | <exit-transition transition_id="pume_fail"/>
|
---|
168 | <exit-transition transition_id="pume_pass"/>
|
---|
169 | <exit-transition transition_id="reject_admission"/>
|
---|
170 | <permission-map name="Delete objects" acquired="False" />
|
---|
171 | <permission-map name="Modify portal content"
|
---|
172 | acquired="True">
|
---|
173 | <permission-role>SectionOfficer</permission-role>
|
---|
174 | </permission-map>
|
---|
175 | <permission-map name="View" acquired="True">
|
---|
176 | <permission-role>Owner</permission-role>
|
---|
177 | <permission-role>SectionOfficer</permission-role>
|
---|
178 | </permission-map>
|
---|
179 | </state>
|
---|
180 | <transition transition_id="admit" title=""
|
---|
181 | new_state="admitted" trigger="USER"
|
---|
182 | before_script="" after_script="">
|
---|
183 |
|
---|
184 | <guard>
|
---|
185 | <guard-role>SectionOfficer</guard-role>
|
---|
186 | <guard-role>ClearanceOfficer</guard-role>
|
---|
187 | <guard-role>Manager</guard-role>
|
---|
188 | <guard-role>SectionManager</guard-role>
|
---|
189 | </guard>
|
---|
190 | </transition>
|
---|
191 | <transition transition_id="apply_for_admission" title=""
|
---|
192 | new_state="admission_applied" trigger="USER"
|
---|
193 | before_script="" after_script="">
|
---|
194 |
|
---|
195 | <guard>
|
---|
196 | <guard-role>SectionOfficer</guard-role>
|
---|
197 | <guard-role>Owner</guard-role>
|
---|
198 | <guard-role>Manager</guard-role>
|
---|
199 | <guard-role>SectionManager</guard-role>
|
---|
200 | </guard>
|
---|
201 | </transition>
|
---|
202 | <transition transition_id="clear_and_validate" title=""
|
---|
203 | new_state="cleared_and_validated"
|
---|
204 | trigger="USER" before_script="" after_script="">
|
---|
205 |
|
---|
206 | <guard>
|
---|
207 | <guard-role>SectionOfficer</guard-role>
|
---|
208 | <guard-role>ClearanceOfficer</guard-role>
|
---|
209 | <guard-role>Manager</guard-role>
|
---|
210 | <guard-role>SectionManager</guard-role>
|
---|
211 | </guard>
|
---|
212 | </transition>
|
---|
213 | <transition transition_id="create" title=""
|
---|
214 | new_state="student_created" trigger="USER"
|
---|
215 | before_script="" after_script="">
|
---|
216 |
|
---|
217 | <guard>
|
---|
218 | </guard>
|
---|
219 | <transition-behavior behavior_id="allow-sub-create"/>
|
---|
220 | <transition-behavior behavior_id="initial-create"/>
|
---|
221 | </transition>
|
---|
222 | <transition transition_id="create_content" title=""
|
---|
223 | new_state="" trigger="USER" before_script=""
|
---|
224 | after_script="">
|
---|
225 |
|
---|
226 | <guard>
|
---|
227 | <guard-role>SectionOfficer</guard-role>
|
---|
228 | <guard-role>Owner</guard-role>
|
---|
229 | <guard-role>Manager</guard-role>
|
---|
230 | <guard-role>SectionManager</guard-role>
|
---|
231 | </guard>
|
---|
232 | <transition-behavior behavior_id="allow-sub-create"/>
|
---|
233 | </transition>
|
---|
234 | <transition transition_id="defer" title=""
|
---|
235 | new_state="deferred" trigger="USER"
|
---|
236 | before_script="" after_script="">
|
---|
237 |
|
---|
238 | <guard>
|
---|
239 | <guard-role>SectionOfficer</guard-role>
|
---|
240 | <guard-role>Owner</guard-role>
|
---|
241 | <guard-role>Manager</guard-role>
|
---|
242 | <guard-role>SectionManager</guard-role>
|
---|
243 | </guard>
|
---|
244 | </transition>
|
---|
245 | <transition transition_id="enter_application_pin" title=""
|
---|
246 | new_state="application_pin_entered"
|
---|
247 | trigger="USER" before_script="" after_script="">
|
---|
248 |
|
---|
249 | <guard>
|
---|
250 | <guard-role>SectionOfficer</guard-role>
|
---|
251 | <guard-role>Owner</guard-role>
|
---|
252 | <guard-role>Manager</guard-role>
|
---|
253 | <guard-role>SectionManager</guard-role>
|
---|
254 | </guard>
|
---|
255 | </transition>
|
---|
256 | <transition transition_id="enter_clearance_pin" title=""
|
---|
257 | new_state="clearance_pin_entered"
|
---|
258 | trigger="USER" before_script="" after_script="">
|
---|
259 |
|
---|
260 | <guard>
|
---|
261 | <guard-role>SectionOfficer</guard-role>
|
---|
262 | <guard-role>Owner</guard-role>
|
---|
263 | <guard-role>Manager</guard-role>
|
---|
264 | <guard-role>SectionManager</guard-role>
|
---|
265 | </guard>
|
---|
266 | </transition>
|
---|
267 | <transition transition_id="finally_reject" title=""
|
---|
268 | new_state="finally_rejected" trigger="USER"
|
---|
269 | before_script="" after_script="">
|
---|
270 |
|
---|
271 | <guard>
|
---|
272 | <guard-role>SectionOfficer</guard-role>
|
---|
273 | <guard-role>ClearanceOfficer</guard-role>
|
---|
274 | <guard-role>Manager</guard-role>
|
---|
275 | <guard-role>SectionManager</guard-role>
|
---|
276 | </guard>
|
---|
277 | </transition>
|
---|
278 | <transition transition_id="pume_fail" title=""
|
---|
279 | new_state="pume_failed" trigger="USER"
|
---|
280 | before_script="" after_script="">
|
---|
281 |
|
---|
282 | <guard>
|
---|
283 | <guard-role>SectionOfficer</guard-role>
|
---|
284 | <guard-role>ClearanceOfficer</guard-role>
|
---|
285 | <guard-role>Manager</guard-role>
|
---|
286 | <guard-role>SectionManager</guard-role>
|
---|
287 | </guard>
|
---|
288 | </transition>
|
---|
289 | <transition transition_id="pume_pass" title=""
|
---|
290 | new_state="pume_passed" trigger="USER"
|
---|
291 | before_script="" after_script="">
|
---|
292 |
|
---|
293 | <guard>
|
---|
294 | <guard-role>SectionOfficer</guard-role>
|
---|
295 | <guard-role>ClearanceOfficer</guard-role>
|
---|
296 | <guard-role>Manager</guard-role>
|
---|
297 | <guard-role>SectionManager</guard-role>
|
---|
298 | </guard>
|
---|
299 | </transition>
|
---|
300 | <transition transition_id="raise_objection" title=""
|
---|
301 | new_state="objection_raised" trigger="USER"
|
---|
302 | before_script="" after_script="">
|
---|
303 |
|
---|
304 | <guard>
|
---|
305 | <guard-role>SectionOfficer</guard-role>
|
---|
306 | <guard-role>Owner</guard-role>
|
---|
307 | <guard-role>ClearanceOfficer</guard-role>
|
---|
308 | <guard-role>Manager</guard-role>
|
---|
309 | <guard-role>SectionManager</guard-role>
|
---|
310 | </guard>
|
---|
311 | </transition>
|
---|
312 | <transition transition_id="reject_admission" title=""
|
---|
313 | new_state="admission_rejected" trigger="USER"
|
---|
314 | before_script="" after_script="">
|
---|
315 |
|
---|
316 | <guard>
|
---|
317 | <guard-role>SectionOfficer</guard-role>
|
---|
318 | <guard-role>ClearanceOfficer</guard-role>
|
---|
319 | <guard-role>Manager</guard-role>
|
---|
320 | <guard-role>SectionManager</guard-role>
|
---|
321 | </guard>
|
---|
322 | </transition>
|
---|
323 | <transition transition_id="reject_clearance" title=""
|
---|
324 | new_state="clearance_pin_entered"
|
---|
325 | trigger="USER" before_script="" after_script="">
|
---|
326 |
|
---|
327 | <guard>
|
---|
328 | <guard-role>SectionOfficer</guard-role>
|
---|
329 | <guard-role>ClearanceOfficer</guard-role>
|
---|
330 | <guard-role>Manager</guard-role>
|
---|
331 | <guard-role>SectionManager</guard-role>
|
---|
332 | </guard>
|
---|
333 | </transition>
|
---|
334 | <transition transition_id="request_clearance" title=""
|
---|
335 | new_state="clearance_requested" trigger="USER"
|
---|
336 | before_script="" after_script="">
|
---|
337 |
|
---|
338 | <guard>
|
---|
339 | <guard-role>SectionOfficer</guard-role>
|
---|
340 | <guard-role>Owner</guard-role>
|
---|
341 | <guard-role>Manager</guard-role>
|
---|
342 | <guard-role>SectionManager</guard-role>
|
---|
343 | </guard>
|
---|
344 | </transition>
|
---|
345 | <variable variable_id="time" for_catalog="True"
|
---|
346 | for_status="True" update_always="True">
|
---|
347 | <description>Time of the last transition</description>
|
---|
348 | <default>
|
---|
349 |
|
---|
350 | <expression>state_change/getDateTime</expression>
|
---|
351 | </default>
|
---|
352 | <guard>
|
---|
353 | </guard>
|
---|
354 | </variable>
|
---|
355 | <script script_id="open_application_personal"
|
---|
356 | type="Script (Python)"
|
---|
357 | filename="workflows/waeup_student_wf/scripts/open_application_personal.py"/>
|
---|
358 | </cps-workflow> |
---|