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

Last change on this file since 511 was 486, checked in by joachim, 18 years ago

svn -R propset svn:keywords "Id" .
added layout_application_/edit/create/view
and cleaned that up.

  • Property svn:keywords set to Id
File size: 7.2 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_rejected" title="">
9  <exit-transition transition_id="finally_reject"/>
10 </state>
11 <state state_id="admitted" title="">
12  <exit-transition transition_id="enter_clearance_pin"/>
13 </state>
14 <state state_id="application_pin_entered" title="">
15  <exit-transition transition_id="apply_for_admission"/>
16 </state>
17 <state state_id="admission_applied" title="">
18  <exit-transition transition_id="pume_fail"/>
19  <exit-transition transition_id="pume_pass"/>
20 </state>
21 <state state_id="clearance_pin_entered" title="">
22  <exit-transition transition_id="request_clearence"/>
23 </state>
24 <state state_id="cleared_and_validated" title="">
25 </state>
26 <state state_id="clearence_requested" title="">
27  <exit-transition transition_id="clear_and_validate"/>
28  <exit-transition transition_id="reject_clearance"/>
29 </state>
30 <state state_id="closed" title="">
31  <exit-transition transition_id="open"/>
32 </state>
33 <state state_id="created" title="">
34  <exit-transition transition_id="create_content"/>
35  <exit-transition transition_id="enter_application_pin"/>
36  <exit-transition transition_id="open"/>
37  <permission-map name="Modify portal content"
38                  acquired="False">
39   <permission-role>Manager</permission-role>
40   <permission-role>SectionManager</permission-role>
41  </permission-map>
42  <permission-map name="View" acquired="True">
43  </permission-map>
44 </state>
45 <state state_id="finally_rejected" title="">
46 </state>
47 <state state_id="opened" title="">
48  <exit-transition transition_id="close"/>
49  <permission-map name="Modify portal content"
50                  acquired="True">
51   <permission-role>Owner</permission-role>
52  </permission-map>
53  <permission-map name="View" acquired="True">
54  </permission-map>
55 </state>
56 <state state_id="pume_failed" title="">
57  <exit-transition transition_id="finally_reject"/>
58 </state>
59 <state state_id="pume_passed" title="">
60  <exit-transition transition_id="admit"/>
61  <exit-transition transition_id="reject_admission"/>
62 </state>
63 <transition transition_id="admit" title=""
64             new_state="admitted" trigger="USER"
65             before_script="" after_script="">
66
67  <guard>
68   <guard-role>Manager</guard-role>
69   <guard-role>SectionManager</guard-role>
70   <guard-role>AdmissionOfficer</guard-role>
71  </guard>
72 </transition>
73 <transition transition_id="apply_for_admission" title=""
74             new_state="admission_applied" trigger="USER"
75             before_script=""
76             after_script="">
77
78  <guard>
79   <guard-role>Manager</guard-role>
80   <guard-role>SectionManager</guard-role>
81   <guard-role>Owner</guard-role>
82  </guard>
83 </transition>
84 <transition transition_id="clear_and_validate" title=""
85             new_state="cleared_and_validated"
86             trigger="USER" before_script=""
87             after_script="">
88
89  <guard>
90   <guard-role>Manager</guard-role>
91   <guard-role>SectionManager</guard-role>
92   <guard-role>ClearanceOfficer</guard-role>
93  </guard>
94 </transition>
95 <transition transition_id="close" title=""
96             new_state="closed" trigger="USER"
97             before_script="" after_script="">
98
99  <guard>
100   <guard-role>Manager</guard-role>
101   <guard-role>SectionManager</guard-role>
102  </guard>
103 </transition>
104 <transition transition_id="create" title=""
105             new_state="created" trigger="USER"
106             before_script="" after_script="">
107
108  <guard>
109  </guard>
110  <transition-behavior behavior_id="allow-sub-create"/>
111  <transition-behavior behavior_id="initial-create"/>
112 </transition>
113 <transition transition_id="create_content" title=""
114             new_state="" trigger="USER" before_script=""
115             after_script="">
116
117  <guard>
118  </guard>
119  <transition-behavior behavior_id="allow-sub-create"/>
120  <transition-behavior behavior_id="allow-sub-delete"/>
121 </transition>
122 <transition transition_id="enter_application_pin" title=""
123             new_state="application_pin_entered"
124             trigger="USER"
125             before_script=""
126             after_script="open_application_personal">
127
128  <guard>
129   <guard-role>Manager</guard-role>
130   <guard-role>SectionManager</guard-role>
131   <guard-role>Owner</guard-role>
132  </guard>
133 </transition>
134 <transition transition_id="enter_clearance_pin" title=""
135             new_state="clearance_pin_entered"
136             trigger="USER"
137             before_script=""
138             after_script="">
139
140  <guard>
141   <guard-role>Manager</guard-role>
142   <guard-role>SectionManager</guard-role>
143   <guard-role>Owner</guard-role>
144  </guard>
145 </transition>
146 <transition transition_id="finally_reject" title=""
147             new_state="finally_rejected" 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>ClearanceOfficer</guard-role>
154  </guard>
155 </transition>
156 <transition transition_id="open" title=""
157             new_state="opened" trigger="USER"
158             before_script="" after_script="">
159
160  <guard>
161   <guard-role>Manager</guard-role>
162   <guard-role>SectionManager</guard-role>
163  </guard>
164 </transition>
165 <transition transition_id="pume_fail" title=""
166             new_state="pume_failed" trigger="USER"
167             before_script="" after_script="">
168
169  <guard>
170   <guard-role>Manager</guard-role>
171   <guard-role>SectionManager</guard-role>
172   <guard-role>AdmissionOfficer</guard-role>
173  </guard>
174 </transition>
175 <transition transition_id="pume_pass" title=""
176             new_state="pume_passed" trigger="USER"
177             before_script="" after_script="">
178
179  <guard>
180   <guard-role>Manager</guard-role>
181   <guard-role>SectionManager</guard-role>
182   <guard-role>AdmissionOfficer</guard-role>
183  </guard>
184 </transition>
185 <transition transition_id="reject_admission" title=""
186             new_state="admission_rejected" trigger="USER"
187             before_script="" after_script="">
188
189  <guard>
190   <guard-role>Manager</guard-role>
191   <guard-role>SectionManager</guard-role>
192   <guard-role>AdmissionOfficer</guard-role>
193  </guard>
194 </transition>
195 <transition transition_id="reject_clearance" title=""
196             new_state="clearance_pin_entered"
197             trigger="USER" before_script=""
198             after_script="">
199
200  <guard>
201   <guard-role>Manager</guard-role>
202   <guard-role>SectionManager</guard-role>
203   <guard-role>ClearanceOfficer</guard-role>
204  </guard>
205 </transition>
206 <transition transition_id="request_clearence" title=""
207             new_state="clearence_requested" trigger="USER"
208             before_script="" after_script="">
209
210  <guard>
211   <guard-role>Manager</guard-role>
212   <guard-role>SectionManager</guard-role>
213   <guard-role>Owner</guard-role>
214  </guard>
215 </transition>
216 <script script_id="open_application_personal"
217         type="Script (Python)"
218         filename="workflows/waeup_student_wf/scripts/open_application_personal.py"/>
219</cps-workflow>
Note: See TracBrowser for help on using the repository browser.