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 yourIntroduction to Modellinganalysis model, and schedule it.
Creating Tasks and Task Plans
In the Repository for your application, Analysis Training, find Task Plan.
Select Create New. PhixFlow opens a new task plan settings.
In Basic Settings, set:
Name: Run Customer Details Model
Enabled:
In the toolbar, click Apply.
In the Tasks section, hover over and from the drop-down menu, select Analysis Task. PhixFlow opens a New Analysis Task tab on the left of the task plan settings tab.
In the Basic Settings section, set:
Name: Run Customer Summary by Region
Click Apply.
In the Tables section, click List Tables 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 Tables section.
Click Apply and Close to save and close the analysis task details settings.
Back in the task plan settings, in the Send By Email section, set:
This is the email account used to send emails from PhixFlow, see Email Account.
Subject Expression:
"Result of Run Customer Details Model at " + now()
Message Expression:
"Result of Run Customer Details Model at " + now() + ": Messages: " +
_messages + "; Warnings: " + _warnings + "; Errors: " + _errors
Notification: click .
In the New Notification Rule tab, select Apply.
In the Users section, select Users and drag the user Train (the user you are currently logged in as) into the list of Users.
In the settings toolbar, click Apply and Close.
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 its settings.
In the Basic Settings section, set Scheduled: tick. PhixFlow displays aSchedulesection.
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:
Seconds:0
Minutes:mm wheremmis 2 or 3 minutes from now. For example, if the time is now 11:41 am, enter 43.
Hours: hh
wherehhis the current hour. For example, if the time is now 11:41 am, enter 11.
Day of Month: *
where*is everyday
Month: *
Day of Week: ?
where ? indicates no value, as we have specified everyday above.
Year: *
Click Apply and Close.
Wait for your task plan to start under its schedule.