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