Search in sources :

Example 1 with Type

use of org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type 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());
}
Also used : ScenarioSimulationResourceType(org.drools.workbench.screens.scenariosimulation.client.type.ScenarioSimulationResourceType) FactMappingType(org.drools.scenariosimulation.api.model.FactMappingType) Type(org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type) AbstractDMODataManagementStrategy(org.drools.workbench.screens.scenariosimulation.client.editor.strategies.AbstractDMODataManagementStrategy)

Example 2 with Type

use of org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type 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);
}
Also used : ScenarioSimulationResourceType(org.drools.workbench.screens.scenariosimulation.client.type.ScenarioSimulationResourceType) FactMappingType(org.drools.scenariosimulation.api.model.FactMappingType) Type(org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type) AbstractDMODataManagementStrategy(org.drools.workbench.screens.scenariosimulation.client.editor.strategies.AbstractDMODataManagementStrategy)

Aggregations

FactMappingType (org.drools.scenariosimulation.api.model.FactMappingType)2 Type (org.drools.scenariosimulation.api.model.ScenarioSimulationModel.Type)2 AbstractDMODataManagementStrategy (org.drools.workbench.screens.scenariosimulation.client.editor.strategies.AbstractDMODataManagementStrategy)2 ScenarioSimulationResourceType (org.drools.workbench.screens.scenariosimulation.client.type.ScenarioSimulationResourceType)2