This commit is contained in:
wangliwen 2022-05-12 10:55:08 +08:00
parent 9652a63dd5
commit 5583c2b609
1 changed files with 8 additions and 4 deletions

View File

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