RED-9933: DocuMine DateFormat config in dossier templates

This commit is contained in:
Maverick Studer 2024-09-25 12:21:38 +02:00
parent d068160a9d
commit a7effce48e

View File

@ -333,7 +333,7 @@ public class AnalyzeService {
redactmanagerAnalyzePagewiseValues.increase(numberOfPages, duration);
AnalyzeResult analyzeResult = AnalyzeResult.builder()
return AnalyzeResult.builder()
.dossierId(analyzeRequest.getDossierId())
.fileId(analyzeRequest.getFileId())
.duration(duration)
@ -343,6 +343,8 @@ public class AnalyzeService {
.analysisNumber(analyzeRequest.getAnalysisNumber())
.rulesVersion(entityLog.getRulesVersion())
.componentRulesVersion(kieWrapperComponentRules.rulesVersion())
.dateFormatsVersion(componentLog.map(ComponentLog::getDateFormatsVersion)
.orElse(-1L))
.dictionaryVersion(entityLog.getDictionaryVersion())
.legalBasisVersion(entityLog.getLegalBasisVersion())
.dossierDictionaryVersion(entityLog.getDossierDictionaryVersion())
@ -351,10 +353,6 @@ public class AnalyzeService {
.addedFileAttributes(addedFileAttributes)
.usedComponentMappings(analyzeRequest.getComponentMappings())
.build();
componentLog.ifPresent(value -> analyzeResult.setDateFormatsVersion(value.getDateFormatsVersion()));
return analyzeResult;
}