source: WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml @ 948

Last change on this file since 948 was 939, checked in by Henrik Bettermann, 18 years ago

waeup_section_wf instead of section_folder_wf
SectionOfficer? role added to most managed permission sets and transition guards

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