mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-21 18:56:38 +08:00
update 调整变量修改
This commit is contained in:
parent
48213bc9c9
commit
240f10ab45
@ -371,6 +371,9 @@ public class FlwInstanceServiceImpl implements IFlwInstanceService {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Map<String, Object> variableMap = new HashMap<>(Optional.ofNullable(flowInstance.getVariableMap()).orElse(Collections.emptyMap()));
|
Map<String, Object> variableMap = new HashMap<>(Optional.ofNullable(flowInstance.getVariableMap()).orElse(Collections.emptyMap()));
|
||||||
|
if (!variableMap.containsKey(bo.getKey())) {
|
||||||
|
log.error("变量不存在: {}", bo.getKey());
|
||||||
|
}
|
||||||
variableMap.put(bo.getKey(), bo.getValue());
|
variableMap.put(bo.getKey(), bo.getValue());
|
||||||
flowInstance.setVariable(FlowEngine.jsonConvert.objToStr(variableMap));
|
flowInstance.setVariable(FlowEngine.jsonConvert.objToStr(variableMap));
|
||||||
flowInstanceMapper.updateById(flowInstance);
|
flowInstanceMapper.updateById(flowInstance);
|
||||||
|
Loading…
Reference in New Issue
Block a user