use of org.finos.waltz.data.measurable.MeasurableDao in project waltz by khartec.
the class RoadmapGenerator method pickAxisItems.
private List<Measurable> pickAxisItems(ApplicationContext ctx, EntityReference type, int howMany) {
MeasurableDao measurableDao = getMeasurableDao(ctx);
List<Measurable> concreteChoices = filter(Measurable::concrete, measurableDao.findByCategoryId(type.id()));
return randomPick(concreteChoices, howMany);
}
Aggregations