在Select(bpm:assignee)控件(Alfresco)中过滤用户 [英] Filter user in Select (bpm:assignee) control (Alfresco)

查看:96
本文介绍了在Select(bpm:assignee)控件(Alfresco)中过滤用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的自定义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)中过滤用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆