From 5583c2b609520b4c202046c763948cd4f474bf10 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Thu, 12 May 2022 10:55:08 +0800 Subject: [PATCH] ... --- .../processForm/listener/CorrectionListener.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/renren-admin/src/main/java/io/renren/modules/processForm/listener/CorrectionListener.java b/renren-admin/src/main/java/io/renren/modules/processForm/listener/CorrectionListener.java index a2b92920..450a6b0e 100644 --- a/renren-admin/src/main/java/io/renren/modules/processForm/listener/CorrectionListener.java +++ b/renren-admin/src/main/java/io/renren/modules/processForm/listener/CorrectionListener.java @@ -191,11 +191,15 @@ public class CorrectionListener implements TaskListener, ExecutionListener, Acti //如果有code说明已经注册过了,以及只有通过的流程申请 if (kv.get("gatewayCode") != null || !ActTaskService.Task_HANDLE_STATE_AGREE.equals(kv.get(ActTaskService.Task_HANDLE_STATE))) return; + try { + Gson gson = new Gson(); + JsonElement jsonElement = gson.toJsonTree(kv); + TAbilityApplicationDTO abilityApplicationDTO = gson.fromJson(jsonElement, TAbilityApplicationDTO.class); + applyCode(delegateTask, abilityApplicationDTO); + } catch (Exception e) { + logger.error(e.getLocalizedMessage(), e); + } - Gson gson = new Gson(); - JsonElement jsonElement = gson.toJsonTree(kv); - TAbilityApplicationDTO abilityApplicationDTO = gson.fromJson(jsonElement, TAbilityApplicationDTO.class); - applyCode(delegateTask, abilityApplicationDTO); }