use of org.finos.waltz.model.datatype.DataType in project waltz by khartec.
the class FlowDiagramService method makeForDataType.
private Long makeForDataType(EntityReference ref, String userId, String providedTitle) {
DataType dataType = dataTypeService.getDataTypeById(ref.id());
String title = isEmpty(providedTitle) ? dataType.name() + " flows" : providedTitle;
return mkNewFlowDiagram(title, userId, newArrayList(mkDiagramEntity(dataType)), emptyList());
}
Aggregations