Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this exercise you will produce a single list of updates to customers' Cable TV packages. Customers can update their packages both through the Customer Care system and in shops. You will bring all these updates together into a single list.

Anchor
_Ref349212297
_Ref349212297
Anchor
_Toc442889172
_Toc442889172
Reading in data sets from files

  • Create a new model with Name: Channel Package Check

There are two files containing updates from the two sources (Customer Care, and Shop).
Customer Care updates
A file containing details of customer care updated can be found in the input files, at:
…\inputData\ChannelPackages\CustomerCareUpdates\CustomerCareUpdates.txt
Shop updates
A file containing details of shop updates can be found in the input files, at:
…\inputData\ChannelPackages\ShopUpdates\ShopUpdates.txt

Anchor
_Toc442889173
_Toc442889173
Load file data into PhixFlow

  • Add a File Collector to your model
  • Call this: Customer Care Updates
  • Navigate to the directory …\train\inputData\ChannelPackages\CustomerCareUpdates
  • Select the file CustomerCareUpdates.txt – and complete the automatic File Collector and Stream configuration
  • Add another File Collector to your model
  • Call this: Shop Updates
  • Navigate to the directory …\inputData\ChannelPackages\ShopUpdates
  • Select the file ShopUpdates.txt – and complete the automatic File Collector and Stream configuration
  • Run both Streams and check that data is loaded into each one from the files

Anchor
_Toc442889174
_Toc442889174
Combine data sets

  • Create a new Stream in your model:
  • Hover over CustomerCareUpdates and 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 PhixFlow has automatically added to the start of each Expression, e.g.:
      • Update the expression

...

  • 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

Anchor
_Toc442889175
_Toc442889175
Record source for each update

You will now update you configuration to record the source for each update, in the set of combined updates. To do this:

...