修改任务池退回直接提交

This commit is contained in:
zhulianghua 2018-08-16 11:17:27 +08:00
parent e3ac48c5f5
commit 216e0c9e0d

View File

@ -917,6 +917,23 @@ public class FlowAction {
return sRet.toString();
}
/**
* 检查如果是退回直接提交步骤就不弹出用户选择框
* @throws Exception
*/
public String checkBackType(JBOTransaction tx) throws Exception {
FlowTask ft = new FlowTask(taskNo, tx);
if(ft.AssignedTaskNo.length() > 0) {
FlowTask ftB = new FlowTask(ft.AssignedTaskNo, tx);
this.nextNodeType = "TASK";
this.phaseOpinion = ftB.PhaseNo;
this.phaseAction = ftB.UserID + " " + ftB.UserName;
return this.submit(tx);
} else {
return "false";
}
}
/**
* 根据taskNo得到flowTask对象根据phaseAction, phaseOpinion提交
*