Versions Compared

Key

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

...

  1. In your model, to add a new file exporter hover over the stream Customer Summary by Region, and press  Add a new File Exporter
  2. Give the new exporter the Name: Send Customer Summary ReportPress Image Removed
  3. Click 
    Insert excerpt
    _finish
    _finish
    nopaneltrue
     to save your changes.
  4. You will now see the new file exporter on in the modelling panemodel.
  5. Save your model layout. 

As well as exporting the file to a directory on the PhixFlow server, you will email the file to yourself. Before you set this up, you need to update the user Train train with your email address:

  1. In the top-bottom right hand of the application, go to the User menuSelect My User Detailsthe 
    Insert excerpt
    _user_details
    _user_details
    nopaneltrue
  2. Update the Email Address with your email addressPress Image Removed to
  3. Click 
    Insert excerpt
    _finish
    _finish
    nopaneltrue
     to save your changes.

Complete settings for the file exporter.

  1. Double-click on the new file exporter icon on your model view
  2. Tick the flag Enabled
  3. In the field File Name (Expr) enter the value:

    Code Block
    "customerSummaryByRegion.txt"


  4. In the field Output Directory (Expr) enter:

    Code Block
    "customerReports/customerSummaryByRegion"


  5. Tick the flag Overwrite existing file
  6. Tick the flag Header
  7. Go to the Send By Email section, and set the following:
    • Email from: system@PhixFlow.com
    • Subject Expression: "Export of customerSummaryByRegion.txt at " + now()
    • Message Expression: "Please find file customerSummaryByRegion.txt attached. Generated at " + now()
    • Attach File: tick
  8. Go to the User Recipients section Press Image RemovedShow the list of Usersand click 
    Insert excerpt
    _add
    _add
    nopaneltrue
    .
  9. In the New User Notification Rule. properties that opens, set:
    • Email As: To then click 
      Insert excerpt
      _save
      _save
      nopaneltrue
      .
    • In the Users section, click 
      Insert excerpt
      _user
      _user
      nopaneltrue
       to open a list of users.
    • Drag the user Train (the user you are currently logged in as) into the list of recipients.
    • Save and close the notification rule. PhixFlow adds the user to the list of User Recipients.
  10. In the file exporter configuration form,

    press Image RemovedNote that the

    click 

    Insert excerpt
    _finish
    _finish
    nopaneltrue
    .

    Note

    The pipe to the file exporter is dotted

    – this means

    to indicate that it is a Push pipe. When linking a stream to a file exporter you must always use a push pipe. This is because you cannot run a file exporter on its own; it must always be driven from a stream

    (otherwise

    . Otherwise, it has no data to process

    )


  11. Run analysis on the stream Stream Customer Summary by Region
  12. Check the log messages generated in the console – in particular scroll to the end; you should see messages telling you that a file has been exported
  13. Now find your file - you should have received an email with the file attached
  14. The file has also been exported to the PhixFlow server