</BUG>
dataTypeUsageService.recalculateForApplications(affectedEntityRefs.toArray(new EntityReference[affectedEntityRefs.size()]));
return deleted;
}
<BUG>private void auditFlowChange(String verb, LogicalFlow flow, String username) {
</BUG>
ImmutableChangeLog logEntry = ImmutableChangeLog.builder()
.parentReference(flow.source())
.severity(Severity.INFORMATION)
.userId(username)

int deleted = logicalFlowDao.removeFlows(flowIds);
dataFlowDecoratorService.deleteAllDecoratorsForFlowIds(flowIds);
Set<EntityReference> affectedEntityRefs = logicalFlows.stream()
.flatMap(df -> Stream.of(df.source(), df.target()))
.collect(Collectors.toSet());
logicalFlows.forEach(flow -> auditFlowChange("removed", flow, username, Operation.REMOVE));
dataTypeUsageService.recalculateForApplications(affectedEntityRefs.toArray(new EntityReference[affectedEntityRefs.size()]));
return deleted;
}
private void auditFlowChange(String verb, LogicalFlow flow, String username, Operation operation) {
ImmutableChangeLog logEntry = ImmutableChangeLog.builder()
.parentReference(flow.source())
.severity(Severity.INFORMATION)
.userId(username)
