在Select(bpm:assignee)控件(Alfresco)中过滤用户

编程入门 行业动态 更新时间:2024-10-13 12:18:19
本文介绍了在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)中过滤用户

本文发布于:2023-11-28 12:10:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642345.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   用户   bpm   Select   Alfresco

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!