added log message for source and target entity.
enhanced the change log message to me more readable
@@ -314,18 +314,24 @@ public class DataTypeDecoratorService {
break;
case PHYSICAL_SPECIFICATION:
PhysicalSpecification physicalSpecification = physicalSpecificationDao.getById(entityReference.id());
+ logicalFlowService
+ .findBySelector(mkOpts(entityReference))
+ .forEach(lf -> {
String message = String.format("Physical Specification [%s]: Data types changed from [%s] to [%s]",
- physicalSpecification,
+ physicalSpecification.name(),
currentDataTypeNames,
updatedDataTypeNames);
audit(message, physicalSpecification.entityReference(), userName);
+ audit(message, lf.source(), userName);
+ audit(message, lf.target(), userName);
+ });
break;
}
}
private String getAssociatedDatatypeNamesAsCsv(EntityReference entityReference) {
- IdSelectionOptions idSelectionOptions = IdSelectionOptions.mkOpts(
+ IdSelectionOptions idSelectionOptions = mkOpts(
entityReference,
HierarchyQueryScope.EXACT);
