use of org.drools.workbench.screens.scenariosimulation.client.editor.strategies.AbstractDMODataManagementStrategy in project drools-wb by kiegroup.
the class ScenarioSimulationEditorBusinessCentralWrapper method setCoverageReport.
protected void setCoverageReport(CoverageReportView.Presenter presenter) {
ScenarioSimulationModel.Type modelType = scenarioSimulationEditorPresenter.getDataManagementStrategy() instanceof AbstractDMODataManagementStrategy ? ScenarioSimulationModel.Type.RULE : ScenarioSimulationModel.Type.DMN;
SimulationRunMetadata simulationRunMetadata = lastRunResult != null ? lastRunResult.getSimulationRunMetadata() : null;
presenter.populateCoverageReport(modelType, simulationRunMetadata);
if (simulationRunMetadata != null && simulationRunMetadata.getAuditLog() != null) {
presenter.setDownloadReportCommand(() -> onDownloadReportToCsv(scenarioSimulationEditorPresenter.getExportCallBack(), new ScenarioSimulationHasBusyIndicatorDefaultErrorCallback(scenarioSimulationEditorPresenter.getView()), simulationRunMetadata, modelType));
}
}
use of org.drools.workbench.screens.scenariosimulation.client.editor.strategies.AbstractDMODataManagementStrategy in project drools-wb by kiegroup.
the class ScenarioSimulationEditorPresenter method setSettings.
public void setSettings(SettingsView.Presenter presenter) {
Type modelType = dataManagementStrategy instanceof AbstractDMODataManagementStrategy ? Type.RULE : Type.DMN;
presenter.setEventBus(eventBus);
presenter.setScenarioType(modelType, model.getSettings(), path.getFileName());
}
use of org.drools.workbench.screens.scenariosimulation.client.editor.strategies.AbstractDMODataManagementStrategy in project drools-wb by kiegroup.
the class ScenarioSimulationEditorPresenter method setCheatSheet.
public void setCheatSheet(CheatSheetView.Presenter presenter) {
Type modelType = dataManagementStrategy instanceof AbstractDMODataManagementStrategy ? Type.RULE : Type.DMN;
presenter.initCheatSheet(modelType);
}
Aggregations