RED-9933: DocuMine DateFormat config in dossier templates
This commit is contained in:
parent
d068160a9d
commit
a7effce48e
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user