@Override public List<String> updateLegacyFlows(String fromVersion, String entityName) { Path entityDir = project.getHubEntitiesDir().resolve(entityName); Path inputDir = entityDir.resolve("input"); Path harmonizeDir = entityDir.resolve("harmonize"); updateLegacyEntity(entityName); List<String> updatedFlows = new ArrayList<>(); File[] inputFlows = inputDir.toFile().listFiles((pathname) -> pathname.isDirectory() && !pathname.getName().equals("REST")); if (inputFlows != null) { for (File inputFlow : inputFlows) { if (updateLegacyFlow(fromVersion, entityName, inputFlow.getName(), FlowType.INPUT)) { updatedFlows.add(entityName + " => " + inputFlow.getName()); } else if(update2xFlow(entityName, inputFlow.getName(), FlowType.INPUT)) { updatedFlows.add(entityName + " => " + inputFlow.getName()); } } } File[] harmonizeFlows = harmonizeDir.toFile().listFiles((pathname) -> pathname.isDirectory() && !pathname.getName().equals("REST")); if (harmonizeFlows != null) { for (File harmonizeFlow : harmonizeFlows) { if(updateLegacyFlow(fromVersion, entityName, harmonizeFlow.getName(), FlowType.HARMONIZE)) { updatedFlows.add(entityName + " => " + harmonizeFlow.getName()); } else if(update2xFlow(entityName, harmonizeFlow.getName(), FlowType.HARMONIZE)) { updatedFlows.add(entityName + " => " + harmonizeFlow.getName()); } } } return updatedFlows; }