source: WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml @ 754

Last change on this file since 754 was 754, checked in by Henrik Bettermann, 18 years ago

student workflow allows deferring by student

  • Property svn:keywords set to Id
File size: 7.0 KB
Line 
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="defer"/>
18  <exit-transition transition_id="enter_clearance_pin"/>
19 </state>
20 <state state_id="application_pin_entered" title="">
21  <exit-transition transition_id="apply_for_admission"/>
22  <exit-transition transition_id="create_content"/>
23  <permission-map name="Modify portal content"
24                  acquired="True">
25  </permission-map>
26  <permission-map name="View" acquired="True">
27  </permission-map>
28 </state>
29 <state state_id="clearance_pin_entered" title="">
30  <exit-transition transition_id="request_clearence"/>
31 </state>
32 <state state_id="cleared_and_validated" title="">
33  <exit-transition transition_id="create_content"/>
34 </state>
35 <state state_id="clearence_requested" title="">
36  <exit-transition transition_id="clear_and_validate"/>
37  <exit-transition transition_id="reject_clearance"/>
38 </state>
39 <state state_id="deferred" title="">
40  <exit-transition transition_id="enter_clearance_pin"/>
41 </state>
42 <state state_id="finally_rejected" title="">
43 </state>
44 <state state_id="pume_failed" title="">
45  <exit-transition transition_id="finally_reject"/>
46 </state>
47 <state state_id="pume_passed" title="">
48  <exit-transition transition_id="admit"/>
49  <exit-transition transition_id="reject_admission"/>
50 </state>
51 <state state_id="student_created" title="">
52  <exit-transition transition_id="clear_and_validate"/>
53  <exit-transition transition_id="create_content"/>
54  <exit-transition transition_id="enter_application_pin"/>
55 </state>
56 <transition transition_id="admit" title=""
57             new_state="admitted" trigger="USER"
58             before_script="" after_script="">
59 
60  <guard>
61   <guard-role>Manager</guard-role>
62   <guard-role>SectionManager</guard-role>
63   <guard-role>AdmissionOfficer</guard-role>
64  </guard>
65 </transition>
66 <transition transition_id="apply_for_admission" title=""
67             new_state="admission_applied" trigger="USER"
68             before_script="" after_script="">
69 
70  <guard>
71   <guard-role>Manager</guard-role>
72   <guard-role>SectionManager</guard-role>
73   <guard-role>Owner</guard-role>
74  </guard>
75 </transition>
76 <transition transition_id="clear_and_validate" title=""
77             new_state="cleared_and_validated"
78             trigger="USER" before_script="" after_script="">
79 
80  <guard>
81   <guard-role>Manager</guard-role>
82   <guard-role>SectionManager</guard-role>
83   <guard-role>ClearanceOfficer</guard-role>
84  </guard>
85 </transition>
86 <transition transition_id="create" title=""
87             new_state="student_created" trigger="USER"
88             before_script="" after_script="">
89 
90  <guard>
91  </guard>
92  <transition-behavior behavior_id="allow-sub-create"/>
93  <transition-behavior behavior_id="initial-create"/>
94 </transition>
95 <transition transition_id="create_content" title=""
96             new_state="" trigger="USER" before_script=""
97             after_script="">
98 
99  <guard>
100   <guard-role>Manager</guard-role>
101   <guard-role>SectionManager</guard-role>
102   <guard-role>Owner</guard-role>
103  </guard>
104  <transition-behavior behavior_id="allow-sub-create"/>
105 </transition>
106 <transition transition_id="defer" title=""
107             new_state="deferred" trigger="USER"
108             before_script="" after_script="">
109 
110  <guard>
111   <guard-role>Manager</guard-role>
112   <guard-role>SectionManager</guard-role>
113   <guard-role>Owner</guard-role>
114  </guard>
115 </transition>
116 <transition transition_id="enter_application_pin" title=""
117             new_state="application_pin_entered"
118             trigger="USER" before_script="" after_script="">
119 
120  <guard>
121   <guard-role>Manager</guard-role>
122   <guard-role>SectionManager</guard-role>
123   <guard-role>Owner</guard-role>
124  </guard>
125 </transition>
126 <transition transition_id="enter_clearance_pin" title=""
127             new_state="clearance_pin_entered"
128             trigger="USER" before_script="" after_script="">
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="pume_fail" title=""
147             new_state="pume_failed" trigger="USER"
148             before_script="" after_script="">
149 
150  <guard>
151   <guard-role>Manager</guard-role>
152   <guard-role>SectionManager</guard-role>
153   <guard-role>AdmissionOfficer</guard-role>
154  </guard>
155 </transition>
156 <transition transition_id="pume_pass" title=""
157             new_state="pume_passed" trigger="USER"
158             before_script="" after_script="">
159 
160  <guard>
161   <guard-role>Manager</guard-role>
162   <guard-role>SectionManager</guard-role>
163   <guard-role>AdmissionOfficer</guard-role>
164  </guard>
165 </transition>
166 <transition transition_id="reject_admission" title=""
167             new_state="admission_rejected" trigger="USER"
168             before_script="" after_script="">
169 
170  <guard>
171   <guard-role>Manager</guard-role>
172   <guard-role>SectionManager</guard-role>
173   <guard-role>AdmissionOfficer</guard-role>
174  </guard>
175 </transition>
176 <transition transition_id="reject_clearance" title=""
177             new_state="clearance_pin_entered"
178             trigger="USER" before_script="" after_script="">
179 
180  <guard>
181   <guard-role>Manager</guard-role>
182   <guard-role>SectionManager</guard-role>
183   <guard-role>ClearanceOfficer</guard-role>
184  </guard>
185 </transition>
186 <transition transition_id="request_clearence" title=""
187             new_state="clearence_requested" 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>Owner</guard-role>
194  </guard>
195 </transition>
196 <variable variable_id="time" for_catalog="True"
197           for_status="True" update_always="True">
198  <description>Time of the last transition</description>
199  <default>
200   
201   <expression>state_change/getDateTime</expression>
202  </default>
203  <guard>
204  </guard>
205 </variable>
206 <script script_id="open_application_personal"
207         type="Script (Python)"
208         filename="workflows/waeup_student_wf/scripts/open_application_personal.py"/>
209</cps-workflow>
Note: See TracBrowser for help on using the repository browser.