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="application_pin_entered" title="">
|
---|
9 | <exit-transition transition_id="apply"/>
|
---|
10 | </state>
|
---|
11 | <state state_id="admission_rejected" title="">
|
---|
12 | <exit-transition transition_id="finally_reject"/>
|
---|
13 | </state>
|
---|
14 | <state state_id="applied" 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_application_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 |
|
---|
64 | <transition transition_id="admit" title=""
|
---|
65 | new_state="admitted" trigger="USER"
|
---|
66 | before_script="" after_script="open_clearance">
|
---|
67 |
|
---|
68 | <guard>
|
---|
69 | <guard-role>Manager</guard-role>
|
---|
70 | <guard-role>SectionManager</guard-role>
|
---|
71 | <guard-role>AdmissionOfficer</guard-role>
|
---|
72 | </guard>
|
---|
73 | </transition>
|
---|
74 | <transition transition_id="clear_and_validate" title=""
|
---|
75 | new_state="cleared_and_validated"
|
---|
76 | trigger="USER" before_script=""
|
---|
77 | after_script="open_personal">
|
---|
78 |
|
---|
79 | <guard>
|
---|
80 | <guard-role>Manager</guard-role>
|
---|
81 | <guard-role>SectionManager</guard-role>
|
---|
82 | <guard-role>ClearanceOfficer</guard-role>
|
---|
83 | </guard>
|
---|
84 | </transition>
|
---|
85 | <transition transition_id="close" title=""
|
---|
86 | new_state="closed" trigger="USER"
|
---|
87 | before_script="" after_script="">
|
---|
88 |
|
---|
89 | <guard>
|
---|
90 | <guard-role>Manager</guard-role>
|
---|
91 | <guard-role>SectionManager</guard-role>
|
---|
92 | </guard>
|
---|
93 | </transition>
|
---|
94 | <transition transition_id="create" title=""
|
---|
95 | new_state="created" trigger="USER"
|
---|
96 | before_script="" after_script="">
|
---|
97 |
|
---|
98 | <guard>
|
---|
99 | </guard>
|
---|
100 | <transition-behavior behavior_id="allow-sub-create"/>
|
---|
101 | <transition-behavior behavior_id="initial-create"/>
|
---|
102 | </transition>
|
---|
103 | <transition transition_id="create_content" title=""
|
---|
104 | new_state="" trigger="USER" before_script=""
|
---|
105 | after_script="">
|
---|
106 |
|
---|
107 | <guard>
|
---|
108 | </guard>
|
---|
109 | <transition-behavior behavior_id="allow-sub-create"/>
|
---|
110 | <transition-behavior behavior_id="allow-sub-delete"/>
|
---|
111 | </transition>
|
---|
112 | <transition transition_id="enter_application_pin" title=""
|
---|
113 | new_state="application_pin_entered"
|
---|
114 | trigger="USER"
|
---|
115 | before_script="validate_application_pin"
|
---|
116 | after_script="open_application">
|
---|
117 |
|
---|
118 | <guard>
|
---|
119 | <guard-role>Manager</guard-role>
|
---|
120 | <guard-role>SectionManager</guard-role>
|
---|
121 | <guard-role>Owner</guard-role>
|
---|
122 | </guard>
|
---|
123 | </transition>
|
---|
124 | <transition transition_id="enter_clearance_pin" title=""
|
---|
125 | new_state="clearance_pin_entered"
|
---|
126 | trigger="USER"
|
---|
127 | before_script="validate_clearance_pin"
|
---|
128 | after_script="open_clearance">
|
---|
129 |
|
---|
130 | <guard>
|
---|
131 | <guard-role>Manager</guard-role>
|
---|
132 | <guard-role>SectionManager</guard-role>
|
---|
133 | <guard-role>Owner</guard-role>
|
---|
134 | </guard>
|
---|
135 | </transition>
|
---|
136 | <transition transition_id="finally_reject" title=""
|
---|
137 | new_state="finally_rejected" trigger="USER"
|
---|
138 | before_script="" after_script="">
|
---|
139 |
|
---|
140 | <guard>
|
---|
141 | <guard-role>Manager</guard-role>
|
---|
142 | <guard-role>SectionManager</guard-role>
|
---|
143 | <guard-role>ClearanceOfficer</guard-role>
|
---|
144 | </guard>
|
---|
145 | </transition>
|
---|
146 | <transition transition_id="open" title=""
|
---|
147 | new_state="opened" trigger="USER"
|
---|
148 | before_script="" after_script="">
|
---|
149 |
|
---|
150 | <guard>
|
---|
151 | <guard-role>Manager</guard-role>
|
---|
152 | <guard-role>SectionManager</guard-role>
|
---|
153 | </guard>
|
---|
154 | </transition>
|
---|
155 | <transition transition_id="pume_fail" title=""
|
---|
156 | new_state="pume_failed" trigger="USER"
|
---|
157 | before_script="" after_script="">
|
---|
158 |
|
---|
159 | <guard>
|
---|
160 | <guard-role>Manager</guard-role>
|
---|
161 | <guard-role>SectionManager</guard-role>
|
---|
162 | <guard-role>AdmissionOfficer</guard-role>
|
---|
163 | </guard>
|
---|
164 | </transition>
|
---|
165 | <transition transition_id="pume_pass" title=""
|
---|
166 | new_state="pume_passed" 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="reject" title=""
|
---|
176 | new_state="rejected" trigger="USER"
|
---|
177 | before_script="" after_script="">
|
---|
178 |
|
---|
179 | <guard>
|
---|
180 | </guard>
|
---|
181 | </transition>
|
---|
182 | <transition transition_id="reject_admission" title=""
|
---|
183 | new_state="admission_rejected" trigger="USER"
|
---|
184 | before_script="" after_script="">
|
---|
185 |
|
---|
186 | <guard>
|
---|
187 | <guard-role>Manager</guard-role>
|
---|
188 | <guard-role>SectionManager</guard-role>
|
---|
189 | <guard-role>AdmissionOfficer</guard-role>
|
---|
190 | </guard>
|
---|
191 | </transition>
|
---|
192 | <transition transition_id="reject_clearance" title=""
|
---|
193 | new_state="clearance_pin_entered"
|
---|
194 | trigger="USER" before_script="open_clearance"
|
---|
195 | after_script="">
|
---|
196 |
|
---|
197 | <guard>
|
---|
198 | <guard-role>Manager</guard-role>
|
---|
199 | <guard-role>SectionManager</guard-role>
|
---|
200 | <guard-role>ClearanceOfficer</guard-role>
|
---|
201 | </guard>
|
---|
202 | </transition>
|
---|
203 | <transition transition_id="apply" title=""
|
---|
204 | new_state="applied" trigger="USER"
|
---|
205 | before_script="" after_script="close_application">
|
---|
206 |
|
---|
207 | <guard>
|
---|
208 | <guard-role>Manager</guard-role>
|
---|
209 | <guard-role>SectionManager</guard-role>
|
---|
210 | <guard-role>Owner</guard-role>
|
---|
211 | </guard>
|
---|
212 | </transition>
|
---|
213 | <transition transition_id="request_clearence" title=""
|
---|
214 | new_state="clearence_requested" trigger="USER"
|
---|
215 | before_script="" after_script="close_clearance">
|
---|
216 |
|
---|
217 | <guard>
|
---|
218 | <guard-role>Manager</guard-role>
|
---|
219 | <guard-role>SectionManager</guard-role>
|
---|
220 | <guard-role>Owner</guard-role>
|
---|
221 | </guard>
|
---|
222 | </transition>
|
---|
223 | <script script_id="close_application" type="Script (Python)"
|
---|
224 | filename="workflows/waeup_student_wf/scripts/close_application.py"/>
|
---|
225 | <script script_id="close_clearance" type="Script (Python)"
|
---|
226 | filename="workflows/waeup_student_wf/scripts/close_clearance.py"/>
|
---|
227 | <script script_id="close_personal" type="Script (Python)"
|
---|
228 | filename="workflows/waeup_student_wf/scripts/close_personal.py"/>
|
---|
229 | <script script_id="open_application" type="Script (Python)"
|
---|
230 | filename="workflows/waeup_student_wf/scripts/open_application.py"/>
|
---|
231 | <script script_id="open_clearance" type="Script (Python)"
|
---|
232 | filename="workflows/waeup_student_wf/scripts/open_clearance.py"/>
|
---|
233 | <script script_id="open_personal" type="Script (Python)"
|
---|
234 | filename="workflows/waeup_student_wf/scripts/open_personal.py"/>
|
---|
235 | <script script_id="validate_application_pin"
|
---|
236 | type="Script (Python)"
|
---|
237 | filename="workflows/waeup_student_wf/scripts/validate_application_pin.py"/>
|
---|
238 | <script script_id="validate_clearance_pin"
|
---|
239 | type="Script (Python)"
|
---|
240 | filename="workflows/waeup_student_wf/scripts/validate_clearance_pin.py"/>
|
---|
241 | </cps-workflow> |
---|