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 | </state>
|
---|
13 | <state state_id="admission_rejected" title="">
|
---|
14 | <exit-transition transition_id="finally_reject"/>
|
---|
15 | </state>
|
---|
16 | <state state_id="admitted" title="">
|
---|
17 | <exit-transition transition_id="create_content"/>
|
---|
18 | <exit-transition transition_id="enter_clearance_pin"/>
|
---|
19 | <exit-transition transition_id="raise_objection"/>
|
---|
20 | <permission-map name="View" acquired="True">
|
---|
21 | <permission-role>Owner</permission-role>
|
---|
22 | </permission-map>
|
---|
23 | </state>
|
---|
24 | <state state_id="application_pin_entered" title="">
|
---|
25 | <exit-transition transition_id="apply_for_admission"/>
|
---|
26 | <exit-transition transition_id="create_content"/>
|
---|
27 | <permission-map name="Modify portal content"
|
---|
28 | acquired="True">
|
---|
29 | </permission-map>
|
---|
30 | <permission-map name="View" acquired="True">
|
---|
31 | <permission-role>Owner</permission-role>
|
---|
32 | </permission-map>
|
---|
33 | </state>
|
---|
34 | <state state_id="clearance_pin_entered" title="">
|
---|
35 | <exit-transition transition_id="create_content"/>
|
---|
36 | <exit-transition transition_id="request_clearance"/>
|
---|
37 | <permission-map name="Modify portal content"
|
---|
38 | acquired="True">
|
---|
39 | </permission-map>
|
---|
40 | <permission-map name="View" acquired="True">
|
---|
41 | <permission-role>Owner</permission-role>
|
---|
42 | </permission-map>
|
---|
43 | </state>
|
---|
44 | <state state_id="clearance_requested" title="">
|
---|
45 | <exit-transition transition_id="clear_and_validate"/>
|
---|
46 | <exit-transition transition_id="defer"/>
|
---|
47 | <exit-transition transition_id="reject_clearance"/>
|
---|
48 | <exit-transition transition_id="create_content"/>
|
---|
49 | <permission-map name="Modify portal content"
|
---|
50 | acquired="True">
|
---|
51 | </permission-map>
|
---|
52 | <permission-map name="View" acquired="True">
|
---|
53 | <permission-role>Owner</permission-role>
|
---|
54 | </permission-map>
|
---|
55 | </state>
|
---|
56 | <state state_id="cleared_and_validated" title="">
|
---|
57 | <exit-transition transition_id="create_content"/>
|
---|
58 | <exit-transition transition_id="reject_clearance"/>
|
---|
59 | <permission-map name="View" acquired="True">
|
---|
60 | <permission-role>Owner</permission-role>
|
---|
61 | </permission-map>
|
---|
62 | </state>
|
---|
63 | <state state_id="deferred" title="">
|
---|
64 | <exit-transition transition_id="admit"/>
|
---|
65 | </state>
|
---|
66 | <state state_id="finally_rejected" title="">
|
---|
67 | <permission-map name="View" acquired="True">
|
---|
68 | <permission-role>Owner</permission-role>
|
---|
69 | </permission-map>
|
---|
70 | </state>
|
---|
71 | <state state_id="objection_raised" title="">
|
---|
72 | <exit-transition transition_id="enter_clearance_pin"/>
|
---|
73 | </state>
|
---|
74 | <state state_id="pume_failed" title="">
|
---|
75 | <exit-transition transition_id="reject_admission"/>
|
---|
76 | <permission-map name="View" acquired="True">
|
---|
77 | <permission-role>Owner</permission-role>
|
---|
78 | </permission-map>
|
---|
79 | </state>
|
---|
80 | <state state_id="pume_passed" title="">
|
---|
81 | <exit-transition transition_id="admit"/>
|
---|
82 | <exit-transition transition_id="reject_admission"/>
|
---|
83 | <permission-map name="View" acquired="True">
|
---|
84 | <permission-role>Owner</permission-role>
|
---|
85 | </permission-map>
|
---|
86 | </state>
|
---|
87 | <state state_id="student_created" title="">
|
---|
88 | <exit-transition transition_id="admit"/>
|
---|
89 | <exit-transition transition_id="clear_and_validate"/>
|
---|
90 | <exit-transition transition_id="create_content"/>
|
---|
91 | <exit-transition transition_id="enter_application_pin"/>
|
---|
92 | <exit-transition transition_id="pume_fail"/>
|
---|
93 | <exit-transition transition_id="pume_pass"/>
|
---|
94 | <exit-transition transition_id="reject_admission"/>
|
---|
95 | <permission-map name="View" acquired="True">
|
---|
96 | <permission-role>Owner</permission-role>
|
---|
97 | </permission-map>
|
---|
98 | </state>
|
---|
99 | <transition transition_id="admit" title=""
|
---|
100 | new_state="admitted" trigger="USER"
|
---|
101 | before_script="" after_script="">
|
---|
102 |
|
---|
103 | <guard>
|
---|
104 | <guard-expression>here/clearance_officer_guard</guard-expression>
|
---|
105 | </guard>
|
---|
106 | </transition>
|
---|
107 | <transition transition_id="apply_for_admission" title=""
|
---|
108 | new_state="admission_applied" trigger="USER"
|
---|
109 | before_script="" after_script="">
|
---|
110 |
|
---|
111 | <guard>
|
---|
112 | <guard-expression>here/owner_guard</guard-expression>
|
---|
113 | </guard>
|
---|
114 | </transition>
|
---|
115 | <transition transition_id="clear_and_validate" title=""
|
---|
116 | new_state="cleared_and_validated"
|
---|
117 | trigger="USER" before_script="" after_script="">
|
---|
118 |
|
---|
119 | <guard>
|
---|
120 | <guard-expression>here/clearance_officer_guard</guard-expression>
|
---|
121 | </guard>
|
---|
122 | </transition>
|
---|
123 | <transition transition_id="create" title=""
|
---|
124 | new_state="student_created" trigger="USER"
|
---|
125 | before_script="" after_script="">
|
---|
126 |
|
---|
127 | <guard>
|
---|
128 | </guard>
|
---|
129 | <transition-behavior behavior_id="allow-sub-create"/>
|
---|
130 | <transition-behavior behavior_id="initial-create"/>
|
---|
131 | </transition>
|
---|
132 | <transition transition_id="create_content" title=""
|
---|
133 | new_state="" trigger="USER" before_script=""
|
---|
134 | after_script="">
|
---|
135 |
|
---|
136 | <guard>
|
---|
137 | <guard-expression>here/owner_guard</guard-expression>
|
---|
138 | </guard>
|
---|
139 | <transition-behavior behavior_id="allow-sub-create"/>
|
---|
140 | </transition>
|
---|
141 | <transition transition_id="defer" title=""
|
---|
142 | new_state="deferred" trigger="USER"
|
---|
143 | before_script="" after_script="">
|
---|
144 |
|
---|
145 | <guard>
|
---|
146 | <guard-expression>here/owner_guard</guard-expression>
|
---|
147 | </guard>
|
---|
148 | </transition>
|
---|
149 | <transition transition_id="enter_application_pin" title=""
|
---|
150 | new_state="application_pin_entered"
|
---|
151 | trigger="USER" before_script="" after_script="">
|
---|
152 |
|
---|
153 | <guard>
|
---|
154 | <guard-expression>here/owner_guard</guard-expression>
|
---|
155 | </guard>
|
---|
156 | </transition>
|
---|
157 | <transition transition_id="enter_clearance_pin" title=""
|
---|
158 | new_state="clearance_pin_entered"
|
---|
159 | trigger="USER" before_script="" after_script="">
|
---|
160 |
|
---|
161 | <guard>
|
---|
162 | <guard-expression>here/owner_guard</guard-expression>
|
---|
163 | </guard>
|
---|
164 | </transition>
|
---|
165 | <transition transition_id="finally_reject" title=""
|
---|
166 | new_state="finally_rejected" trigger="USER"
|
---|
167 | before_script="" after_script="">
|
---|
168 |
|
---|
169 | <guard>
|
---|
170 | <guard-expression>here/clearance_officer_guard</guard-expression>
|
---|
171 | </guard>
|
---|
172 | </transition>
|
---|
173 | <transition transition_id="pume_fail" title=""
|
---|
174 | new_state="pume_failed" trigger="USER"
|
---|
175 | before_script="" after_script="">
|
---|
176 |
|
---|
177 | <guard>
|
---|
178 | <guard-expression>here/clearance_officer_guard</guard-expression>
|
---|
179 | </guard>
|
---|
180 | </transition>
|
---|
181 | <transition transition_id="pume_pass" title=""
|
---|
182 | new_state="pume_passed" trigger="USER"
|
---|
183 | before_script="" after_script="">
|
---|
184 |
|
---|
185 | <guard>
|
---|
186 | <guard-expression>here/clearance_officer_guard</guard-expression>
|
---|
187 | </guard>
|
---|
188 | </transition>
|
---|
189 | <transition transition_id="raise_objection" title=""
|
---|
190 | new_state="objection_raised" trigger="USER"
|
---|
191 | before_script="" after_script="">
|
---|
192 |
|
---|
193 | <guard>
|
---|
194 | <guard-expression>here/clearance_officer_guard</guard-expression>
|
---|
195 | </guard>
|
---|
196 | </transition>
|
---|
197 | <transition transition_id="reject_admission" title=""
|
---|
198 | new_state="admission_rejected" trigger="USER"
|
---|
199 | before_script="" after_script="">
|
---|
200 |
|
---|
201 | <guard>
|
---|
202 | <guard-expression>here/clearance_officer_guard</guard-expression>
|
---|
203 | </guard>
|
---|
204 | </transition>
|
---|
205 | <transition transition_id="reject_clearance" title=""
|
---|
206 | new_state="clearance_pin_entered"
|
---|
207 | trigger="USER" before_script="" after_script="">
|
---|
208 |
|
---|
209 | <guard>
|
---|
210 | <guard-expression>here/clearance_officer_guard</guard-expression>
|
---|
211 | </guard>
|
---|
212 | </transition>
|
---|
213 | <transition transition_id="request_clearance" title=""
|
---|
214 | new_state="clearance_requested" trigger="USER"
|
---|
215 | before_script="" after_script="">
|
---|
216 |
|
---|
217 | <guard>
|
---|
218 | <guard-expression>here/owner_guard</guard-expression>
|
---|
219 | </guard>
|
---|
220 | </transition>
|
---|
221 | <variable variable_id="time" for_catalog="True"
|
---|
222 | for_status="True" update_always="True">
|
---|
223 | <description>Time of the last transition</description>
|
---|
224 | <default>
|
---|
225 |
|
---|
226 | <expression>state_change/getDateTime</expression>
|
---|
227 | </default>
|
---|
228 | <guard>
|
---|
229 | </guard>
|
---|
230 | </variable>
|
---|
231 | <script script_id="open_application_personal"
|
---|
232 | type="Script (Python)"
|
---|
233 | filename="workflows/waeup_student_wf/scripts/open_application_personal.py"/>
|
---|
234 | </cps-workflow> |
---|