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

Last change on this file since 639 was 520, checked in by joachim, 18 years ago

student_wf changes

  • Property svn:keywords set to Id
File size: 7.3 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="pume_fail"/>
10  <exit-transition transition_id="pume_pass"/>
11 </state>
12 <state state_id="admission_rejected" title="">
13  <exit-transition transition_id="finally_reject"/>
14 </state>
15 <state state_id="admitted" title="">
16  <exit-transition transition_id="enter_clearance_pin"/>
17 </state>
18 <state state_id="application_pin_entered" title="">
19  <exit-transition transition_id="apply_for_admission"/>
20  <permission-map name="Modify portal content"
21                  acquired="True">
22   <permission-role>Anonymous</permission-role>
23  </permission-map>
24  <permission-map name="View" acquired="True">
25  </permission-map>
26 </state>
27 <state state_id="clearance_pin_entered" title="">
28  <exit-transition transition_id="request_clearence"/>
29 </state>
30 <state state_id="cleared_and_validated" title="">
31 </state>
32 <state state_id="clearence_requested" title="">
33  <exit-transition transition_id="clear_and_validate"/>
34  <exit-transition transition_id="reject_clearance"/>
35 </state>
36 <state state_id="closed" title="">
37  <exit-transition transition_id="open"/>
38 </state>
39 <state state_id="created" title="">
40  <exit-transition transition_id="create_content"/>
41  <exit-transition transition_id="enter_application_pin"/>
42  <exit-transition transition_id="open"/>
43  <permission-map name="Modify portal content"
44                  acquired="False">
45   <permission-role>Owner</permission-role>
46   <permission-role>Manager</permission-role>
47   <permission-role>SectionManager</permission-role>
48  </permission-map>
49  <permission-map name="View" acquired="True">
50  </permission-map>
51 </state>
52 <state state_id="finally_rejected" title="">
53 </state>
54 <state state_id="opened" title="">
55  <exit-transition transition_id="close"/>
56  <permission-map name="Modify portal content"
57                  acquired="True">
58   <permission-role>Owner</permission-role>
59  </permission-map>
60  <permission-map name="View" acquired="True">
61  </permission-map>
62 </state>
63 <state state_id="pume_failed" title="">
64  <exit-transition transition_id="finally_reject"/>
65 </state>
66 <state state_id="pume_passed" title="">
67  <exit-transition transition_id="admit"/>
68  <exit-transition transition_id="reject_admission"/>
69 </state>
70 <transition transition_id="admit" title=""
71             new_state="admitted" trigger="USER"
72             before_script="" after_script="">
73 
74  <guard>
75   <guard-role>Manager</guard-role>
76   <guard-role>SectionManager</guard-role>
77   <guard-role>AdmissionOfficer</guard-role>
78  </guard>
79 </transition>
80 <transition transition_id="apply_for_admission" title=""
81             new_state="admission_applied" trigger="USER"
82             before_script="" after_script="">
83 
84  <guard>
85   <guard-role>Manager</guard-role>
86   <guard-role>SectionManager</guard-role>
87   <guard-role>Owner</guard-role>
88  </guard>
89 </transition>
90 <transition transition_id="clear_and_validate" title=""
91             new_state="cleared_and_validated"
92             trigger="USER" before_script="" after_script="">
93 
94  <guard>
95   <guard-role>Manager</guard-role>
96   <guard-role>SectionManager</guard-role>
97   <guard-role>ClearanceOfficer</guard-role>
98  </guard>
99 </transition>
100 <transition transition_id="close" title=""
101             new_state="closed" trigger="USER"
102             before_script="" after_script="">
103 
104  <guard>
105   <guard-role>Manager</guard-role>
106   <guard-role>SectionManager</guard-role>
107  </guard>
108 </transition>
109 <transition transition_id="create" title=""
110             new_state="created" trigger="USER"
111             before_script="" after_script="">
112 
113  <guard>
114  </guard>
115  <transition-behavior behavior_id="allow-sub-create"/>
116  <transition-behavior behavior_id="initial-create"/>
117 </transition>
118 <transition transition_id="create_content" title=""
119             new_state="" trigger="USER" before_script=""
120             after_script="">
121 
122  <guard>
123  </guard>
124  <transition-behavior behavior_id="allow-sub-create"/>
125  <transition-behavior behavior_id="allow-sub-delete"/>
126 </transition>
127 <transition transition_id="enter_application_pin" title=""
128             new_state="application_pin_entered"
129             trigger="USER" before_script="" after_script="">
130 
131  <guard>
132   <guard-permission>Modify portal content</guard-permission>
133   <guard-permission></guard-permission>
134  </guard>
135 </transition>
136 <transition transition_id="enter_clearance_pin" title=""
137             new_state="clearance_pin_entered"
138             trigger="USER" before_script="" after_script="">
139 
140  <guard>
141   <guard-role>Manager</guard-role>
142   <guard-role>SectionManager</guard-role>
143   <guard-role>Owner</guard-role>
144  </guard>
145 </transition>
146 <transition transition_id="finally_reject" title=""
147             new_state="finally_rejected" trigger="USER"
148             before_script="" after_script="">
149 
150  <guard>
151   <guard-role>Manager</guard-role>
152   <guard-role>SectionManager</guard-role>
153   <guard-role>ClearanceOfficer</guard-role>
154  </guard>
155 </transition>
156 <transition transition_id="open" title=""
157             new_state="opened" trigger="USER"
158             before_script="" after_script="">
159 
160  <guard>
161   <guard-role>Manager</guard-role>
162   <guard-role>SectionManager</guard-role>
163  </guard>
164 </transition>
165 <transition transition_id="pume_fail" title=""
166             new_state="pume_failed" trigger="USER"
167             before_script="" after_script="">
168 
169  <guard>
170   <guard-role>Manager</guard-role>
171   <guard-role>SectionManager</guard-role>
172   <guard-role>AdmissionOfficer</guard-role>
173  </guard>
174 </transition>
175 <transition transition_id="pume_pass" title=""
176             new_state="pume_passed" trigger="USER"
177             before_script="" after_script="">
178 
179  <guard>
180   <guard-role>Manager</guard-role>
181   <guard-role>SectionManager</guard-role>
182   <guard-role>AdmissionOfficer</guard-role>
183  </guard>
184 </transition>
185 <transition transition_id="reject_admission" title=""
186             new_state="admission_rejected" trigger="USER"
187             before_script="" after_script="">
188 
189  <guard>
190   <guard-role>Manager</guard-role>
191   <guard-role>SectionManager</guard-role>
192   <guard-role>AdmissionOfficer</guard-role>
193  </guard>
194 </transition>
195 <transition transition_id="reject_clearance" title=""
196             new_state="clearance_pin_entered"
197             trigger="USER" before_script="" after_script="">
198 
199  <guard>
200   <guard-role>Manager</guard-role>
201   <guard-role>SectionManager</guard-role>
202   <guard-role>ClearanceOfficer</guard-role>
203  </guard>
204 </transition>
205 <transition transition_id="request_clearence" title=""
206             new_state="clearence_requested" trigger="USER"
207             before_script="" after_script="">
208 
209  <guard>
210   <guard-role>Manager</guard-role>
211   <guard-role>SectionManager</guard-role>
212   <guard-role>Owner</guard-role>
213  </guard>
214 </transition>
215 <script script_id="open_application_personal"
216         type="Script (Python)"
217         filename="workflows/waeup_student_wf/scripts/open_application_personal.py"/>
218</cps-workflow>
Note: See TracBrowser for help on using the repository browser.