本帖最后由 Jarod 于 2014-6-11 18:20 编辑
var process=getDocProcess(getApplication());
var doc=getCurrentDocument();
var flowType = getParameter("_flowType");
println("flowType:"+flowType);
if (flowType!=null && flowType.equals("81")) {
doc.findItem("审批状态").setValue("驳回");
process.doUpdate(doc);
}//回退
else if (flowType!=null && flowType.equals("7")) {
doc.findItem("审批状态").setValue("已批准");
process.doUpdate(doc);
}else if (flowType!=null && flowType.equals("8")) {
doc.findItem("审批状态").setValue("已终止");
process.doUpdate(doc);
}else{
//审批中
doc.findItem("审批状态").setValue("审批中");
process.doUpdate(doc);
}
上述代码用于根据flowType更改业务表审批状栏位,但终止流程时,这招就不能用了呢,还提示表构建失败之类,其他流程操作均没问题。
附:
windows7旗舰版+oracle 11g +M3 obpm 19992 + chrome |