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);
}
Aggregations