从pal创建发布流程时生成两条bo记录bug修改
This commit is contained in:
parent
747cfc2849
commit
c04e2e3b3b
@ -605,6 +605,8 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
else if ("check".equals(selectionmode) || "checkInherit".equals(selectionmode))
|
||||
processDefId = appApi.getProperty(PublisherConstant.PUBLISH, "publishProcessId");
|
||||
ProcessDefinition processDef = (ProcessDefinition) ProcessDefCache.getInstance().getModel(processDefId);
|
||||
|
||||
|
||||
// 先建立bo再运行任务
|
||||
// 创建流程实例
|
||||
ProcessInstance processInstModel = null;
|
||||
@ -614,6 +616,7 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
e.printStackTrace();
|
||||
return ResponseObject.newErrResponse(e.getMessage()).toString();
|
||||
}
|
||||
SDK.getProcessAPI().setVariable(processInstModel, "createType", "pal");
|
||||
BO bo = new BO();
|
||||
bo.set("TEAMID", teamId);
|
||||
bo.set("TEAMNAME", teamName);
|
||||
|
||||
@ -46,7 +46,7 @@ public class PublishLoadBefore extends ExecuteListener {
|
||||
return;
|
||||
}
|
||||
//如果是1是从oa创建,就不用再获取
|
||||
if (variable==null) {
|
||||
if ("pal".equals(variable)) {
|
||||
System.err.println("===表单加载前创建====>");
|
||||
// 根据部门名称 和单位 计算出 内部校对人 和流程经理
|
||||
UserContext me = ctx.getUserContext();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user