public V transformFileToEntity()

in src/main/java/com/epam/digital/data/platform/restapi/core/service/AbstractCsvProcessor.java [65:81]


  public V transformFileToEntity(Request<File> input) {
    var file = input.getPayload();
    log.info("Getting csv file '{}' from lowcode ceph bucket", file.getId());

    var lowcodeId =
        fileKeyProvider.generateKey(
            input.getRequestContext().getBusinessProcessInstanceId(), file.getId());

    FileDataDto fileDataDto = lowcodeFileDataStorageService.loadByKey(lowcodeId);

    var content = getContent(fileDataDto.getContent());
    validateContent(content, file);

    var newRequestPayload = getPayloadObjectFromContent(content);
    validatePayloadObject(newRequestPayload);
    return newRequestPayload;
  }