source: WAeUP_SRP/trunk/profiles/default/workflows/workspace_calendar_wf/definition.xml

Last change on this file was 3689, checked in by Henrik Bettermann, 16 years ago

New BASE and EXTENSION profiles

File size: 4.7 KB
Line 
1<?xml version="1.0"?>
2<cps-workflow workflow_id="workspace_calendar_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 <permission>WebDAV Lock items</permission>
9 <permission>WebDAV Unlock items</permission>
10 <state state_id="work" title="Work">
11  <exit-transition transition_id="copy_submit"/>
12  <exit-transition transition_id="checkout_draft"/>
13  <exit-transition transition_id="cut_copy_paste"/>
14  <exit-transition transition_id="modify"/>
15  <permission-map name="Modify portal content"
16                  acquired="False">
17   <permission-role>Manager</permission-role>
18   <permission-role>Owner</permission-role>
19   <permission-role>WorkspaceManager</permission-role>
20   <permission-role>WorkspaceMember</permission-role>
21  </permission-map>
22  <permission-map name="View" acquired="False">
23   <permission-role>Manager</permission-role>
24   <permission-role>WorkspaceManager</permission-role>
25   <permission-role>WorkspaceMember</permission-role>
26   <permission-role>WorkspaceReader</permission-role>
27  </permission-map>
28  <permission-map name="WebDAV Lock items" acquired="False">
29   <permission-role>Manager</permission-role>
30   <permission-role>Owner</permission-role>
31   <permission-role>WorkspaceManager</permission-role>
32   <permission-role>WorkspaceMember</permission-role>
33  </permission-map>
34  <permission-map name="WebDAV Unlock items"
35                  acquired="False">
36   <permission-role>Manager</permission-role>
37   <permission-role>Owner</permission-role>
38   <permission-role>WorkspaceManager</permission-role>
39   <permission-role>WorkspaceMember</permission-role>
40  </permission-map>
41 </state>
42 <transition transition_id="create" title="Initial creation"
43             new_state="work" trigger="USER"
44             before_script=""
45             after_script="give_attendee_manager">
46 
47  <guard>
48   <guard-role>Manager</guard-role>
49   <guard-role>WorkspaceManager</guard-role>
50   <guard-role>WorkspaceMember</guard-role>
51  </guard>
52  <transition-behavior behavior_id="initial-create"/>
53 </transition>
54 <transition transition_id="cut_copy_paste"
55             title="Cut/Copy/Paste" new_state=""
56             trigger="USER" before_script="" after_script="">
57 
58  <guard>
59   <guard-role>Manager</guard-role>
60   <guard-role>WorkspaceManager</guard-role>
61   <guard-role>WorkspaceMember</guard-role>
62  </guard>
63  <transition-behavior behavior_id="allow-sub-move"/>
64  <transition-behavior behavior_id="allow-sub-delete"/>
65  <transition-behavior behavior_id="allow-sub-copy"/>
66 </transition>
67 <transition transition_id="modify"
68             title="Modification of content,provides a specific entry in status history"
69             new_state="" trigger="USER" before_script=""
70             after_script="">
71 
72  <guard>
73   <guard-role>Manager</guard-role>
74   <guard-role>Owner</guard-role>
75   <guard-role>WorkspaceManager</guard-role>
76   <guard-role>WorkspaceMember</guard-role>
77  </guard>
78 </transition>
79 <variable variable_id="action" for_catalog="False"
80           for_status="True" update_always="True">
81  <description>The last transition</description>
82  <default>
83   
84   <expression>transition/getId|nothing</expression>
85  </default>
86  <guard>
87  </guard>
88 </variable>
89 <variable variable_id="actor" for_catalog="False"
90           for_status="True" update_always="True">
91  <description>The ID of the user who performed</description>
92  <default>
93   
94   <expression>user/getId</expression>
95  </default>
96  <guard>
97  </guard>
98 </variable>
99 <variable variable_id="comments" for_catalog="False"
100           for_status="True" update_always="True">
101  <description>Comments about the last transition</description>
102  <default>
103   
104   <expression>python:state_change.kwargs.get('comment', '')</expression>
105  </default>
106  <guard>
107  </guard>
108 </variable>
109 <variable variable_id="dest_container" for_catalog="False"
110           for_status="True" update_always="True">
111  <description>Destination container for the last paste/publish</description>
112  <default>
113   
114   <expression>python:state_change.kwargs.get('dest_container', '')</expression>
115  </default>
116  <guard>
117  </guard>
118 </variable>
119 <variable variable_id="time" for_catalog="True"
120           for_status="True" update_always="True">
121  <description>Time of the last transition</description>
122  <default>
123   
124   <expression>state_change/getDateTime</expression>
125  </default>
126  <guard>
127  </guard>
128 </variable>
129 <script script_id="give_attendee_manager"
130         type="Script (Python)"
131         filename="workflows/workspace_calendar_wf/scripts/give_attendee_manager.py"/>
132</cps-workflow>
Note: See TracBrowser for help on using the repository browser.