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="enter_clearance_pin"/>
|
---|
18 | </state>
|
---|
19 | <state state_id="application_pin_entered" title="">
|
---|
20 | <exit-transition transition_id="apply_for_admission"/>
|
---|
21 | <exit-transition transition_id="create_content"/>
|
---|
22 | <permission-map name="Modify portal content"
|
---|
23 | acquired="True">
|
---|
24 | </permission-map>
|
---|
25 | <permission-map name="View" acquired="True">
|
---|
26 | </permission-map>
|
---|
27 | </state>
|
---|
28 | <state state_id="clearance_pin_entered" title="">
|
---|
29 | <exit-transition transition_id="request_clearence"/>
|
---|
30 | </state>
|
---|
31 | <state state_id="cleared_and_validated" title="">
|
---|
32 | <exit-transition transition_id="create_content"/>
|
---|
33 | </state>
|
---|
34 | <state state_id="clearence_requested" title="">
|
---|
35 | <exit-transition transition_id="clear_and_validate"/>
|
---|
36 | <exit-transition transition_id="reject_clearance"/>
|
---|
37 | </state>
|
---|
38 | <state state_id="created" title="">
|
---|
39 | <exit-transition transition_id="create_content"/>
|
---|
40 | <exit-transition transition_id="clear_and_validate"/>
|
---|
41 | <exit-transition transition_id="enter_application_pin"/>
|
---|
42 | <exit-transition transition_id="open"/>
|
---|
43 | <permission-map name="Modify portal content"
|
---|
44 | acquired="True">
|
---|
45 | </permission-map>
|
---|
46 | <permission-map name="View" acquired="True">
|
---|
47 | </permission-map>
|
---|
48 | </state>
|
---|
49 | <state state_id="finally_rejected" title="">
|
---|
50 | </state>
|
---|
51 | <state state_id="pume_failed" title="">
|
---|
52 | <exit-transition transition_id="finally_reject"/>
|
---|
53 | </state>
|
---|
54 | <state state_id="pume_passed" title="">
|
---|
55 | <exit-transition transition_id="admit"/>
|
---|
56 | <exit-transition transition_id="reject_admission"/>
|
---|
57 | </state>
|
---|
58 | <transition transition_id="admit" title=""
|
---|
59 | new_state="admitted" trigger="USER"
|
---|
60 | before_script="" after_script="">
|
---|
61 |
|
---|
62 | <guard>
|
---|
63 | <guard-role>Manager</guard-role>
|
---|
64 | <guard-role>SectionManager</guard-role>
|
---|
65 | <guard-role>AdmissionOfficer</guard-role>
|
---|
66 | </guard>
|
---|
67 | </transition>
|
---|
68 | <transition transition_id="apply_for_admission" title=""
|
---|
69 | new_state="admission_applied" trigger="USER"
|
---|
70 | before_script="" after_script="">
|
---|
71 |
|
---|
72 | <guard>
|
---|
73 | <guard-role>Manager</guard-role>
|
---|
74 | <guard-role>SectionManager</guard-role>
|
---|
75 | <guard-role>Owner</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="" after_script="">
|
---|
81 |
|
---|
82 | <guard>
|
---|
83 | <guard-role>Manager</guard-role>
|
---|
84 | <guard-role>SectionManager</guard-role>
|
---|
85 | <guard-role>ClearanceOfficer</guard-role>
|
---|
86 | </guard>
|
---|
87 | </transition>
|
---|
88 | <transition transition_id="create" title=""
|
---|
89 | new_state="created" trigger="USER"
|
---|
90 | before_script="" after_script="">
|
---|
91 |
|
---|
92 | <guard>
|
---|
93 | </guard>
|
---|
94 | <transition-behavior behavior_id="allow-sub-create"/>
|
---|
95 | <transition-behavior behavior_id="initial-create"/>
|
---|
96 | </transition>
|
---|
97 | <transition transition_id="create_content" title=""
|
---|
98 | new_state="" trigger="USER" before_script=""
|
---|
99 | after_script="">
|
---|
100 |
|
---|
101 | <guard>
|
---|
102 | <guard-role>Manager</guard-role>
|
---|
103 | <guard-role>SectionManager</guard-role>
|
---|
104 | <guard-role>Owner</guard-role>
|
---|
105 | </guard>
|
---|
106 | <transition-behavior behavior_id="allow-sub-create"/>
|
---|
107 | </transition>
|
---|
108 | <transition transition_id="enter_application_pin" title=""
|
---|
109 | new_state="application_pin_entered"
|
---|
110 | trigger="USER" before_script="" after_script="">
|
---|
111 |
|
---|
112 | <guard>
|
---|
113 | <guard-role>Manager</guard-role>
|
---|
114 | <guard-role>SectionManager</guard-role>
|
---|
115 | <guard-role>Owner</guard-role>
|
---|
116 | </guard>
|
---|
117 | </transition>
|
---|
118 | <transition transition_id="enter_clearance_pin" title=""
|
---|
119 | new_state="clearance_pin_entered"
|
---|
120 | trigger="USER" before_script="" after_script="">
|
---|
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="finally_reject" title=""
|
---|
129 | new_state="finally_rejected" trigger="USER"
|
---|
130 | before_script="" after_script="">
|
---|
131 |
|
---|
132 | <guard>
|
---|
133 | <guard-role>Manager</guard-role>
|
---|
134 | <guard-role>SectionManager</guard-role>
|
---|
135 | <guard-role>ClearanceOfficer</guard-role>
|
---|
136 | </guard>
|
---|
137 | </transition>
|
---|
138 | <transition transition_id="pume_fail" title=""
|
---|
139 | new_state="pume_failed" trigger="USER"
|
---|
140 | before_script="" after_script="">
|
---|
141 |
|
---|
142 | <guard>
|
---|
143 | <guard-role>Manager</guard-role>
|
---|
144 | <guard-role>SectionManager</guard-role>
|
---|
145 | <guard-role>AdmissionOfficer</guard-role>
|
---|
146 | </guard>
|
---|
147 | </transition>
|
---|
148 | <transition transition_id="pume_pass" title=""
|
---|
149 | new_state="pume_passed" trigger="USER"
|
---|
150 | before_script="" after_script="">
|
---|
151 |
|
---|
152 | <guard>
|
---|
153 | <guard-role>Manager</guard-role>
|
---|
154 | <guard-role>SectionManager</guard-role>
|
---|
155 | <guard-role>AdmissionOfficer</guard-role>
|
---|
156 | </guard>
|
---|
157 | </transition>
|
---|
158 | <transition transition_id="reject_admission" title=""
|
---|
159 | new_state="admission_rejected" trigger="USER"
|
---|
160 | before_script="" after_script="">
|
---|
161 |
|
---|
162 | <guard>
|
---|
163 | <guard-role>Manager</guard-role>
|
---|
164 | <guard-role>SectionManager</guard-role>
|
---|
165 | <guard-role>AdmissionOfficer</guard-role>
|
---|
166 | </guard>
|
---|
167 | </transition>
|
---|
168 | <transition transition_id="reject_clearance" title=""
|
---|
169 | new_state="clearance_pin_entered"
|
---|
170 | trigger="USER" before_script="" after_script="">
|
---|
171 |
|
---|
172 | <guard>
|
---|
173 | <guard-role>Manager</guard-role>
|
---|
174 | <guard-role>SectionManager</guard-role>
|
---|
175 | <guard-role>ClearanceOfficer</guard-role>
|
---|
176 | </guard>
|
---|
177 | </transition>
|
---|
178 | <transition transition_id="request_clearence" title=""
|
---|
179 | new_state="clearence_requested" trigger="USER"
|
---|
180 | before_script="" after_script="">
|
---|
181 |
|
---|
182 | <guard>
|
---|
183 | <guard-role>Manager</guard-role>
|
---|
184 | <guard-role>SectionManager</guard-role>
|
---|
185 | <guard-role>Owner</guard-role>
|
---|
186 | </guard>
|
---|
187 | </transition>
|
---|
188 | <variable variable_id="time" for_catalog="True"
|
---|
189 | for_status="True" update_always="True">
|
---|
190 | <description>Time of the last transition</description>
|
---|
191 | <default>
|
---|
192 |
|
---|
193 | <expression>state_change/getDateTime</expression>
|
---|
194 | </default>
|
---|
195 | <guard>
|
---|
196 | </guard>
|
---|
197 | </variable>
|
---|
198 | <script script_id="open_application_personal"
|
---|
199 | type="Script (Python)"
|
---|
200 | filename="workflows/waeup_student_wf/scripts/open_application_personal.py"/>
|
---|
201 | </cps-workflow>
|
---|