Search in sources :

Example 1 with ScenarioDao

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);
}
Also used : Roadmap(org.finos.waltz.model.roadmap.Roadmap) RoadmapDao(org.finos.waltz.data.roadmap.RoadmapDao) ScenarioDao(org.finos.waltz.data.scenario.ScenarioDao) Scenario(org.finos.waltz.model.scenario.Scenario)

Aggregations

RoadmapDao (org.finos.waltz.data.roadmap.RoadmapDao)1 ScenarioDao (org.finos.waltz.data.scenario.ScenarioDao)1 Roadmap (org.finos.waltz.model.roadmap.Roadmap)1 Scenario (org.finos.waltz.model.scenario.Scenario)1