Versions Compared

Key

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

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

...

Task plans allow you to set up collections of components to run at the same time – and to . 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 repository browser find Image Modified Task Plans

...

  1. . Right-click on

...

  1. Task Plans to display the pop-up menu.
  2. Select 
    Insert excerpt
    _add
    _add
    nopaneltrue
    . PhixFlow opens a new task plan settings.
  3. In Basic Settings, set:
    • Name: Run Customer Details Model

...

    • Enabled: tick

...

    • In the toobar, click 
      Insert excerpt
      _save
      _save
      nopaneltrue
      .
  1. In Tasks, click 
    Insert excerpt
    _add
    _add
    nopaneltrue
     and from the drop-down men, select Analysis Task. PhixFlow opens a new Analysis Task Details

...

  1. settings tab on the left of the task plan

...

  1. settings tab

      ...

        1. In the  Basic Settings section, set:
          • Name: Run Customer Summary by Region

      ...

          • Click 
            Insert excerpt
            _save
            _save
            nopaneltrue
            .
        1. In the Streams secion, click 
          Insert excerpt
          _streams
          _streams
          nopaneltrue
           to list the streams.
          • On the right, PhixFlow displays the list of streams in the repository.
          • Find the stream Customer Summary by Region and drag it into the list of streams in the form.
            Image Modified

      ...

        1. Click 
          Insert excerpt
          _finish
          _finish
          nopaneltrue
          to save and close the

      ...

        1. 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()
      

      ...

      Code Block
      "Result of Run Customer Details Model at " + now() + ": Messages: " + 
      _messages + "; Warnings: " + _warnings + "; Errors: " + _errors
      • Go to the In the  Notification sectionDrag , drag the user Train (the user you are currently logged in as) into the list of recipients.
      • In the main task plan details form press Image Removedsettings toolbar, click 
        Insert excerpt
        _finish
        _finish
        nopaneltrue
        .
      • Right-click on your task plan and select Start. PhixFlow runs the task plan and sends an email to the selected user.
      • You will receive another email from the export of the customer summary, and an email with the status of the task plan run.

      Scheduling Task Plans

      • Double-click your new task plan to open the details formits settings.
      • In the Basic Settings section, set Scheduled: tick the flag ScheduledASchedule section will appearEnter the valuesPhixFlow displays a Schedule section. 
      • 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 * and ?.
        Enter:
        • Seconds: 0
        • Minutes:
        (
        •  mm
             where mm is 2 or 3 minutes from
        now)
        • now. For example, if the time is now 11:41 am, enter 43.
        • Hours:
        (
        •  hh
             where hh is the current hour
        )
        • . For example, if the time is now 11:41 am, enter 11.
        • Day of Month: *
        • Month: *
        • Day of Week: ?
        • Year: *
        Press Image Removed
      • Click 
        Insert excerpt
        _finish
        _finish
        nopaneltrue
        .
      • Wait for your task plan to start under its schedule.