diff --git a/process-inspector/src/com/axonivy/utils/process/inspector/internal/WorkflowPath.java b/process-inspector/src/com/axonivy/utils/process/inspector/internal/WorkflowPath.java index 12554b0..27de939 100644 --- a/process-inspector/src/com/axonivy/utils/process/inspector/internal/WorkflowPath.java +++ b/process-inspector/src/com/axonivy/utils/process/inspector/internal/WorkflowPath.java @@ -14,7 +14,6 @@ import java.util.Map; import java.util.Map.Entry; import java.util.Optional; -import java.util.stream.Collector; import java.util.stream.Collectors; import org.apache.commons.collections4.ListUtils; @@ -97,7 +96,7 @@ protected List convertToDetectedElements(Map convertPathToDetectedElements(ProcessElement start // It is EmbeddedProcessElement if (element instanceof SubProcessGroup) { - List subPaths = ((SubProcessGroup) element).getInternalPaths(); - //List subPaths = getAnalysisPathBaseOnNextSequenceFlow(internalPaths, nextElement.getElement()); + List internalPaths = ((SubProcessGroup) element).getInternalPaths(); + List subPaths = getAnalysisPathBaseOnNextSequenceFlow(internalPaths, nextElement.getElement()); List allTaskFromSubPath = new ArrayList<>(); for(AnalysisPath subPath : subPaths) { ProcessElement startSubElement = subPath.getElements().get(0); @@ -507,6 +506,7 @@ private List getAnalysisPathBaseOnNextSequenceFlow(List