in src/main/java/com/epam/digital/data/platform/restapi/core/advice/FileResponseBodyAdvice.java [78:89]
private void storeFilesToLowcodeCephBucket(List<FileProperty> fileProperties, String rootProcessInstanceId) {
var notFoundFileNames = new ArrayList<String>();
fileProperties.forEach(fileProperty -> {
var isFileFound = fileService.retrieve(rootProcessInstanceId, fileProperty.getValue());
if (!isFileFound) {
notFoundFileNames.add(fileProperty.getName());
}
});
if (!notFoundFileNames.isEmpty()) {
throw new FileNotExistsException("Files not found in ceph bucket", notFoundFileNames);
}
}