【发布时间】:2016-02-01 14:31:21
【问题描述】:
我正在尝试获取工作流项目的文件名。
我试着做这个:
var title;
Alfresco.util.Ajax.jsonGet(
{
url: Alfresco.constants.PROXY_URI_RELATIVE + "api/metadata?nodeRef=" + nodeRefContext + "&shortQNames=true" ,
successCallback:
{
fn: function(response)
{
if (response.json)
{
title=response.json.properties["cm:title"];
alert(title);
}
},
scope: this
},
failureCallback:
{
fn: function(response)
{
Alfresco.util.PopupManager.displayPrompt(
{
failureMessage: this.msg("message.failure")
});
},
scope: this
}
});
但是在警报中给了我未定义...
我也尝试过:
var nodeR = search.findNode(fileNodeRef);
alert(nodeR);
但是
搜索未定义
知道如何获取工作流的文件名吗?在 URL 中,我只有 noderef。
【问题讨论】:
-
您的代码在哪里运行?存储库服务器端?共享服务器端?共享客户端?
-
分享客户端@Gagravarr
-
你有哪个nodeRef?附加文档或工作流包 nodeRef?
-
附加到工作流的文档的nodeRef。
-
请看问题,可能会有所帮助..enter link description here
标签: javascript workflow alfresco activiti alfresco-share