2 <dc-workflow workflow_id=
"default_workflow"
3 title=
"Plinn default workflow" description=
""
4 state_variable=
"review_state"
5 initial_state=
"private" manager_bypass=
"False">
7 <permission>Access contents information
</permission>
8 <permission>Change portal events
</permission>
9 <permission>Change portal topics
</permission>
10 <permission>Delete Owned Objects
</permission>
11 <permission>Manage properties
</permission>
12 <permission>Modify portal content
</permission>
13 <permission>View
</permission>
14 <state state_id=
"pending" title=
"Waiting for reviewer">
15 <exit-transition transition_id=
"publish"/>
16 <exit-transition transition_id=
"reject"/>
17 <exit-transition transition_id=
"retract"/>
18 <exit-transition transition_id=
"send_email"/>
19 <permission-map name=
"Access contents information"
21 <permission-role>Contributor
</permission-role>
22 <permission-role>Manager
</permission-role>
23 <permission-role>Owner
</permission-role>
24 <permission-role>Reader
</permission-role>
25 <permission-role>Reviewer
</permission-role>
27 <permission-map name=
"Change portal events"
29 <permission-role>Manager
</permission-role>
30 <permission-role>Reviewer
</permission-role>
32 <permission-map name=
"Change portal topics"
34 <permission-role>Manager
</permission-role>
35 <permission-role>Reviewer
</permission-role>
37 <permission-map name=
"Delete Owned Objects"
39 <permission-role>Manager
</permission-role>
41 <permission-map name=
"Manage properties" acquired=
"False">
42 <permission-role>Manager
</permission-role>
43 <permission-role>Reviewer
</permission-role>
45 <permission-map name=
"Modify portal content"
47 <permission-role>Manager
</permission-role>
48 <permission-role>Reviewer
</permission-role>
50 <permission-map name=
"View" acquired=
"False">
51 <permission-role>Contributor
</permission-role>
52 <permission-role>Manager
</permission-role>
53 <permission-role>Owner
</permission-role>
54 <permission-role>Reader
</permission-role>
55 <permission-role>Reviewer
</permission-role>
58 <state state_id=
"private"
59 title=
"Non-visible and editable only by owner">
60 <exit-transition transition_id=
"direct_publish"/>
61 <exit-transition transition_id=
"send_email"/>
62 <exit-transition transition_id=
"submit"/>
63 <permission-map name=
"Access contents information"
65 <permission-role>Contributor
</permission-role>
66 <permission-role>Manager
</permission-role>
67 <permission-role>Owner
</permission-role>
68 <permission-role>Reader
</permission-role>
70 <permission-map name=
"Change portal events"
72 <permission-role>Contributor
</permission-role>
73 <permission-role>Manager
</permission-role>
74 <permission-role>Owner
</permission-role>
76 <permission-map name=
"Change portal topics"
78 <permission-role>Contributor
</permission-role>
79 <permission-role>Manager
</permission-role>
80 <permission-role>Owner
</permission-role>
82 <permission-map name=
"Delete Owned Objects"
84 <permission-role>Manager
</permission-role>
85 <permission-role>Owner
</permission-role>
87 <permission-map name=
"Manage properties" acquired=
"False">
88 <permission-role>Contributor
</permission-role>
89 <permission-role>Manager
</permission-role>
90 <permission-role>Owner
</permission-role>
92 <permission-map name=
"Modify portal content"
94 <permission-role>Contributor
</permission-role>
95 <permission-role>Manager
</permission-role>
96 <permission-role>Owner
</permission-role>
98 <permission-map name=
"View" acquired=
"False">
99 <permission-role>Contributor
</permission-role>
100 <permission-role>Manager
</permission-role>
101 <permission-role>Owner
</permission-role>
102 <permission-role>Reader
</permission-role>
105 <state state_id=
"published" title=
"Public">
106 <exit-transition transition_id=
"reject"/>
107 <exit-transition transition_id=
"retract"/>
108 <exit-transition transition_id=
"send_email"/>
109 <permission-map name=
"Access contents information"
111 <permission-role>Anonymous
</permission-role>
112 <permission-role>Manager
</permission-role>
114 <permission-map name=
"Change portal events"
116 <permission-role>Manager
</permission-role>
118 <permission-map name=
"Change portal topics"
120 <permission-role>Manager
</permission-role>
122 <permission-map name=
"Delete Owned Objects"
124 <permission-role>Manager
</permission-role>
126 <permission-map name=
"Manage properties" acquired=
"False">
127 <permission-role>Manager
</permission-role>
129 <permission-map name=
"Modify portal content"
131 <permission-role>Manager
</permission-role>
133 <permission-map name=
"View" acquired=
"True">
134 <permission-role>Anonymous
</permission-role>
135 <permission-role>Manager
</permission-role>
138 <transition transition_id=
"direct_publish"
139 title=
"Reviewer publishes content"
140 new_state=
"published" trigger=
"USER"
141 before_script=
"" after_script=
"">
142 <description>Reviewer can directly publish content if he have de Owner role (not necessarily ownership)
</description>
143 <action url=
"%(content_url)s/content_publish_form?direct:boolean=True"
144 category=
"workflow">Publish
</action>
146 <guard-permission>Review portal content
</guard-permission>
147 <guard-expression>python:user.allowed(here, ['Owner'])
</guard-expression>
150 <transition transition_id=
"publish"
151 title=
"Reviewer publishes content"
152 new_state=
"published" trigger=
"USER"
153 before_script=
"" after_script=
"">
154 <action url=
"%(content_url)s/content_publish_form"
155 category=
"workflow">Publish
</action>
157 <guard-permission>Review portal content
</guard-permission>
160 <transition transition_id=
"reject"
161 title=
"Reviewer rejects submission"
162 new_state=
"private" trigger=
"USER"
163 before_script=
"" after_script=
"">
164 <action url=
"%(content_url)s/content_reject_form"
165 category=
"workflow">Reject
</action>
167 <guard-permission>Review portal content
</guard-permission>
170 <transition transition_id=
"retract"
171 title=
"Member retracts submission"
172 new_state=
"private" trigger=
"USER"
173 before_script=
"" after_script=
"">
174 <action url=
"%(content_url)s/content_retract_form"
175 category=
"workflow">Retract
</action>
177 <guard-permission>Request review
</guard-permission>
178 <guard-expression>python:not(here.portal_membership.checkPermission('Review portal content', here))
</guard-expression>
181 <transition transition_id=
"send_email" title=
""
182 new_state=
"" trigger=
"USER" before_script=
""
184 <action url=
"%(content_url)s/send_email_form?wfid=default_workflow"
185 category=
"workflow">Send an email
</action>
187 <guard-permission>View
</guard-permission>
188 <guard-role>Member
</guard-role>
191 <transition transition_id=
"submit"
192 title=
"Member requests publishing"
193 new_state=
"pending" trigger=
"USER"
194 before_script=
"" after_script=
"">
195 <action url=
"%(content_url)s/content_submit_form"
196 category=
"workflow">Submit
</action>
198 <guard-permission>Request review
</guard-permission>
201 <worklist worklist_id=
"reviewer_queue" title=
"">
202 <description>Reviewer tasks
</description>
203 <action url=
"%(portal_url)s/list_pending_contents"
204 category=
"global">Pending (%(count)d)
</action>
206 <guard-expression>here/havePendingContents
</guard-expression>
208 <match name=
"review_state" values=
"pending"/>
210 <variable variable_id=
"action" for_catalog=
"False"
211 for_status=
"True" update_always=
"True">
212 <description>The last transition
</description>
215 <expression>transition/getId|nothing
</expression>
220 <variable variable_id=
"actor" for_catalog=
"False"
221 for_status=
"True" update_always=
"True">
222 <description>The ID of the user who performed the last transition
</description>
225 <expression>user/getId
</expression>
230 <variable variable_id=
"comments" for_catalog=
"False"
231 for_status=
"True" update_always=
"True">
232 <description>Comments about the last transition
</description>
235 <expression>python:state_change.kwargs.get('comment', '')
</expression>
240 <variable variable_id=
"email_sent" for_catalog=
"False"
241 for_status=
"True" update_always=
"True">
244 <expression>python:scripts.sendNotificationEmail(state_change) or state_change.kwargs.get('email_sent', [])
</expression>
249 <variable variable_id=
"review_history" for_catalog=
"False"
250 for_status=
"False" update_always=
"False">
251 <description>Provides access to workflow history
</description>
254 <expression>state_change/getHistory
</expression>
257 <guard-permission>Request review
</guard-permission>
258 <guard-permission>Review portal content
</guard-permission>
261 <variable variable_id=
"time" for_catalog=
"False"
262 for_status=
"True" update_always=
"True">
263 <description>Time of the last transition
</description>
266 <expression>state_change/getDateTime
</expression>
271 <script script_id=
"sendNotificationEmail"
272 type=
"Script (Python)"
273 filename=
"workflows/default_workflow/scripts/sendNotificationEmail.py"
274 module=
"" function=
""/>