mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-10-08 02:56:40 +08:00
Compare commits
2 Commits
48213bc9c9
...
8d7358e663
Author | SHA1 | Date | |
---|---|---|---|
|
8d7358e663 | ||
|
240f10ab45 |
@ -371,6 +371,10 @@ public class FlwInstanceServiceImpl implements IFlwInstanceService {
|
||||
}
|
||||
try {
|
||||
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));
|
||||
flowInstanceMapper.updateById(flowInstance);
|
||||
|
Loading…
Reference in New Issue
Block a user