<dc-workflow workflow_id="folder_workflow"
title="Plinn folder workflow" description=""
state_variable="review_state"
<dc-workflow workflow_id="folder_workflow"
title="Plinn folder workflow" description=""
state_variable="review_state"
<permission>Manage properties</permission>
<permission>Modify portal content</permission>
<permission>View</permission>
<permission>Manage properties</permission>
<permission>Modify portal content</permission>
<permission>View</permission>
before_script="" after_script="">
<description>Reviewer can directly publish content if he have de Owner role (not necessarily ownership)</description>
<action url="%(content_url)s/content_publish_form?direct:boolean=True"
before_script="" after_script="">
<description>Reviewer can directly publish content if he have de Owner role (not necessarily ownership)</description>
<action url="%(content_url)s/content_publish_form?direct:boolean=True"
<guard>
<guard-permission>Review portal content</guard-permission>
<guard-expression>python:user.allowed(here, ['Owner'])</guard-expression>
<guard>
<guard-permission>Review portal content</guard-permission>
<guard-expression>python:user.allowed(here, ['Owner'])</guard-expression>
new_state="published" trigger="USER"
before_script="" after_script="">
<action url="%(content_url)s/content_publish_form"
new_state="published" trigger="USER"
before_script="" after_script="">
<action url="%(content_url)s/content_publish_form"
new_state="private" trigger="USER"
before_script="" after_script="">
<action url="%(content_url)s/content_reject_form"
new_state="private" trigger="USER"
before_script="" after_script="">
<action url="%(content_url)s/content_reject_form"
new_state="private" trigger="USER"
before_script="" after_script="">
<action url="%(content_url)s/content_retract_form"
new_state="private" trigger="USER"
before_script="" after_script="">
<action url="%(content_url)s/content_retract_form"
<guard>
<guard-permission>Request review</guard-permission>
<guard-expression>python:not(here.portal_membership.checkPermission('Review portal content', here))</guard-expression>
<guard>
<guard-permission>Request review</guard-permission>
<guard-expression>python:not(here.portal_membership.checkPermission('Review portal content', here))</guard-expression>
new_state="pending" trigger="USER"
before_script="" after_script="">
<action url="%(content_url)s/content_submit_form"
new_state="pending" trigger="USER"
before_script="" after_script="">
<action url="%(content_url)s/content_submit_form"