我的自定义wokflow中具有bpm:assignee控件,没关系。但是现在Wright用户可以为bpm:assignee挑选所有露天用户。我不会限制用户,以便当他去选择控件并在搜索结果中输入搜索字词时,只会显示特定组中的用户或某些条件定义的某些用户(这意味着用户无法搜索整个露天用户数据库,仅针对特定的用户组)。有人知道我如何在自定义工作流程中实现这一目标吗?
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?
致谢, Aleksandar
Regards, Aleksandar
推荐答案是的,这绝对是可能的。要执行您所描述的操作,您需要自定义现成的人员选择器组件并将其放在您自己的命名空间中。然后,您可以将组件用于搜索的存储库层Web脚本更改为您自己的自定义Web脚本。这些Web脚本可以实现您需要的任何搜索条件,例如,限制一个或多个具有特定属性集的组或用户等。最后一步是告诉表单服务在渲染bpm时使用新的自定义组件:受让人字段而不是默认组件。
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.
更多推荐
在Select(bpm:assignee)控件(Alfresco)中过滤用户
发布评论