mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 调整变量修改
This commit is contained in:
		@@ -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));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user