修复网关包含子节点流程转换报错问题

This commit is contained in:
yangqicheng 2024-07-25 15:18:01 +08:00
parent d7d7cb4050
commit b6cc8a773d

View File

@ -268,7 +268,7 @@ public class BpmTransformUtil {
// }
}
);
if (Objects.nonNull(identifier)) {
if (Objects.nonNull(identifier) && StringUtils.isNotBlank(identifier)) {
incoming.add(identifier);
}
}
@ -339,10 +339,7 @@ public class BpmTransformUtil {
}
}
} else if (!CollectionUtils.isEmpty(incoming)) {
incoming.forEach(i -> {
process.addFlowElement(sequenceFlow(i, END_EVENT_ID, sequenceFlows, childNodeMap,
process));
});
incoming.forEach(i -> process.addFlowElement(sequenceFlow(i, END_EVENT_ID, sequenceFlows, childNodeMap, process)));
return "";
}
return exclusiveGatewayId;