本帖最后由 shary 于 2014-8-20 16:57 编辑
如图自动节点流程。
该流程表单的提交按钮动作执行后脚本如下:
#include "syslib";
var webUser = getWebUser(); //返回当前登录用户对象
var userName = webUser.getName();
var curdate = getCurDate("yyyy-MM-dd");
var textFile1 = getItemValue("GEexamIdearText");
if(textFile1==null){
textFile1="";
}
var strLast1 = "";
var curid = getId();
if(!textFile1.equals("")){
strLast1=" " + textFile1 +" " + userName + " " + curdate;
}
updateGEexamIdearText(curid,strLast1);
如果当去掉最后一行的函数(该函数完成数据库中的一个存储过程)则自动节点可以提交,反之则不能提交,什么原因。 |