Commit d8366a31 by huangfusuper

处理只有子流的情况

parent f4889200
......@@ -77,13 +77,16 @@ public class WorkflowCommonParameterAggregation implements InstanceRunTheLifeCyc
String thisRedisKeyData = stringRedisTemplate.opsForValue().get(redisKey);
FlowExtendedConfiguration flowExtendedConfiguration = JSON.parseObject(thisRedisKeyData, FlowExtendedConfiguration.class);
Map<String, String> thisRedisKeyMap = JSON.parseObject(flowExtendedConfiguration.getPublicParam(), Map.class);
if (CollectionUtil.isNotEmpty(thisRedisKeyMap)) {
thisRedisKeyMap.forEach((key, value) -> {
if (!publicParam.containsKey(key)) {
publicParam.put(key, value);
}
});
if(flowExtendedConfiguration != null) {
Map<String, String> thisRedisKeyMap = JSON.parseObject(flowExtendedConfiguration.getPublicParam(), Map.class);
if (CollectionUtil.isNotEmpty(thisRedisKeyMap)) {
thisRedisKeyMap.forEach((key, value) -> {
if (!publicParam.containsKey(key)) {
publicParam.put(key, value);
}
});
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment