Search in sources :

Example 1 with MeasurableDao

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);
}
Also used : Measurable(org.finos.waltz.model.measurable.Measurable) MeasurableDao(org.finos.waltz.data.measurable.MeasurableDao)

Aggregations

MeasurableDao (org.finos.waltz.data.measurable.MeasurableDao)1 Measurable (org.finos.waltz.model.measurable.Measurable)1