update 调整变量修改

master
may 5 months ago
parent 240f10ab45
commit 8d7358e663

@ -373,6 +373,7 @@ public class FlwInstanceServiceImpl implements IFlwInstanceService {
Map<String, Object> variableMap = new HashMap<>(Optional.ofNullable(flowInstance.getVariableMap()).orElse(Collections.emptyMap()));
if (!variableMap.containsKey(bo.getKey())) {
log.error("变量不存在: {}", bo.getKey());
return false;
}
variableMap.put(bo.getKey(), bo.getValue());
flowInstance.setVariable(FlowEngine.jsonConvert.objToStr(variableMap));

Loading…
Cancel
Save