Filter user in Select (bpm:assignee) control (Alfr

2019-09-09 23:07发布

I have bpm:assignee control in my custom wokflow, and that's ok. But wright now user can pick up all alfresco users for bpm:assignee. I wan't to limit user so that when he goes to select control and enter some term for search in search result appear just user from specific group or just some users defined by some criteria (it means that user can not search over entire alfresco user database, just over specific set of users). Does anybody know how i can achieve this in my custom workflow?

Regards, Aleksandar

1条回答
▲ chillily
2楼-- · 2019-09-09 23:47

Yes, this is definitely possible. To do what you are describing, you'll need to customize the out-of-the-box people picker component and put it in your own namespace. Then, you can change the repository tier web scripts the component uses for searching to your own custom web scripts. Those web scripts can implement whatever search criteria you need, such as restricting to a one or more groups or users with a certain property set, etc. The last step is to tell the form service to use your new custom component when rendering the bpm:assignee field instead of the default component.

查看更多
登录 后发表回答