use of org.kie.workbench.common.dmn.client.commands.expressions.types.function.AddParameterCommand in project kie-wb-common by kiegroup.
the class FunctionGrid method addParameter.
@Override
public void addParameter(final Command onSuccess) {
expression.ifPresent(e -> {
final InformationItem parameter = new InformationItem();
parameter.setName(new Name("p" + e.getFormalParameter().size()));
sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new AddParameterCommand(e, parameter, () -> {
gridLayer.batch();
onSuccess.execute();
}));
});
}
Aggregations