Skip to content

Commit

Permalink
TE-614: Check last end event base on next sequence flow
Browse files Browse the repository at this point in the history
  • Loading branch information
trungmaihova committed Jul 1, 2024
1 parent b73c934 commit ff6ab66
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -97,7 +96,7 @@ protected List<DetectedElement> convertToDetectedElements(Map<ProcessElement, Li
timeUntilStarts);
result.addAll(elements);
}
result = keepMaxTimeUtilEndDetectedElement(result);
//result = keepMaxTimeUtilEndDetectedElement(result);
return result;
}

Expand Down Expand Up @@ -185,8 +184,8 @@ private List<DetectedElement> convertPathToDetectedElements(ProcessElement start

// It is EmbeddedProcessElement
if (element instanceof SubProcessGroup) {
List<AnalysisPath> subPaths = ((SubProcessGroup) element).getInternalPaths();
//List<AnalysisPath> subPaths = getAnalysisPathBaseOnNextSequenceFlow(internalPaths, nextElement.getElement());
List<AnalysisPath> internalPaths = ((SubProcessGroup) element).getInternalPaths();
List<AnalysisPath> subPaths = getAnalysisPathBaseOnNextSequenceFlow(internalPaths, nextElement.getElement());
List<DetectedElement> allTaskFromSubPath = new ArrayList<>();
for(AnalysisPath subPath : subPaths) {
ProcessElement startSubElement = subPath.getElements().get(0);
Expand Down Expand Up @@ -507,6 +506,7 @@ private List<AnalysisPath> getAnalysisPathBaseOnNextSequenceFlow(List<AnalysisPa
taskGroup.setInternalPaths(validInternalPaths);
newPath.add(taskGroup);
}
result.add(new AnalysisPath(newPath));
continue;
}

Expand Down

0 comments on commit ff6ab66

Please sign in to comment.