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

Last change on this file since 645 was 643, checked in by joachim, 18 years ago

workflowdefinition

  • Property svn:keywords set to Id
File size: 7.4 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  <permission-map name="Modify portal content"
22                  acquired="True">
23   <permission-role>Anonymous</permission-role>
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="closed" title="">
38  <exit-transition transition_id="open"/>
39 </state>
40 <state state_id="created" title="">
41  <exit-transition transition_id="create_content"/>
42  <exit-transition transition_id="enter_application_pin"/>
43  <exit-transition transition_id="open"/>
44  <permission-map name="Modify portal content"
45                  acquired="False">
46   <permission-role>Owner</permission-role>
47   <permission-role>Manager</permission-role>
48   <permission-role>SectionManager</permission-role>
49  </permission-map>
50  <permission-map name="View" acquired="True">
51  </permission-map>
52 </state>
53 <state state_id="finally_rejected" title="">
54 </state>
55 <state state_id="opened" title="">
56  <exit-transition transition_id="close"/>
57  <permission-map name="Modify portal content"
58                  acquired="True">
59   <permission-role>Owner</permission-role>
60  </permission-map>
61  <permission-map name="View" acquired="True">
62  </permission-map>
63 </state>
64 <state state_id="pume_failed" title="">
65  <exit-transition transition_id="finally_reject"/>
66 </state>
67 <state state_id="pume_passed" title="">
68  <exit-transition transition_id="admit"/>
69  <exit-transition transition_id="reject_admission"/>
70 </state>
71 <transition transition_id="admit" title=""
72             new_state="admitted" trigger="USER"
73             before_script="" after_script="">
74 
75  <guard>
76   <guard-role>Manager</guard-role>
77   <guard-role>SectionManager</guard-role>
78   <guard-role>AdmissionOfficer</guard-role>
79  </guard>
80 </transition>
81 <transition transition_id="apply_for_admission" title=""
82             new_state="admission_applied" trigger="USER"
83             before_script="" after_script="">
84 
85  <guard>
86   <guard-role>Manager</guard-role>
87   <guard-role>SectionManager</guard-role>
88   <guard-role>Owner</guard-role>
89  </guard>
90 </transition>
91 <transition transition_id="clear_and_validate" title=""
92             new_state="cleared_and_validated"
93             trigger="USER" before_script="" after_script="">
94 
95  <guard>
96   <guard-role>Manager</guard-role>
97   <guard-role>SectionManager</guard-role>
98   <guard-role>ClearanceOfficer</guard-role>
99  </guard>
100 </transition>
101 <transition transition_id="close" title=""
102             new_state="closed" trigger="USER"
103             before_script="" after_script="">
104 
105  <guard>
106   <guard-role>Manager</guard-role>
107   <guard-role>SectionManager</guard-role>
108  </guard>
109 </transition>
110 <transition transition_id="create" title=""
111             new_state="created" trigger="USER"
112             before_script="" after_script="">
113 
114  <guard>
115  </guard>
116  <transition-behavior behavior_id="allow-sub-create"/>
117  <transition-behavior behavior_id="initial-create"/>
118 </transition>
119 <transition transition_id="create_content" title=""
120             new_state="" trigger="USER" before_script=""
121             after_script="">
122 
123  <guard>
124  </guard>
125  <transition-behavior behavior_id="allow-sub-create"/>
126  <transition-behavior behavior_id="allow-sub-delete"/>
127 </transition>
128 <transition transition_id="enter_application_pin" title=""
129             new_state="application_pin_entered"
130             trigger="USER" before_script="" after_script="">
131 
132  <guard>
133   <guard-permission>Modify portal content</guard-permission>
134   <guard-permission></guard-permission>
135  </guard>
136 </transition>
137 <transition transition_id="enter_clearance_pin" title=""
138             new_state="clearance_pin_entered"
139             trigger="USER" before_script="" after_script="">
140 
141  <guard>
142   <guard-role>Manager</guard-role>
143   <guard-role>SectionManager</guard-role>
144   <guard-role>Owner</guard-role>
145  </guard>
146 </transition>
147 <transition transition_id="finally_reject" title=""
148             new_state="finally_rejected" 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>ClearanceOfficer</guard-role>
155  </guard>
156 </transition>
157 <transition transition_id="open" title=""
158             new_state="opened" trigger="USER"
159             before_script="" after_script="">
160 
161  <guard>
162   <guard-role>Manager</guard-role>
163   <guard-role>SectionManager</guard-role>
164  </guard>
165 </transition>
166 <transition transition_id="pume_fail" title=""
167             new_state="pume_failed" 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="pume_pass" title=""
177             new_state="pume_passed" 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>AdmissionOfficer</guard-role>
184  </guard>
185 </transition>
186 <transition transition_id="reject_admission" title=""
187             new_state="admission_rejected" 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>AdmissionOfficer</guard-role>
194  </guard>
195 </transition>
196 <transition transition_id="reject_clearance" title=""
197             new_state="clearance_pin_entered"
198             trigger="USER" before_script="" 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.