Search in sources :

Example 1 with UpdateSettingsDataCommand

use of org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.UpdateSettingsDataCommand in project drools-wb by kiegroup.

the class ScenarioSimulationEventHandler method onEvent.

@Override
public void onEvent(UpdateSettingsDataEvent updateSettingsDataEvent) {
    if (updateSettingsDataEvent.getSettingsValueChanged().test(context.getScenarioSimulationModel().getSettings())) {
        commonExecution(new UpdateSettingsDataCommand(updateSettingsDataEvent.getSettingsChangeToApply(), updateSettingsDataEvent.isDmnPathChanged()), false);
        scenarioSimulationEditorPresenter.unpublishTestResultsAlerts();
    }
}
Also used : UpdateSettingsDataCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.UpdateSettingsDataCommand)

Aggregations

UpdateSettingsDataCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.UpdateSettingsDataCommand)1