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