Copy rows to result
Description
The Copy Rows To Result transform allows you to transfer rows of data (in memory) to the next pipeline (or workflow action) in a workflow via an internal result row set.
Usage
The Copy Rows To Result transform can be paired with the Get Rows from Result transform to retrieve the result row set in a pipeline. In some cases, the Get rows from Result transform is not required to retrieve the result set such as a pipeline transform in a workflow. Data rows can be passed from and to pipelines on a workflow, but data rows cannot be accessed directly in a workflow.
This transform can be used by the Get Rows from Result transform and some workflow actions that allow to process the internal result row set.
| this transform is mainly available for historical reasons. There are newer and better ways to create loops in Hop, check the Best Practices for more information. |
Options
| Option | Description |
|---|---|
Transform name |
Name of the transform this name has to be unique in a single pipeline. |
Samples
The samples project has:
-
transforms/copy-rows-to-result.hpl, which copies the two rows of a Data grid to the result of the pipeline, for a parent workflow or pipeline to pick up. -
loops/child-loops-copy-rows-to-result.hpl, which copies 10 numbered rows to the result;loops/loops-process-rows-from-memory.hwfthen runsloops/child-loops-log-counter.hplonce for each of them. -
loops/child-loops-log-counter.hpl, which writes the parameterPRM_COUNTERto the log and copies its one row to the result;loops/pipeline-executor.hplgets these rows on its result rows stream.