diff --git a/process-analyzer/src/com/axonivy/utils/process/analyzer/internal/PathFinder.java b/process-analyzer/src/com/axonivy/utils/process/analyzer/internal/PathFinder.java index d44990aa..853089ff 100644 --- a/process-analyzer/src/com/axonivy/utils/process/analyzer/internal/PathFinder.java +++ b/process-analyzer/src/com/axonivy/utils/process/analyzer/internal/PathFinder.java @@ -564,7 +564,8 @@ private Optional getSequenceFlow(NodeElement nodeElement, String f return flow; } } - + + //Sequence flow after Task Optional flow = outs.stream().filter(out -> hasFlowNameOrEmpty(out, flowName)).findFirst(); return flow; @@ -624,7 +625,7 @@ private boolean isDefaultPath(SequenceFlow flow) { } private boolean isDefaultPath(Alternative alternative, SequenceFlow sequenceFlow) { - String currentElementId = sequenceFlow.getPid().getFieldId(); + String currentElementId = sequenceFlow.getPid().getFieldIds(); List nextTargetIds = processGraph.getNextTargetIdsByCondition(alternative, EMPTY); return nextTargetIds.contains(currentElementId); }