Versions Compared

Key

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

Image Added

Insert excerpt
_Banners
_Banners
nameanalysis
nopaneltrue

By the end of this chapter you will be able to:

  • Set up

...

  • tasks and

...

  • task plans
  • Schedule

...

  • task plans

Task

...

plans allow you to set up collections of components to run at the same time

...

. You can also schedule when analysis will run on these models. In this exercise you will set up a simple

...

task plan to run your model, and schedule it.

...

...

Creating Tasks and Task Plans

  1. In the

...

  1. repository, find 
    Insert excerpt
    _taskplan
    _taskplan
    nopaneltrue
    .
  2. Select 
    Insert excerpt
    _new
    _new
    nopaneltrue
    . PhixFlow opens a new task plan settings.
  3. In Basic Settings, set:
    • Name: Run Customer Details Model

...

    • Enabled: tick
    • In the toolbar, click 
      Insert excerpt
      _save
      _save
      nopaneltrue
      .
  1. In Tasks, click 
    Insert excerpt
    _new
    _new
    nopaneltrue
     and from the drop-down men, select Analysis Task. PhixFlow opens a new Analysis Task Details settings tab on the left of the task plan settings tab. 
    1. In the  Basic Settings section, set:
      • Name: Run Customer Summary by Region

...

  • Find the Stream Customer Summary by Region

...

      • Click 
        Insert excerpt
        _save
        _save
        nopaneltrue
        .
    1. In the Tables section, click 
      Insert excerpt
      _table_list
      _table_list
      nopaneltrue
       to list the tables.
      • On the right, PhixFlow displays the list of tables in the repository.
      • Find the table Customer Summary by Region and drag it into the list of tables in the form.
        Image Added
    2. Click 
      Insert excerpt
      _finish
      _finish
      nopaneltrue
      to save and close the analysis task details settings.
  1. Back in the task plan settings, in the Send By Email section, set:
    • Email from: system@PhixFlow.com


    • Subject Expression:

      Code Block
      "Result of Run Customer Details Model at " + now()

...

    • 
      


    • Message Expression:

      Code Block
      "Result of Run Customer Details Model at " + now() + ": Messages: " + 
      _messages + "; Warnings: " + _warnings + "; Errors: " + _errors

...


  1. In the  Notification section, drag the user Train (the user you are currently logged in as) into the list of recipients.
  2. In the

...

  1. settings toolbar, click 
    Insert excerpt
    _finish
    _finish
    nopaneltrue
    .
  2. Right-click on your

...

  1. task plan and select Start. PhixFlow runs the task plan and sends an email to the selected user.
  2. You will receive another email from the export of the customer summary, and an email with the status of the task plan run

...

  1. .

Scheduling Task Plans

  1. Double-click your new

...

  1. task plan to open

...

  1. its settings.
  2. In the

...

  • Tick the flag Scheduled

...

  1. Basic Settings section, set Scheduled: tick. PhixFlow displays a Schedule section. 
  2. You need to enter values that will run the task plan 2 or 3 minutes from now. 
    For day, month and year fields you will use wildcard characters: * for all values and ? to indicate no value is set. For more help see Task Plans.
    Enter:
    1. Seconds: 0
    2. Minutes:

...

    1.  mm
         where mm is 2 or 3 minutes from

...

    1. now. For example, if the time is now 11:41 am, enter 43.
    2. Hours:

...

    1.  hh
      1. where hh is the current hour

...

      1. . For example, if the time is now 11:41 am, enter 11.
    1. Day of Month: *
      1.  where * is everyday
    2. Month: *
    3. Day of Week: ?
      1. where ? indicates no value, as we have specified everyday above.
    4. Year: *

...

  1. Click 
    Insert excerpt
    _finish
    _finish
    nopaneltrue
    .
  2. Wait for your

...

  1. task plan to start under its schedule.