mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
QQQ-37 update streamed-etl steps to not have to use different record-list
This commit is contained in:
@ -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.*"))
|
||||
{
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user