|
我在js里用如下代码在表SAtask中新增一行数据,我可以在待办任务中看到我新增的这行数据。我的问题是 sExecuteMode2: "finishWhenOpen" 这个是如何起效的,这个起效之后是不是就能点开待办任务的通知之后,这条通知就会在待办任务中消失?
var option = {
defaultValues : [
{sName: "通知:维修超时",
sExecuteMode2: "finishWhenOpen" ,
sExecuteMode: "temPreempt",
sPreemptMode:"tpmOpen",
sCatalogID:"tsTask",
sKindID:"tkNotice",
sCreateTime: xz,
sCreatorPersonName:"系统自动",
sStatusID:"tesExecuting",
sStatusName:"正在处理",
sExecutorFID:target ,
sESField01:dw,
sESField02:dy,
sESField03:gd,
sESField04:zsj,
sProcess: '/factory/sbbx/process/gzbx/gzbxProcess',
sActivity:'form',
sCURL:'/factory/sbbx/process/gzbx/form.a',
sEURL:'/factory/sbbx/process/gzbx/form.a',
}]};
taskData.newData(option);
taskData.saveData({
"onSuccess" : function(event) {
event.source.refreshData();
}}
);
|
|