特殊处理资源DTO在流程引擎内的值
This commit is contained in:
parent
1168f08172
commit
248f4aecb7
|
@ -44,13 +44,15 @@ public class RejectController {
|
|||
Optional<Task> taskOptional = Optional.ofNullable(taskService.createTaskQuery().taskId(taskId).includeProcessVariables().singleResult());
|
||||
taskOptional.ifPresent(task -> {
|
||||
Map<String, Object> combineResultMap = new LinkedHashMap<>();
|
||||
combineResultMap.putAll(task.getProcessVariables());
|
||||
// combineResultMap.putAll(task.getProcessVariables());
|
||||
combineResultMap.putAll(params);
|
||||
if (combineResultMap.containsKey("parameterContent")) { // 上架申请特殊处理
|
||||
combineResultMap.remove("parameterContent");
|
||||
combineResultMap.remove("resourceDTO");
|
||||
combineResultMap.put("parameterContent", JSON.toJSONString(combineResultMap));
|
||||
}
|
||||
taskService.removeVariable(task.getId(), "parameterContent");
|
||||
taskService.removeVariable(task.getId(), "resourceDTO");
|
||||
taskService.setVariables(task.getId(), combineResultMap); // 更新
|
||||
logger.error("-----------" + JSON.toJSONString(combineResultMap));
|
||||
taskService.setVariable(task.getId(), "backToFirst", Boolean.FALSE); // 标识驳回标签false
|
||||
|
|
Loading…
Reference in New Issue