From c04e2e3b3b00fd83fa8b27b26b2fec1958bef90d Mon Sep 17 00:00:00 2001 From: lihongyu <504404568@qq.com> Date: Wed, 2 Nov 2022 16:18:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8Epal=E5=88=9B=E5=BB=BA=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E6=B5=81=E7=A8=8B=E6=97=B6=E7=94=9F=E6=88=90=E4=B8=A4?= =?UTF-8?q?=E6=9D=A1bo=E8=AE=B0=E5=BD=95bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apps/coe/pal/publisher/client/web/ProcessPublishWeb.java | 3 +++ .../apps/coe/pal/publisher/event/PublishLoadBefore.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java index c56cfc35..2ff201fc 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java @@ -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); diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/event/PublishLoadBefore.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/event/PublishLoadBefore.java index 17c3bd90..ba22bf23 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/event/PublishLoadBefore.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/event/PublishLoadBefore.java @@ -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();