in src/main/java/com/epam/digital/data/platform/history/service/HistoryTableToExcerptConverter.java [107:124]
private HistoryExcerptRowDdmInfo mapDdmInfo(
HistoryTableRowDdmInfo tableRowDdmInfo,
Map<UUID, String> ddmApplicationsMap,
Map<UUID, String> ddmSystemsMap) {
var excerptRowDdmInfo = new HistoryExcerptRowDdmInfo();
excerptRowDdmInfo.setCreatedAt(
Optional.ofNullable(tableRowDdmInfo.getCreatedAt()).map(Objects::toString).orElse(null));
excerptRowDdmInfo.setCreatedBy(tableRowDdmInfo.getCreatedBy());
excerptRowDdmInfo.setDmlOp(tableRowDdmInfo.getDmlOp());
excerptRowDdmInfo.setSystem(ddmSystemsMap.get(tableRowDdmInfo.getSystemId()));
excerptRowDdmInfo.setApplication(ddmApplicationsMap.get(tableRowDdmInfo.getApplicationId()));
excerptRowDdmInfo.setBusinessProcessId(
Optional.ofNullable(tableRowDdmInfo.getBusinessProcessId())
.map(UUID::toString)
.orElse(null));
excerptRowDdmInfo.setBusinessActivity(tableRowDdmInfo.getBusinessActivity());
return excerptRowDdmInfo;
}