Assign reviewer from different groups at different stages of workflow in Plone

后端 未结 4 2062
一向
一向 2021-01-19 10:08

We are implementing Plone as a document management system in a hospital setting. In doing so, the review process asks for two review steps:

  1. where nursing staff
4条回答
  •  太阳男子
    2021-01-19 10:35

    you've to write your pas plugin. You can start from this: http://pypi.python.org/pypi/Products.AutoRoleFromHostHeader/ (works also for groups) and create your own which assign a role/group. This plugin is very simple and just do this:

    security.declarePrivate('getRolesForPrincipal')
    def getRolesForPrincipal(self, principal, request=None):
        """ Assign roles based on 'request'. """
    

    there, you can do your own logic and assign to the user a group based on the parameters defined at the document type level and assigned at the document instance level.

提交回复
热议问题