哦,好了,但现在:
……
Request.errorMessage(resultData, "执行失败!", null, null); }
};
var result = Request.sendBizRequest(options);
两个Request都报Request is not defined
前台代码:
options.parameters = new biz.Request.ActionParam();
var taskParam = new biz.Request.ListParam();
alert("rows_task="+rows_task.length);
for (var i=0; i<rows_task.length; i++){
taskParam.add(rows_task);
}
var process = this.getContext().getCurrentProcess();
var activity = this.getContext().getCurrentActivity();
options.contentType = 'application/json';
options.process = process;
options.activity = activity;
options.directExecute = true;
options.dataType = "json";
options.parameters.setList("tasks", taskParam);
options.action = "batchAdvanceProcessAction";
setObject可以参考
var params = new biz.Request.ActionParam();
var objectParam = new biz.Request.ObjectParam({
name : "霍金",
sex : "男",
age : 70
});
params.setObject("param_object", objectParam);