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); }