QQQ-37 update streamed-etl steps to not have to use different record-list

This commit is contained in:
2022-09-06 15:15:04 -05:00
parent 31e6bf4d49
commit 25c9376ce4
13 changed files with 229 additions and 133 deletions

View File

@ -76,7 +76,7 @@ public class ClonePeopleTransformStep extends AbstractTransformStep implements P
@Override
public void run(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) throws QException
{
for(QRecord inputPerson : getInputRecordPage())
for(QRecord inputPerson : runBackendStepInput.getRecords())
{
Serializable id = inputPerson.getValue("id");
if("Garret".equals(inputPerson.getValueString("firstName")))
@ -92,7 +92,7 @@ public class ClonePeopleTransformStep extends AbstractTransformStep implements P
QRecord outputPerson = new QRecord(inputPerson);
outputPerson.setValue("id", null);
outputPerson.setValue("firstName", "Clone of: " + inputPerson.getValueString("firstName"));
getOutputRecordPage().add(outputPerson);
runBackendStepOutput.getRecords().add(outputPerson);
if(inputPerson.getValueString("firstName").matches("Clone of.*"))
{

View File

@ -91,7 +91,7 @@ class ClonePeopleTransformStepTest
RunBackendStepOutput output = new RunBackendStepOutput();
ClonePeopleTransformStep clonePeopleTransformStep = new ClonePeopleTransformStep();
clonePeopleTransformStep.setInputRecordPage(queryOutput.getRecords());
input.setRecords(queryOutput.getRecords());
clonePeopleTransformStep.run(input, output);
ArrayList<ProcessSummaryLine> processSummary = clonePeopleTransformStep.getProcessSummary(true);