|
发表于 2011-9-5 16:18:40
|
显示全部楼层
要知道任务的url、提交者等相关信息
function recycleTask() {
var mainData = justep.xbl("main");
var rowId = mainData.getCurrentRowId();
var url = mainData.getValue("sCURL", rowId);
if (url == '') {
var sName = mainData.getValue("sName", rowId);
error("任务: " + sName + "的sCURL为空!");
}else{
var creatorFID = mainData.getValue("sCreatorFID", rowId);
var process = mainData.getValue("sProcess", rowId);
var activity = url.substring(url.lastIndexOf("/")+1, url.lastIndexOf("."));
var param = '<parameters>' +
'<parameter name="task">' +
'<xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#string">' + rowId + '</xbiz:simple>' +
'</parameter>' +
'</parameters>';
var loader = justep.Request.sendBizRequest(process, activity, "withdrawTaskAction", param, null, null, true, creatorFID);
if(justep.Request.isSuccess(loader)){
justep.xbl("main").refreshData();
}
}
} |
|