Turn a single record into multiple records
Scenario
A list of Ids arrives as single record containing a comma separated list, and CerterView wants to create a single record for each element of the list. For example, the list may have come from a web service, and the Ids need to be in separate records for further processing
Create a Stream with one element - a comma separated list of 10 values. Process that stream into another Stream such that the result is 10 records, each with a different one of the 10 values.
Solution:
- Create an Output Multiplier expression to parse the comma separated values into a list of 10 values
- Reference the values in that list with the "_type" internal variable.
See Also
- href="../../../../../../doc/training/Exercises.pdf">Patterns and Exercise Training Document
- href="http://www.phixflow-online.com:8081/patterns">PhixFlow Online Patterns and Training