From 351bdf9928782c56b39d390df3f52b22560af3ee Mon Sep 17 00:00:00 2001 From: Tariq Date: Tue, 27 Aug 2024 11:17:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=BB=E5=8A=A1=E6=A8=A1=E5=9D=97):=20?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E6=8A=84=E9=80=81=E4=BA=8B=E4=BB=B6=E5=90=8E?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=B8=8D=E5=88=B0=E6=8A=84=E9=80=81=E4=BA=BA?= =?UTF-8?q?=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/aizuda/bpm/engine/impl/TaskServiceImpl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/flowlong-core/src/main/java/com/aizuda/bpm/engine/impl/TaskServiceImpl.java b/flowlong-core/src/main/java/com/aizuda/bpm/engine/impl/TaskServiceImpl.java index 0a730f39..d89abba7 100644 --- a/flowlong-core/src/main/java/com/aizuda/bpm/engine/impl/TaskServiceImpl.java +++ b/flowlong-core/src/main/java/com/aizuda/bpm/engine/impl/TaskServiceImpl.java @@ -927,12 +927,13 @@ public void saveTaskCc(NodeModel nodeModel, FlwTask flwTask, FlowCreator flowCre flwHisTask.calculateDuration(); hisTaskDao.insert(flwHisTask); - // 任务监听器通知 - this.taskNotify(EventType.cc, () -> flwHisTask, nodeModel, flowCreator); - + // 抄送人员 for (NodeAssignee nodeUser : nodeUserList) { hisTaskActorDao.insert(FlwHisTaskActor.ofNodeAssignee(nodeUser, flwHisTask.getInstanceId(), flwHisTask.getId())); } + + // 任务监听器通知 + this.taskNotify(EventType.cc, () -> flwHisTask, nodeModel, flowCreator); } }