如何查询存储库中的所有分配? [英] How to queries all the assignments from the repository?

查看:76
本文介绍了如何查询存储库中的所有分配?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的环境:

Alfresco Share v5.2.d(r134641-b15,Aikau 1.0.101.3,Spring Surf 5.2.d,Spring WebScripts 6.13,Freemarker 2.3.20-alfresco修补,Rhino 1.7R4-alfresco修补,Yui 2.9.0-alfresco-20141223)

Alfresco Share v5.2.d (r134641-b15, Aikau 1.0.101.3, Spring Surf 5.2.d, Spring WebScripts 6.13, Freemarker 2.3.20-alfresco-patched, Rhino 1.7R4-alfresco-patched, Yui 2.9.0-alfresco-20141223)

Alfresco社区v5.2.0(r134428-b13)架构10005

Alfresco Community v5.2.0 (r134428-b13) schema 10005

启动工作流程时,我可以分配执行者-将参与业务流程的用户列表.我需要以某种方式获取所有这些用户的列表.

When I start the workflow, I can assign executors - the list of users who will participate in the business process. Somehow I need to get a list of all those users.

有一个优秀指南,显示了如何使用 Lucene 获得

There is an excellent guide, which shows how to use Lucene to get a list of whitepapers.

要通过REST与存储库进行交互,我还使用了Web脚本框架MVC.

To interact with repository through REST I'm also use the Web Script Framework MVC.

但是我如何获得作业列表?.

But how can I get the list of assignments?..

在这种情况下,我对查询的外观感兴趣:

I'm interested in how to look like the query in this case:

...
var assignments = search.luceneSearch("what should be here?");
...

推荐答案

如果您想知道谁被分配给特定的正在运行的Workflow实例,那么我认为您无法通过搜索服务轻松地做到这一点.相反,您希望使用 Alfresco WorkflowService 即可实现.

If you want to know who is assigned to a specific running Workflow instance, then I don't think you can easily do that via the search service. Instead, you want to be using the Alfresco WorkflowService to get that.

您很可能希望获取

Most likely you'll want to grab the WorkflowInstance for the specific running workflow, grab the tasks, and check from the properties on that.

如果您查看

If you look at WorkflowPermissionInterceptor from the Alfresco source tree, you'll see pretty much the logic you want, covering both individual assignees and group assignments.

这篇关于如何查询存储库中的所有分配?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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