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

Last change on this file since 2497 was 2497, checked in by Henrik Bettermann, 17 years ago

updated

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