use of org.finos.waltz.data.scenario.ScenarioDao in project waltz by khartec.
the class RoadmapGenerator method mkScenario.
private void mkScenario(ApplicationContext ctx, long roadmapId) {
ScenarioDao scenarioDao = getScenarioDao(ctx);
RoadmapDao roadmapDao = getRoadmapDao(ctx);
Roadmap roadmap = roadmapDao.getById(roadmapId);
Scenario scenario = scenarioDao.add(roadmapId, "Current", "admin");
mkAxisItems(ctx, scenario, roadmap);
populateScenario(ctx, scenario);
}
Aggregations