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

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

hostel can be booked in state application_pin_entered

  • Property svn:keywords set to Id
File size: 6.7 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="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="enter_application_pin"/>
40  <exit-transition transition_id="open"/>
41  <permission-map name="Modify portal content"
42                  acquired="True">
43  </permission-map>
44  <permission-map name="View" acquired="True">
45  </permission-map>
46 </state>
47 <state state_id="finally_rejected" title="">
48 </state>
49 <state state_id="pume_failed" title="">
50  <exit-transition transition_id="finally_reject"/>
51 </state>
52 <state state_id="pume_passed" title="">
53  <exit-transition transition_id="admit"/>
54  <exit-transition transition_id="reject_admission"/>
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="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="enter_application_pin" title=""
107             new_state="application_pin_entered"
108             trigger="USER" 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_clearance_pin" title=""
117             new_state="clearance_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="finally_reject" title=""
127             new_state="finally_rejected" trigger="USER"
128             before_script="" after_script="">
129
130  <guard>
131   <guard-role>Manager</guard-role>
132   <guard-role>SectionManager</guard-role>
133   <guard-role>ClearanceOfficer</guard-role>
134  </guard>
135 </transition>
136 <transition transition_id="pume_fail" title=""
137             new_state="pume_failed" 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>AdmissionOfficer</guard-role>
144  </guard>
145 </transition>
146 <transition transition_id="pume_pass" title=""
147             new_state="pume_passed" 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="reject_admission" title=""
157             new_state="admission_rejected" 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_clearance" title=""
167             new_state="clearance_pin_entered"
168             trigger="USER" before_script="" after_script="">
169
170  <guard>
171   <guard-role>Manager</guard-role>
172   <guard-role>SectionManager</guard-role>
173   <guard-role>ClearanceOfficer</guard-role>
174  </guard>
175 </transition>
176 <transition transition_id="request_clearence" title=""
177             new_state="clearence_requested" trigger="USER"
178             before_script="" after_script="">
179
180  <guard>
181   <guard-role>Manager</guard-role>
182   <guard-role>SectionManager</guard-role>
183   <guard-role>Owner</guard-role>
184  </guard>
185 </transition>
186 <variable variable_id="time" for_catalog="True"
187           for_status="True" update_always="True">
188  <description>Time of the last transition</description>
189  <default>
190
191   <expression>state_change/getDateTime</expression>
192  </default>
193  <guard>
194  </guard>
195 </variable>
196 <script script_id="open_application_personal"
197         type="Script (Python)"
198         filename="workflows/waeup_student_wf/scripts/open_application_personal.py"/>
199</cps-workflow>
Note: See TracBrowser for help on using the repository browser.