GitHub user UEMravamo added a comment to the discussion: User Java Class Step
"Cannot determine simple type name "StepMetaInterface""
Correct, sorry — my mistake . I copied the code incorrectly from another
example. Here's the one I'm working with now,
``` java
String firstnameField;
String lastnameField;
String datField;
public boolean processRow() throws HopException {
if (first) {
firstnameField = getParameter("FIRSTNAME_FIELD");
lastnameField = getParameter("LASTNAME_FIELD");
first = false;
}
Object[] r = getRow();
if (r == null) {
setOutputDone();
return false;
}
Object[] outputRow = createOutputRow(r, data.outputRowMeta.size());
String firstname = get(Fields.In, firstnameField).getString(r);
String lastname = get(Fields.In, lastnameField).getString(r);
String dat = firstname + lastname ;
get(Fields.Out, datField).setValue(outputRow, dat);
putRow(data.outputRowMeta, outputRow);
return true;
}
```
I'm not 100% sure — in the end, I ended up doing the same example that Slawo
used in his blog.
GitHub link:
https://github.com/apache/hop/discussions/5117#discussioncomment-12756468
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]