|
楼主 |
发表于 2017-11-24 09:12:37
|
显示全部楼层
mainActivity.browseTask = function() {
var mainData = justep.xbl("main");
var id = mainData.getCurrentID();
var name = mainData.getValue("sName", id);
var executor = mainData.getValue("sCreatorFID");
if (executor.indexOf(justep.Context.getCurrentPersonID()) == -1){
executor = mainData.getValue("sExecutorFID");
}
if (executor == undefined || executor == "" || executor.indexOf(".psm")==-1){
executor = justep.Context.getCurrentPersonID();
}
var process = mainData.getValue("sProcess", id);
var url = mainActivity.getBrowseURL();
var realUrl = url + "?task=" + id + "&activity-pattern=detail&process=" + process;
justep.Portal.openWindow(name, realUrl, false, null, executor);
};
在任务中心进入之前的流程按钮都是灰化的,进入最近新增加的流程是可以编辑保存的。 |
|