source: ZMS/trunk/import/example1.workflow.xml @ 1229

Revision 1229, 25.0 KB checked in by zmsdev, 18 months ago (diff)

jQuery UI

Line 
1<?xml version="1.0" encoding="utf-8"?>
2<dictionary>
3<item key="activities" type="list"><list>
4<item><![CDATA[AC_CHANGED]]></item>
5<item type="dictionary"><dictionary>
6<item key="icon"></item>
7<item key="name"><![CDATA[Changed]]></item>
8</dictionary>
9</item>
10<item><![CDATA[AC_REQUESTED]]></item>
11<item type="dictionary"><dictionary>
12<item key="icon" type="image">
13<data width="20" height="20" content_type="image/gif" filename="state_requested.gif" type="image">47494638396114001400b30000b0b0fffefeff4e50b27278a57480b2cad5f48aa8d8b6daffcde5fe55a7edffffa0ed0000cecece646464ffffff00000021f9040100000e002c000000001400140000046dd0c949abbd386b2df66d4ce755a0609c27e1954d101484913574e922442253b51228b4d08b40ac081abe5a4df002a828c79fd4e763e28c48a91284400c240b4994aa0d74bd8e45d87124d7188805e230504f8e596a23ae3ed827340e5b676a7f190388896a5f23146b8d908d11003b</data></item>
14<item key="name"><![CDATA[Commit requested]]></item>
15</dictionary>
16</item>
17<item><![CDATA[AC_REJECTED]]></item>
18<item type="dictionary"><dictionary>
19<item key="icon" type="image">
20<data width="20" height="20" content_type="image/gif" filename="state_rejected.gif" type="image">47494638396114001400c4ff00b0b0fffefeff4e50b27278a57480b2cad5f48aa8d8cde5fe55a7edffffa0cf3001d61901e15947e3604fe46b5be77769e88073fffdfdcecece646464c0c0c000000000000000000000000000000000000000000000000000000000000000000021f90401000014002c000000001400140000057d20258e64699e68aaaec27a4e52eb96b060dc37e1d653101404436a42acf90e048490544c0412c4d88f402d0926ce6251f003e848d7a7d8e954981556ac58bb782c168c05b847162b18110824c2408bae75450a6d11110e0b7e14576a6413830e856e8944145a13070a0d790f86722803a0030b876d9e33678933aa3321003b2e21003b</data></item>
21<item key="name"><![CDATA[Commit rejected]]></item>
22</dictionary>
23</item>
24<item><![CDATA[AC_COMMITTED]]></item>
25<item type="dictionary"><dictionary>
26<item key="icon"></item>
27<item key="name"><![CDATA[Committed]]></item>
28</dictionary>
29</item>
30<item><![CDATA[AC_ROLLEDBACK]]></item>
31<item type="dictionary"><dictionary>
32<item key="icon"></item>
33<item key="name"><![CDATA[Rolled back]]></item>
34</dictionary>
35</item>
36</list>
37</item>
38<item key="transitions" type="list"><list>
39<item><![CDATA[TR_ENTER]]></item>
40<item type="dictionary"><dictionary>
41<item key="dtml"></item>
42<item key="from"></item>
43<item key="name"><![CDATA[Enter Workflow]]></item>
44<item key="performer" type="list"><list>
45</list>
46</item>
47<item key="to" type="list"><list>
48<item><![CDATA[AC_CHANGED]]></item>
49</list>
50</item>
51</dictionary>
52</item>
53<item><![CDATA[TR_EXPRESSCOMMIT]]></item>
54<item type="dictionary"><dictionary>
55<item key="dtml"><![CDATA[<!-- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
56     +-  F o r m
57     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -->
58<dtml-if "REQUEST.get('btn','')==''">
59
60<!-- ##### Form #### -->
61<dtml-var manage_page_header>
62</head>
63<dtml-var "manage_tabs(_,_,my_manage_options=[{'label':'Commit','action':''}])">
64<form name="form0" method="post">
65<input type="hidden" name="preview" value="preview">
66<input type="hidden" name="lang" value="<dtml-var lang>">
67<input type="hidden" name="custom" value="<dtml-var custom>">
68<table cellspacing="0" cellpadding="1" border="0" width="100%">
69<colgroup>
70 <col width="20%" />
71 <col width="80%" />
72</colgroup>
73<tr>
74 <td colspan="2"><dtml-var "f_headline(_,_,headline='Express commit!')"></td>
75</tr>
76<tr>
77 <td><div class="form-label">Comment</div></td>
78 <td><dtml-var "getTextInput(fmName='form0', elName='work_desc', size=40, value='')"></td>
79</tr>
80</table>
81<hr size="1">
82<dtml-call "REQUEST.set('submitBtn',getZMILangStr('BTN_SEND'))"><input class="ui-button ui-state-default ui-corner-all" name="btn" type="submit" value="<dtml-var submitBtn html_quote>" accesskey="<dtml-var "submitBtn[0]" html_quote>" title="ALT+<dtml-var "submitBtn[0]" html_quote>" onclick="processMultiselectsOnFormSubmit(); self.btnClicked=this.value;">&nbsp;&nbsp;
83<dtml-call "REQUEST.set('submitBtn',getZMILangStr('BTN_CANCEL'))"><input class="ui-button ui-state-default ui-corner-all" name="btn" type="submit" value="<dtml-var submitBtn html_quote>" accesskey="<dtml-var "submitBtn[0]" html_quote>" title="ALT+<dtml-var "submitBtn[0]" html_quote>" onclick="self.btnClicked=this.value;">
84<dtml-call "REQUEST.set('submitBtn',getZMILangStr('BTN_RESET'))"><input class="ui-button ui-state-default ui-corner-all" name="btn" type="reset"  value="<dtml-var submitBtn html_quote>" accesskey="<dtml-var "submitBtn[0]" html_quote>" title="ALT+<dtml-var "submitBtn[0]" html_quote>" onclick="self.btnClicked=this.value;">
85<br/><br/>
86</form>
87<dtml-var manage_page_footer>
88
89<!-- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
90     +-  E x e c u t e
91     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -->
92<dtml-elif "REQUEST.get('btn','')==getZMILangStr('BTN_SEND')">
93
94<!-- ##### Notification #### -->
95<!-- Recipients -->
96<dtml-call "REQUEST.set('s_mto',getRecipientsByRole(['ZMSEditor'],REQUEST))">
97<!-- Subject -->
98<dtml-call "REQUEST.set('s_msubject','[ZMS::%s]: Changes were express committed'%getDocumentElement().getTitle(REQUEST))">
99<!-- Body -->
100<dtml-call "REQUEST.set('l_mbody',[])">
101<dtml-call "l_mbody.append('Changes were express committed.\n')">
102<dtml-call "l_mbody.append('Reason: %s\n'%REQUEST.get('work_desc'))">
103<dtml-call "l_mbody.append('\nWith best regards\n')">
104<dtml-call "l_mbody.append('%s\n'%AUTHENTICATED_USER.getId())">
105<dtml-call "l_mbody.append('------------------------\n')">
106<dtml-call "l_mbody.append('Message generated by ZMS\n')">
107<!-- Send notification via MailHost -->
108<dtml-call "sendMail(s_mto, s_msubject, ''.join(l_mbody), REQUEST)">
109
110<!-- ##### Commit #### -->
111<dtml-call "commitObj(REQUEST)">
112
113<!-- Return with message -->
114<dtml-call "REQUEST.set('s_message','Changes were express-committed.')">
115<dtml-return "RESPONSE.redirect(url_append_params('manage_wfTransitionFinalize',{'lang':lang, 'custom': custom, 'manage_tabs_message':s_message, 'work_desc':REQUEST.get('work_desc')}))">
116
117<!-- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
118     +-  C a n c e l
119     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -->
120<dtml-else>
121<dtml-call "REQUEST.set('s_message','Operation cancelled.')">
122<dtml-return "RESPONSE.redirect(url_append_params('manage_main',{'lang':lang, 'custom': custom, 'manage_tabs_message':s_message}))">
123
124</dtml-if>]]></item>
125<item key="from" type="list"><list>
126<item><![CDATA[AC_CHANGED]]></item>
127<item><![CDATA[AC_REQUESTED]]></item>
128<item><![CDATA[AC_REJECTED]]></item>
129</list>
130</item>
131<item key="name"><![CDATA[Express commit!]]></item>
132<item key="performer" type="list"><list>
133<item><![CDATA[ZMSEditor]]></item>
134<item><![CDATA[ZMSAuthor]]></item>
135<item><![CDATA[ZMSAdministrator]]></item>
136</list>
137</item>
138<item key="to" type="list"><list>
139<item><![CDATA[AC_COMMITTED]]></item>
140</list>
141</item>
142</dictionary>
143</item>
144<item><![CDATA[TR_REQUEST]]></item>
145<item type="dictionary"><dictionary>
146<item key="dtml"><![CDATA[<!-- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
147     +-  F o r m
148     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -->
149<dtml-if "REQUEST.get('btn','')==''">
150
151<!-- ##### Form #### -->
152<dtml-var manage_page_header>
153</head>
154<dtml-var "manage_tabs(_,_,my_manage_options=[{'label':'Commit','action':''}])">
155<form name="form0" method="post">
156<input type="hidden" name="preview" value="preview">
157<input type="hidden" name="lang" value="<dtml-var lang>">
158<input type="hidden" name="custom" value="<dtml-var custom>">
159<table cellspacing="0" cellpadding="1" border="0" width="100%">
160<colgroup>
161 <col width="20%" />
162 <col width="80%" />
163</colgroup>
164<tr>
165 <td colspan="2"><dtml-var "f_headline(_,_,headline='Request commit')"></td>
166</tr>
167<tr>
168 <td><div class="form-label">Comment</div></td>
169 <td><dtml-var "getTextInput(fmName='form0', elName='work_desc', size=40, value='')"></td>
170</tr>
171</table>
172<hr size="1">
173<dtml-call "REQUEST.set('submitBtn',getZMILangStr('BTN_SEND'))"><input class="ui-button ui-state-default ui-corner-all" name="btn" type="submit" value="<dtml-var submitBtn html_quote>" accesskey="<dtml-var "submitBtn[0]" html_quote>" title="ALT+<dtml-var "submitBtn[0]" html_quote>" onclick="processMultiselectsOnFormSubmit(); self.btnClicked=this.value;">&nbsp;&nbsp;
174<dtml-call "REQUEST.set('submitBtn',getZMILangStr('BTN_CANCEL'))"><input class="ui-button ui-state-default ui-corner-all" name="btn" type="submit" value="<dtml-var submitBtn html_quote>" accesskey="<dtml-var "submitBtn[0]" html_quote>" title="ALT+<dtml-var "submitBtn[0]" html_quote>" onclick="self.btnClicked=this.value;">
175<dtml-call "REQUEST.set('submitBtn',getZMILangStr('BTN_RESET'))"><input class="ui-button ui-state-default ui-corner-all" name="btn" type="reset"  value="<dtml-var submitBtn html_quote>" accesskey="<dtml-var "submitBtn[0]" html_quote>" title="ALT+<dtml-var "submitBtn[0]" html_quote>" onclick="self.btnClicked=this.value;">
176<br/><br/>
177</form>
178<dtml-var manage_page_footer>
179
180<!-- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
181     +-  E x e c u t e
182     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -->
183<dtml-elif "REQUEST.get('btn','')==getZMILangStr('BTN_SEND')">
184
185<!-- ##### Notification #### -->
186<!-- Recipients -->
187<dtml-call "REQUEST.set('s_mto',getRecipientsByRole(['ZMSEditor'],REQUEST))">
188<!-- Subject -->
189<dtml-call "REQUEST.set('s_msubject','[ZMS-Workflow::%s - %s]: Request for committing my changes'%(getDocumentElement().getTitlealt(REQUEST),getTitlealt(REQUEST)))">
190<!-- Body -->
191<dtml-call "REQUEST.set('l_mbody',[])">
192<dtml-call "l_mbody.append('Request for committing my changes:\n')">
193<!-- Micronavigation -->
194<dtml-call "l_mbody.append('%s: \t'%display_type(REQUEST))">
195<dtml-in "breadcrumbs_obj_path()">
196 <dtml-call "l_mbody.append('>> %s'%getTitlealt(REQUEST))">
197</dtml-in>
198<dtml-call "l_mbody.append('\n')">
199<!-- Link to Management Interface -->
200<dtml-call "l_mbody.append('URL: \t%s/manage\n\n'%absolute_url())">
201<dtml-call "REQUEST.set('res',[this()])">
202<dtml-call "res.extend(getChildNodes(REQUEST))">
203<dtml-in res>
204 <dtml-if "isObjModified(REQUEST)">
205  <dtml-call "REQUEST.set('s_mbody',[])">
206  <dtml-call "s_mbody.append('- %s'%(display_type(REQUEST)))">
207  <dtml-call "s_mbody.append(' [')">
208  <dtml-call "REQUEST.set('s_mstate',[])">
209  <dtml-in "['STATE_NEW','STATE_MODIFIED','STATE_DELETED']">
210   <dtml-let state=sequence-item>
211    <dtml-if "inObjStates([state],REQUEST)">
212     <dtml-if s_mstate>
213      <dtml-call "s_mstate.append(',')">
214     </dtml-if>
215     <dtml-call "s_mstate.append(getZMILangStr(state))">
216    </dtml-if>
217   </dtml-let>
218  </dtml-in>
219  <dtml-call "s_mbody.extend(s_mstate)">
220  <dtml-call "s_mbody.append('] ')">
221  <dtml-call "s_mbody.append('%s '%(getLangFmtDate(getObjProperty('change_dt',REQUEST))))">
222  <dtml-call "s_mbody.append('%s %s '%(getZMILangStr('BY'),getObjProperty('change_uid',REQUEST)))">
223  <dtml-call "l_mbody.append(''.join(s_mbody)+'\n')">
224 </dtml-if>
225</dtml-in>
226<dtml-call "l_mbody.append('\n')">
227<!-- Comment -->
228<dtml-call "l_mbody.append('Comment by %s:\n'%AUTHENTICATED_USER.getId())">
229<dtml-call "l_mbody.append('========================\n')">
230<dtml-call "l_mbody.append('%s\n'%REQUEST.get('work_desc'))">
231<dtml-call "l_mbody.append('========================\n\n')">
232<dtml-call "l_mbody.append('\nWith best regards\n')">
233<dtml-call "l_mbody.append('%s\n'%AUTHENTICATED_USER.getId())">
234<dtml-call "l_mbody.append('------------------------\n')">
235<dtml-call "l_mbody.append('Message generated by ZMS\n')">
236<!-- Send notification via MailHost -->
237<dtml-call "sendMail(s_mto, s_msubject, ''.join(l_mbody), REQUEST)">
238
239<!-- Return with message -->
240<dtml-call "REQUEST.set('s_message','Sent request for committing your changes.')">
241<dtml-return "RESPONSE.redirect(url_append_params('manage_wfTransitionFinalize',{'lang':lang, 'custom': custom, 'manage_tabs_message':s_message}))">
242
243<!-- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
244     +-  C a n c e l
245     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -->
246<dtml-else>
247<dtml-call "REQUEST.set('s_message','Operation cancelled.')">
248<dtml-return "RESPONSE.redirect(url_append_params('manage_main',{'lang':lang, 'custom': custom, 'manage_tabs_message':s_message}))">
249
250</dtml-if>]]></item>
251<item key="from" type="list"><list>
252<item><![CDATA[AC_CHANGED]]></item>
253<item><![CDATA[AC_REJECTED]]></item>
254</list>
255</item>
256<item key="name"><![CDATA[Request commit]]></item>
257<item key="performer" type="list"><list>
258<item><![CDATA[ZMSAdministrator]]></item>
259<item><![CDATA[ZMSAuthor]]></item>
260<item><![CDATA[ZMSEditor]]></item>
261</list>
262</item>
263<item key="to" type="list"><list>
264<item><![CDATA[AC_REQUESTED]]></item>
265</list>
266</item>
267</dictionary>
268</item>
269<item><![CDATA[TR_REJECT]]></item>
270<item type="dictionary"><dictionary>
271<item key="dtml"><![CDATA[<!-- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
272     +-  F o r m
273     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -->
274<dtml-if "REQUEST.get('btn','')==''">
275
276<!-- ##### Form #### -->
277<dtml-var manage_page_header>
278</head>
279<dtml-var "manage_tabs(_,_,my_manage_options=[{'label':'Reject','action':''}])">
280<form name="form0" method="post">
281<input type="hidden" name="preview" value="preview">
282<input type="hidden" name="lang" value="<dtml-var lang>">
283<input type="hidden" name="custom" value="<dtml-var custom>">
284<table cellspacing="0" cellpadding="1" border="0" width="100%">
285<colgroup>
286 <col width="20%" />
287 <col width="80%" />
288</colgroup>
289<tr>
290 <td colspan="2"><dtml-var "f_headline(_,_,headline='Reject commit')"></td>
291</tr>
292<tr>
293 <td><div class="form-label">Comment</div></td>
294 <td><dtml-var "getTextInput(fmName='form0', elName='work_desc', size=40, value='')"></td>
295</tr>
296</table>
297<hr size="1">
298<dtml-call "REQUEST.set('submitBtn',getZMILangStr('BTN_SEND'))"><input class="ui-button ui-state-default ui-corner-all" name="btn" type="submit" value="<dtml-var submitBtn html_quote>" accesskey="<dtml-var "submitBtn[0]" html_quote>" title="ALT+<dtml-var "submitBtn[0]" html_quote>" onclick="processMultiselectsOnFormSubmit(); self.btnClicked=this.value;">&nbsp;&nbsp;
299<dtml-call "REQUEST.set('submitBtn',getZMILangStr('BTN_CANCEL'))"><input class="ui-button ui-state-default ui-corner-all" name="btn" type="submit" value="<dtml-var submitBtn html_quote>" accesskey="<dtml-var "submitBtn[0]" html_quote>" title="ALT+<dtml-var "submitBtn[0]" html_quote>" onclick="self.btnClicked=this.value;">
300<dtml-call "REQUEST.set('submitBtn',getZMILangStr('BTN_RESET'))"><input class="ui-button ui-state-default ui-corner-all" name="btn" type="reset"  value="<dtml-var submitBtn html_quote>" accesskey="<dtml-var "submitBtn[0]" html_quote>" title="ALT+<dtml-var "submitBtn[0]" html_quote>" onclick="self.btnClicked=this.value;">
301<br/><br/>
302</form>
303<dtml-var manage_page_footer>
304
305<!-- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
306     +-  E x e c u t e
307     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -->
308<dtml-elif "REQUEST.get('btn','')==getZMILangStr('BTN_SEND')">
309
310<!-- ##### Notification #### -->
311<!-- Recipients -->
312<dtml-call "REQUEST.set('s_mto',getRecipientsByRole(['ZMSEditor'],REQUEST))">
313<!-- Subject -->
314<dtml-call "REQUEST.set('s_msubject','[ZMS-Workflow::%s - %s]: Committing your changes was rejected'%(getDocumentElement().getTitlealt(REQUEST),getTitlealt(REQUEST)))">
315<!-- Body -->
316<dtml-call "REQUEST.set('l_mbody',[])">
317<dtml-call "l_mbody.append('Committing your changes was rejected.\n')">
318<!-- Micronavigation -->
319<dtml-call "l_mbody.append('%s: \t'%display_type(REQUEST))">
320<dtml-in "breadcrumbs_obj_path()">
321 <dtml-call "l_mbody.append('>> %s'%getTitlealt(REQUEST))">
322</dtml-in>
323<dtml-call "l_mbody.append('\n')">
324<!-- Link to Management Interface -->
325<dtml-call "l_mbody.append('URL: \t%s/manage\n\n'%absolute_url())">
326<!-- Comment -->
327<dtml-call "l_mbody.append('Comment by %s:\n'%AUTHENTICATED_USER.getId())">
328<dtml-call "l_mbody.append('========================\n')">
329<dtml-call "l_mbody.append('%s\n'%REQUEST.get('work_desc'))">
330<dtml-call "l_mbody.append('========================\n\n')">
331<dtml-call "l_mbody.append('\nWith best regards\n')">
332<dtml-call "l_mbody.append('%s\n'%AUTHENTICATED_USER.getId())">
333<dtml-call "l_mbody.append('------------------------\n')">
334<dtml-call "l_mbody.append('Message generated by ZMS\n')">
335<!-- Send notification via MailHost -->
336<dtml-call "sendMail(s_mto, s_msubject, ''.join(l_mbody), REQUEST)">
337
338<!-- Return with message -->
339<dtml-call "REQUEST.set('s_message','Changes have been rejected.')">
340<dtml-return "RESPONSE.redirect(url_append_params('manage_wfTransitionFinalize',{'lang':lang, 'custom': custom, 'manage_tabs_message':s_message}))">
341
342<!-- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
343     +-  C a n c e l
344     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -->
345<dtml-else>
346<dtml-call "REQUEST.set('s_message','Operation cancelled.')">
347<dtml-return "RESPONSE.redirect(url_append_params('manage_main',{'lang':lang, 'custom': custom, 'manage_tabs_message':s_message}))">
348
349</dtml-if>]]></item>
350<item key="from" type="list"><list>
351<item><![CDATA[AC_REQUESTED]]></item>
352</list>
353</item>
354<item key="name"><![CDATA[Reject commit]]></item>
355<item key="performer" type="list"><list>
356<item><![CDATA[ZMSAdministrator]]></item>
357<item><![CDATA[ZMSEditor]]></item>
358</list>
359</item>
360<item key="to" type="list"><list>
361<item><![CDATA[AC_REJECTED]]></item>
362</list>
363</item>
364</dictionary>
365</item>
366<item><![CDATA[TR_COMMIT]]></item>
367<item type="dictionary"><dictionary>
368<item key="dtml"><![CDATA[<!-- ##### Notification #### -->
369<!-- Recipient -->
370<dtml-call "REQUEST.set('s_name',getObjProperty('work_uid',REQUEST))">
371<dtml-call "REQUEST.set('s_mto',getRecipientWf(REQUEST))">
372<!-- Subject -->
373<dtml-call "REQUEST.set('s_msubject','[ZMS::%s]: Your changes were committed'%getDocumentElement().getTitle(REQUEST))">
374<!-- Body -->
375<dtml-call "REQUEST.set('l_mbody',[])">
376<dtml-call "l_mbody.append('Your changes were committed.\n')">
377<dtml-call "l_mbody.append('\nWith best regards\n')">
378<dtml-call "l_mbody.append('%s\n'%AUTHENTICATED_USER.getId())">
379<dtml-call "l_mbody.append('------------------------\n')">
380<dtml-call "l_mbody.append('Message generated by ZMS\n')">
381<!-- Send notification via MailHost -->
382<dtml-call "sendMail(s_mto, s_msubject, ''.join(l_mbody), REQUEST)">
383
384<!-- ##### Commit #### -->
385<dtml-call "commitObj(REQUEST)">
386
387<!-- Return with message -->
388<dtml-call "REQUEST.set('s_message','Changes were committed.')">
389<dtml-return "RESPONSE.redirect(url_append_params('manage_wfTransitionFinalize',{'lang':lang, 'custom': custom, 'manage_tabs_message':s_message}))">]]></item>
390<item key="from" type="list"><list>
391<item><![CDATA[AC_CHANGED]]></item>
392<item><![CDATA[AC_REQUESTED]]></item>
393<item><![CDATA[AC_REJECTED]]></item>
394</list>
395</item>
396<item key="name"><![CDATA[Commit]]></item>
397<item key="performer" type="list"><list>
398<item><![CDATA[ZMSEditor]]></item>
399<item><![CDATA[ZMSAdministrator]]></item>
400</list>
401</item>
402<item key="to" type="list"><list>
403<item><![CDATA[AC_COMMITTED]]></item>
404</list>
405</item>
406</dictionary>
407</item>
408<item><![CDATA[TR_ROLLBACK]]></item>
409<item type="dictionary"><dictionary>
410<item key="dtml"><![CDATA[<!-- ##### Notification #### -->
411<!-- Recipient -->
412<dtml-call "REQUEST.set('s_name',getObjProperty('work_uid',REQUEST))">
413<dtml-call "REQUEST.set('s_mto',getRecipientWf(REQUEST))">
414<!-- Subject -->
415<dtml-call "REQUEST.set('s_msubject','[ZMS::%s]: Your changes were rolled back'%getDocumentElement().getTitle(REQUEST))">
416<!-- Body -->
417<dtml-call "REQUEST.set('l_mbody',[])">
418<dtml-call "l_mbody.append('Your changes were rolled back.\n')">
419<dtml-call "l_mbody.append('\nWith best regards\n')">
420<dtml-call "l_mbody.append('%s\n'%AUTHENTICATED_USER.getId())">
421<dtml-call "l_mbody.append('------------------------\n')">
422<dtml-call "l_mbody.append('Message generated by ZMS\n')">
423<!-- Send notification via MailHost -->
424<dtml-call "sendMail(s_mto, s_msubject, ''.join(l_mbody), REQUEST)">
425
426<!-- ##### Rollback #### -->
427<dtml-call "rollbackObj(REQUEST)">
428
429<!-- Return with message -->
430<dtml-call "REQUEST.set('s_message','Changes were rolled back.')">
431<dtml-return "RESPONSE.redirect(url_append_params('manage_wfTransitionFinalize',{'lang':lang, 'custom': custom, 'manage_tabs_message':s_message}))">]]></item>
432<item key="from" type="list"><list>
433<item><![CDATA[AC_CHANGED]]></item>
434<item><![CDATA[AC_REQUESTED]]></item>
435<item><![CDATA[AC_REJECTED]]></item>
436</list>
437</item>
438<item key="name"><![CDATA[Rollback]]></item>
439<item key="performer" type="list"><list>
440<item><![CDATA[ZMSEditor]]></item>
441<item><![CDATA[ZMSAuthor]]></item>
442<item><![CDATA[ZMSAdministrator]]></item>
443</list>
444</item>
445<item key="to" type="list"><list>
446<item><![CDATA[AC_ROLLEDBACK]]></item>
447</list>
448</item>
449</dictionary>
450</item>
451<item><![CDATA[TR_LEAVE]]></item>
452<item type="dictionary"><dictionary>
453<item key="dtml"></item>
454<item key="from" type="list"><list>
455<item><![CDATA[AC_COMMITTED]]></item>
456<item><![CDATA[AC_ROLLEDBACK]]></item>
457</list>
458</item>
459<item key="name"><![CDATA[Leave Workflow]]></item>
460<item key="performer" type="list"><list>
461</list>
462</item>
463<item key="to"></item>
464</dictionary>
465</item>
466<item><![CDATA[createMasterVersion]]></item>
467<item type="dictionary"><dictionary>
468<item key="dtml"><![CDATA[<!-- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
469     +-  F o r m
470     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -->
471<dtml-if "REQUEST.get('btn','')==''">
472
473<!-- ##### Form #### -->
474<dtml-var manage_page_header>
475</head>
476<dtml-var "manage_tabs(_,_,my_manage_options=[{'label':'Create master','action':'manage_createMasterVersion'}])">
477<form name="form0" method="post">
478<input type="hidden" name="preview" value="preview">
479<input type="hidden" name="lang" value="<dtml-var lang>">
480<input type="hidden" name="custom" value="<dtml-var custom>">
481<table cellspacing="0" cellpadding="1" border="0" width="100%">
482<colgroup>
483 <col width="20%" />
484 <col width="80%" />
485</colgroup>
486<tr>
487 <td colspan="2"><dtml-var "f_headline(_,_,headline='Create master')"></td>
488</tr>
489<tr>
490 <td><div class="form-label">Master-Version</div></td>
491 <td><dtml-var "getTextInput(fmName='form0', elName='version_nr', size=10, value='%i.*.*'%(getObjProperty('master_version',REQUEST)+1), type='text', enabled=False)"></td>
492</tr>
493</table>
494<hr size="1">
495<dtml-call "REQUEST.set('submitBtn',getZMILangStr('BTN_SAVE'))"><input class="ui-button ui-state-default ui-corner-all" name="btn" type="submit" value="<dtml-var submitBtn html_quote>" accesskey="<dtml-var "submitBtn[0]" html_quote>" title="ALT+<dtml-var "submitBtn[0]" html_quote>" onclick="processMultiselectsOnFormSubmit(); self.btnClicked=this.value;">&nbsp;&nbsp;
496<dtml-call "REQUEST.set('submitBtn',getZMILangStr('BTN_CANCEL'))"><input class="ui-button ui-state-default ui-corner-all" name="btn" type="submit" value="<dtml-var submitBtn html_quote>" accesskey="<dtml-var "submitBtn[0]" html_quote>" title="ALT+<dtml-var "submitBtn[0]" html_quote>" onclick="self.btnClicked=this.value;">
497<br/><br/>
498</form>
499<dtml-var manage_page_footer>
500
501<!-- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
502     +-  E x e c u t e
503     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -->
504<dtml-elif "REQUEST.get('btn','')==getZMILangStr('BTN_SAVE')">
505 <!-- Return with message -->
506 <dtml-try>
507  <dtml-return "RESPONSE.redirect(url_append_params('manage_main',{'lang':lang, 'custom': custom, 'manage_tabs_message':'Created %i master versions.'%tagObjVersions(getObjProperty('master_version',REQUEST)+1,REQUEST)}))">
508 <dtml-except>
509  <dtml-call "REQUEST.set('manage_tabs_error_message',str(error_type))">
510  <dtml-if error_value>
511   <dtml-call "REQUEST.set('manage_tabs_error_message',manage_tabs_error_message+': '+str(error_value))">
512  </dtml-if>
513  <dtml-return "RESPONSE.redirect(url_append_params('manage_main',{'lang':lang, 'custom': custom, 'manage_tabs_error_message':manage_tabs_error_message}))">
514 </dtml-try>
515
516<!-- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
517     +-  C a n c e l
518     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -->
519<dtml-else>
520<dtml-call "REQUEST.set('s_message','Operation cancelled.')">
521<dtml-return "RESPONSE.redirect(url_append_params('manage_main',{'lang':lang, 'custom': custom, 'manage_tabs_message':s_message}))">
522
523</dtml-if>]]></item>
524<item key="from"></item>
525<item key="name"><![CDATA[Create master version]]></item>
526<item key="performer" type="list"><list>
527<item><![CDATA[ZMSAdministrator]]></item>
528</list>
529</item>
530<item key="to" type="list"><list>
531</list>
532</item>
533</dictionary>
534</item>
535</list>
536</item>
537</dictionary>
Note: See TracBrowser for help on using the repository browser.