X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/40acf3027cd594e48486729285eb7a34379078f9..b3b52f5b0ad754fd9036f816d0ab8e98a5373f40:/profiles/photo/workflows/default_workflow/definition.xml diff --git a/profiles/photo/workflows/default_workflow/definition.xml b/profiles/photo/workflows/default_workflow/definition.xml new file mode 100644 index 0000000..a8373a3 --- /dev/null +++ b/profiles/photo/workflows/default_workflow/definition.xml @@ -0,0 +1,256 @@ + + + + Access contents information + Change portal events + Change portal topics + Delete Owned Objects + Manage properties + Modify portal content + View + + + + + + Manager + + + Manager + Reviewer + + + Manager + Reviewer + + + Manager + + + Manager + Reviewer + + + Manager + Reviewer + + + Contributor + Manager + Owner + Reader + Reviewer + + + + + + + Contributor + Manager + Owner + + + Contributor + Manager + Owner + + + Contributor + Manager + Owner + + + Manager + Owner + + + Contributor + Manager + Owner + + + Contributor + Manager + Owner + + + Contributor + Manager + Owner + Reader + + + + + + + Manager + + + Manager + + + Manager + + + Manager + + + Manager + + + Manager + + + Anonymous + Manager + + + + Reviewer can directly publish content if he have de Owner role (not necessarily ownership) + Publish + + Review portal content + python:user.allowed(here, ['Owner']) + + + + Publish + + Review portal content + + + + Reject + + Review portal content + + + + Retract + + Request review + python:not(here.portal_membership.checkPermission('Review portal content', here)) + + + + Submit + + Request review + + + + Reviewer tasks + Pending (%(count)d) + + here/havePendingContents + + + + + The last transition + + + transition/getId|nothing + + + + + + The ID of the user who performed the last transition + + + user/getId + + + + + + Comments about the last transition + + + python:state_change.kwargs.get('comment', '') + + + + + + + + python:scripts.sendNotificationEmail(state_change) or state_change.kwargs.get('email_sent', []) + + + + + + Provides access to workflow history + + + state_change/getHistory + + + Request review + Review portal content + + + + Time of the last transition + + + state_change/getDateTime + + + + +