use of org.drools.workbench.models.guided.scorecard.backend.GuidedScoreCardModelVisitor in project drools-wb by kiegroup.
the class GuidedScoreCardEditorServiceImpl method constructContent.
@Override
protected ScoreCardModelContent constructContent(Path path, Overview overview) {
final ScoreCardModel model = load(path);
final PackageDataModelOracle oracle = dataModelService.getDataModel(path);
final PackageDataModelOracleBaselinePayload dataModel = new PackageDataModelOracleBaselinePayload();
final GuidedScoreCardModelVisitor visitor = new GuidedScoreCardModelVisitor(model);
DataModelOracleUtilities.populateDataModel(oracle, dataModel, visitor.getConsumedModelClasses());
// Signal opening to interested parties
resourceOpenedEvent.fire(new ResourceOpenedEvent(path, safeSessionInfo));
return new ScoreCardModelContent(model, overview, dataModel);
}
Aggregations