如何查询存储库中的所有作业?

How to queries all the assignments from the repository?

我的环境:

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 Community v5.2.0 (r134428-b13) schema 10005

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

有一个excellent guide, which shows how to use Lucene to get a list of whitepapers

为了通过 REST 与存储库交互,我还使用了 Web 脚本框架 MVC。

但是我怎样才能得到作业列表呢?..

我对这种情况下的查询很感兴趣:

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

如果您想知道谁分配给了特定的 运行 工作流实例,那么我认为您无法通过搜索服务轻松做到这一点。相反,您想使用 Alfresco WorkflowService 来获得它。

您很可能想要获取特定 运行 工作流的 WorkflowInstance,获取任务,然后从其属性中进行检查。

如果您从 Alfresco 源代码树中查看 WorkflowPermissionInterceptor,您将看到几乎所有您想要的逻辑,涵盖个人受让人和小组分配。