Search in sources :

Example 1 with DuplicateInstanceCommand

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

the class ScenarioSimulationEventHandler method onEvent.

@Override
public void onEvent(DuplicateInstanceEvent event) {
    context.getStatus().setColumnId(String.valueOf(new Date().getTime()));
    context.getStatus().setColumnIndex(event.getColumnIndex());
    context.getStatus().setRight(true);
    context.getStatus().setAsProperty(false);
    context.getStatus().setFullPackage(((ScenarioGridColumn) context.getAbstractScesimGridModelByGridWidget(event.getGridWidget()).getSelectedColumn()).getFactIdentifier().getPackageWithoutClassName());
    commonExecution(new DuplicateInstanceCommand(event.getGridWidget()), true);
}
Also used : DuplicateInstanceCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.DuplicateInstanceCommand) ScenarioGridColumn(org.drools.workbench.screens.scenariosimulation.client.widgets.ScenarioGridColumn) Date(java.util.Date)

Aggregations

Date (java.util.Date)1 DuplicateInstanceCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.DuplicateInstanceCommand)1 ScenarioGridColumn (org.drools.workbench.screens.scenariosimulation.client.widgets.ScenarioGridColumn)1