(function(){
//1、判断提交还是回退
var t = doc.getLastFlowOperation();//t=80表示提交;t=81表示回退;t=85表示回撤。
//如果回撤,将自动填写的字段清空;
var type5 = getParameter("_flowType");
var doc = getCurrentDocument();
var process = getDocumentProcess();
if(type5=="85"){
doc.findItem("attitude").setValue("");
doc.findItem("name").setValue("");
doc.findItem("processtime").setValue("");
process.doUpdate(doc);
}
})();