Retrait de l'onglet « Import » qui affichait l'applet java.
[Plinn.git] / profiles / photo / workflows / order_workflow / definition.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <dc-workflow workflow_id="order_workflow"
3 title="Order workflow" description=""
4 state_variable="review_state"
5 initial_state="recorded" manager_bypass="False">
6 <instance-creation-conditions>
7 <guard>
8 <guard-role>Authenticated</guard-role>
9 </guard>
10 </instance-creation-conditions>
11 <permission>Access contents information</permission>
12 <permission>Delete Owned Objects</permission>
13 <permission>Manage properties</permission>
14 <permission>Modify portal content</permission>
15 <permission>View</permission>
16 <state state_id="canceled" title="">
17 <permission-map name="Access contents information"
18 acquired="False">
19 <permission-role>Manager</permission-role>
20 <permission-role>Owner</permission-role>
21 </permission-map>
22 <permission-map name="Delete Owned Objects"
23 acquired="False">
24 <permission-role>Manager</permission-role>
25 </permission-map>
26 <permission-map name="Manage properties" acquired="False">
27 <permission-role>Manager</permission-role>
28 </permission-map>
29 <permission-map name="Modify portal content"
30 acquired="False">
31 <permission-role>Manager</permission-role>
32 </permission-map>
33 <permission-map name="View" acquired="False">
34 <permission-role>Manager</permission-role>
35 <permission-role>Owner</permission-role>
36 </permission-map>
37 </state>
38 <state state_id="done" title="">
39 <exit-transition transition_id="notify_sent"/>
40 <permission-map name="Access contents information"
41 acquired="False">
42 <permission-role>Manager</permission-role>
43 <permission-role>Owner</permission-role>
44 </permission-map>
45 <permission-map name="Delete Owned Objects"
46 acquired="False">
47 <permission-role>Manager</permission-role>
48 </permission-map>
49 <permission-map name="Manage properties" acquired="False">
50 <permission-role>Manager</permission-role>
51 </permission-map>
52 <permission-map name="Modify portal content"
53 acquired="False">
54 <permission-role>Manager</permission-role>
55 </permission-map>
56 <permission-map name="View" acquired="False">
57 <permission-role>Manager</permission-role>
58 <permission-role>Owner</permission-role>
59 </permission-map>
60 </state>
61 <state state_id="paid" title="">
62 <exit-transition transition_id="get_printing_list"/>
63 <exit-transition transition_id="notify_done"/>
64 <permission-map name="Access contents information"
65 acquired="False">
66 <permission-role>Manager</permission-role>
67 <permission-role>Owner</permission-role>
68 </permission-map>
69 <permission-map name="Delete Owned Objects"
70 acquired="False">
71 <permission-role>Manager</permission-role>
72 </permission-map>
73 <permission-map name="Manage properties" acquired="False">
74 <permission-role>Manager</permission-role>
75 </permission-map>
76 <permission-map name="Modify portal content"
77 acquired="False">
78 <permission-role>Manager</permission-role>
79 </permission-map>
80 <permission-map name="View" acquired="False">
81 <permission-role>Manager</permission-role>
82 <permission-role>Owner</permission-role>
83 </permission-map>
84 </state>
85 <state state_id="recorded" title="">
86 <exit-transition transition_id="cancel"/>
87 <exit-transition transition_id="manual_payment"/>
88 <exit-transition transition_id="paypal_pay"/>
89 <permission-map name="Access contents information"
90 acquired="False">
91 <permission-role>Manager</permission-role>
92 <permission-role>Owner</permission-role>
93 </permission-map>
94 <permission-map name="Delete Owned Objects"
95 acquired="False">
96 <permission-role>Manager</permission-role>
97 </permission-map>
98 <permission-map name="Manage properties" acquired="False">
99 <permission-role>Manager</permission-role>
100 <permission-role>Owner</permission-role>
101 </permission-map>
102 <permission-map name="Modify portal content"
103 acquired="False">
104 <permission-role>Manager</permission-role>
105 <permission-role>Owner</permission-role>
106 </permission-map>
107 <permission-map name="View" acquired="False">
108 <permission-role>Manager</permission-role>
109 <permission-role>Owner</permission-role>
110 </permission-map>
111 </state>
112 <state state_id="refused" title="">
113 <permission-map name="Access contents information"
114 acquired="False">
115 <permission-role>Manager</permission-role>
116 <permission-role>Owner</permission-role>
117 </permission-map>
118 <permission-map name="Delete Owned Objects"
119 acquired="False">
120 <permission-role>Manager</permission-role>
121 </permission-map>
122 <permission-map name="Manage properties" acquired="False">
123 <permission-role>Manager</permission-role>
124 </permission-map>
125 <permission-map name="Modify portal content"
126 acquired="False">
127 <permission-role>Manager</permission-role>
128 </permission-map>
129 <permission-map name="View" acquired="False">
130 <permission-role>Manager</permission-role>
131 <permission-role>Owner</permission-role>
132 </permission-map>
133 </state>
134 <state state_id="sent" title="">
135 <permission-map name="Access contents information"
136 acquired="False">
137 <permission-role>Manager</permission-role>
138 <permission-role>Owner</permission-role>
139 </permission-map>
140 <permission-map name="Delete Owned Objects"
141 acquired="False">
142 <permission-role>Manager</permission-role>
143 </permission-map>
144 <permission-map name="Manage properties" acquired="False">
145 <permission-role>Manager</permission-role>
146 </permission-map>
147 <permission-map name="Modify portal content"
148 acquired="False">
149 <permission-role>Manager</permission-role>
150 </permission-map>
151 <permission-map name="View" acquired="False">
152 <permission-role>Manager</permission-role>
153 <permission-role>Owner</permission-role>
154 </permission-map>
155 </state>
156 <transition transition_id="cancel" title=""
157 new_state="canceled" trigger="USER"
158 before_script="" after_script="relistCopies">
159 <action url="%(content_url)s/order_cancel_form"
160 category="workflow" icon="">Cancel</action>
161 <guard>
162 <guard-permission>Manage print orders</guard-permission>
163 </guard>
164 </transition>
165 <transition transition_id="get_printing_list" title=""
166 new_state="" trigger="USER" before_script=""
167 after_script="">
168 <action url="%(object_url)s/order_printing_list"
169 category="workflow" icon="">Printing list</action>
170 <guard>
171 <guard-permission>Manage print orders</guard-permission>
172 </guard>
173 </transition>
174 <transition transition_id="manual_payment" title=""
175 new_state="paid" trigger="USER"
176 before_script="" after_script="">
177 <action url="%(content_url)s/order_manual_payment_form"
178 category="workflow" icon="">Manual payment</action>
179 <guard>
180 <guard-permission>Manage print orders</guard-permission>
181 </guard>
182 </transition>
183 <transition transition_id="notify_done" title=""
184 new_state="done" trigger="USER"
185 before_script="" after_script="">
186 <action url="%(content_url)s/order_notify_done_form"
187 category="workflow" icon="">Notify done</action>
188 <guard>
189 <guard-permission>Manage print orders</guard-permission>
190 </guard>
191 </transition>
192 <transition transition_id="notify_sent" title=""
193 new_state="sent" trigger="USER"
194 before_script="" after_script="">
195 <action url="%(content_url)s/order_notify_sent_form"
196 category="workflow" icon="">Notify sent</action>
197 <guard>
198 <guard-permission>Manage print orders</guard-permission>
199 </guard>
200 </transition>
201 <transition transition_id="paypal_pay" title=""
202 new_state="paid" trigger="USER"
203 before_script="" after_script="">
204
205 <guard>
206 <guard-role>Owner</guard-role>
207 </guard>
208 </transition>
209 <variable variable_id="action" for_catalog="False"
210 for_status="True" update_always="True">
211 <description>The last transition</description>
212 <default>
213
214 <expression>transition/getId|nothing</expression>
215 </default>
216 <guard>
217 </guard>
218 </variable>
219 <variable variable_id="actor" for_catalog="False"
220 for_status="True" update_always="True">
221 <description>The ID of the user who performed the last transition</description>
222 <default>
223
224 <expression>user/getId</expression>
225 </default>
226 <guard>
227 </guard>
228 </variable>
229 <variable variable_id="comments" for_catalog="False"
230 for_status="True" update_always="True">
231 <description>Comments about the last transition</description>
232 <default>
233
234 <expression>python:state_change.kwargs.get('comment', '')</expression>
235 </default>
236 <guard>
237 </guard>
238 </variable>
239 <variable variable_id="email_sent" for_catalog="False"
240 for_status="True" update_always="True">
241 <default>
242
243 <expression>python:scripts.sendNotificationEmail(state_change) or state_change.kwargs.get('email_sent', [])</expression>
244 </default>
245 <guard>
246 </guard>
247 </variable>
248 <variable variable_id="review_history" for_catalog="False"
249 for_status="False" update_always="False">
250 <description>Provides access to workflow history</description>
251 <default>
252
253 <expression>state_change/getHistory</expression>
254 </default>
255 <guard>
256 <guard-permission>Request review</guard-permission>
257 <guard-permission>Review portal content</guard-permission>
258 </guard>
259 </variable>
260 <variable variable_id="time" for_catalog="False"
261 for_status="True" update_always="True">
262 <description>Time of the last transition</description>
263 <default>
264
265 <expression>state_change/getDateTime</expression>
266 </default>
267 <guard>
268 </guard>
269 </variable>
270 <variable variable_id="tracking_number" for_catalog="False"
271 for_status="True" update_always="False">
272 <default>
273
274
275 </default>
276 <guard>
277 </guard>
278 </variable>
279 <variable variable_id="tracking_url" for_catalog="False"
280 for_status="True" update_always="False">
281 <default>
282
283
284 </default>
285 <guard>
286 </guard>
287 </variable>
288 <script script_id="relistCopies" type="Script (Python)"
289 filename="workflows/order_workflow/scripts/relistCopies.py"
290 module="" function=""/>
291 <script script_id="sendNotificationEmail"
292 type="Script (Python)"
293 filename="workflows/order_workflow/scripts/sendNotificationEmail.py"
294 module="" function=""/>
295 </dc-workflow>