I am trying to create a new node with no inputs but when I execute the node i get an Error within a line where only a TODO comment is.
The execute() function:
@Override
protected BufferedDataTable[] execute(final BufferedDataTable[] inData, final ExecutionContext exec) throws Exception {
BufferedDataContainer container = exec.createDataContainer(null);
boolean currentAuthState = authNeeded.getBooleanValue();
List<DataCell> cells = new ArrayList<>();
cells.add(new StringCell(String.valueOf(currentAuthState)));
DataRow row = new DefaultRow(RowKey.createRowKey(1L), cells);
container.addRowToTable(row);
container.close();
BufferedDataTable out = container.getTable();
return new BufferedDataTable[] { out };
}
But the code isn’t even reached when i (try to) execute the node.
Respectively the breakpoints I set arn’t reached.
The function with the line where I get the error:
@Override
protected DataTableSpec[] configure(final DataTableSpec[] inSpecs) throws InvalidSettingsException {
// TODO: generated method stub
return new DataTableSpec[]{null};
}