void process()

in src/main/java/com/epam/digital/data/platform/restapi/core/advice/FileRequestBodyAspect.java [64:81]


  void process(JoinPoint joinPoint, Object dto, RequestContext context,
      SecurityContext securityContext) {

    var notFound = new ArrayList<String>();

    filePropertiesService.getFileProperties(dto).forEach(
        f -> {
          var success = fileService.store(context.getRootBusinessProcessInstanceId(), f.getValue());
          if (!success) {
            notFound.add(f.getName());
          }
        }
    );

    if (!notFound.isEmpty()) {
      throw new FileNotExistsException("Files not found in ceph bucket", notFound);
    }
  }