Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Dev-5545 Add static instruction. Update snapshots, add details about how the data should look

...

  • <path>\train\inputData\ChannelPackages\CustomerCareUpdates\CustomerCareUpdates.txt
  • <path>\train\inputData\ChannelPackages\ShopUpdates\ShopUpdates.txt
  1. Create a new model with the Name Channel Package Check.
  2. Add a file collector to your model and load the data.
    1. PhixFlow displays a form for the new file collector. Set the Name to Customer Care Updates.
    2. In the model, hover over the Channel Package Check file collector to display the context toolbar.
    3. Click  Upload Managed File
    4.  Navigate to the directory <path>\train\inputData\ChannelPackages\CustomerCareUpdates.
    5. Select the file CustomerCareUpdates.txt. and clickUpload.
    6. PhixFlow adds a new stream to the model, called CustomerCareUpdates.
    7. In the model, hover over the new CustomerCareUpdates stream and click Run Analysis.
    8. Check the data is loaded. There should be 8 lines of data, with columns for Customer Ref, Sales Date and Package.
    9. Now the data is loaded into the stream, set the stream to Image AddedStatic. 
  3. Add another file collector to your model and repeat the process described in step 2. This time:
    1. Set the file collector Name to Shop Updates.
    2. Upload <path>\train\inputData\ChannelPackages\ShopUpdates\ShopUpdates.txt.
    3. PhixFlow loads 7 rows of data to this stream.
    4. Remember to set the steam to Image AddedStatic.

Snapshot of the Channel Package Check model so far:

Image Added

Combine Data Sets

  1. Create a new stream in your model and populate its attributes.
    1. Hover over CustomerCareUpdates and click  Add a new Stream.
    2. Set In the form, set the Name to  Combined Updates.
    3. In the model, show the stream attributes for CustomerCareUpdates .
    4. Drag Select all attributes from CustomerCareUpdates into Combined Updatesthe attributes and drag them into the form for the Combined Updates stream. Drop them into the Attributes section.
  2. Save your model layout.
  3. Add a pipe from the other Connect the ShopUpdates stream to the Combined Updates stream.
    1. Hover over ShopUpdates and click  Add a new Connector.
    2. Click Combined Updates to link the pipe to the

      output

      stream.

    Double-click on Combined Updates to open its configuration form and set the attribute expressions.
    1. Info

      When you connect streams, PhixFlow automatically adds a reference to the input pipe name

    at the start of each expression. To make the union work, you need to update the expression for each attribute
    1. . this appears in the attribute expression. To merge this data successfully you must update the attribute expressions to remove the in. prefix.

    Change in.CustomerRef to CustomerRef.Press Image Removed in the main stream configuration form

  4. Fix all the attribute expressions.
    1. Double-click on Combined Updates to open its configuration form. For each attribute:
    2. In the Attributes section, double-click on an attribute to open its form.
    3. In the form for the attribute, in the Basic Settings section, edit the Expression to remove in. and press Image Added.
      Image Added
  5. In the Combined Updates stream form, press Image Added to save the changes.
  6. Run analysis on Combined Updates.
  7. Check that you have the correct number of records in this stream when the analysis is complete.Check the data set you generated to make sure that every field in every output record has been populated.stream has:
    • the columns CustomerRef, Sales Date and Package
    • 15 rows
    • all cells have data.
      The stream default view:
      Image Added

Snapshot of the Chanel Package Check model so far:

Image Added


Record the Source for Each Update

...