...
- Create a new Stream in your model:
- Hover over CustomerCareUpdates and press press - Add a new Stream
- Call the new Stream Combined Updates
- Drag all attributes from CustomerCareUpdates to Combined Updates
- Remember to save your model layout
- Add a pipe from the other Stream:
- Hover over ShopUpdates and press - Add a new Connector
- Click on Combined Updates to link the pipe to the output Stream
- Give this pipe the Name: in2
- To complete configuration of Combined Updates:
- Double-click on Combined Updates to open the configuration form
- To make the union work, you need to update the Expression for each Attribute:
you must remove the reference to the input pipe that CenterView has automatically added to the start of each Expression, e.g.:
- Update the expression
in.CustomerRef
to
CustomerRef
- Press Press in the main Stream configuration form
- Run Analysis on Combined Updates
- Check that you have the correct number of records in this Stream when the Analysis is complete
- Check the data set you generated – make sure that every field in every output record has been populated
...
- Update the name of the pipe from the Stream CustomerCareUpdates:
- Double-click on the pipe to open the configuration details
- Update the Name to: CC
- Press Press to save your changes
- Update the name of the pipe from ShopUpdates to: shop
- Double-click the Stream Combined Updates to open the configuration form
- Add a new Attribute with Name: Source
- Set the Expression of Source to:
if (_pipeName == "CC",
"Customer Care"
,
"Shop"
)
- Make Source the first Attribute in the Stream: drag it to the top of the Attributes list
- Press Press in the main Stream configuration form
- Run analysis on Combined Updates
- Check the output data set and make sure that the source has been recorded on each record correctly