update - 处理特殊的 JSON 转 BPMN 协议的逻辑

This commit is contained in:
wangli 2023-12-11 12:30:53 +08:00
parent b5d3f63d9b
commit e0cf547f27

View File

@ -447,7 +447,8 @@ public final class BpmnJsonConverterUtil {
? bpmnJsonNode.getChildren() : branch.getChildren();
if (Objects.isNull(nextJsonNode) || Objects.isNull(nextJsonNode.getId()) ||
(Objects.equals(NODE_EMPTY, nextJsonNode.getType()) && Objects.isNull(nextJsonNode.getChildren()))) {
(Objects.equals(NODE_EMPTY, nextJsonNode.getType()) &&
(Objects.isNull(nextJsonNode.getChildren()) || Objects.isNull(nextJsonNode.getChildren().getId())))) {
BpmnJsonNode tempEndNode = new BpmnJsonNode();
tempEndNode.setIncoming(Lists.newArrayList(gateway.getId()));
tempEndNode.setId(END_EVENT_ID);