Versions Compared
Version | Old Version 11 | New Version Current |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
...
...
...
...
...
...
...
...
...
...
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
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 Introduction to Modelling analysis model, and schedule it.
Creating Tasks and Task Plans
- In
...
- your application's Repository, find
.Insert excerpt _taskplan _taskplan nopanel true - Select
Insert excerpt _
...
new _
...
. PhixFlow opens a new task plan settings.new nopanel true - In Basic Settings, set:
- Name:
Run Customer Details Model
- Enabled:
- Name:
...
-
Insert excerpt _toggle_on _toggle_on nopanel true - In the
-
...
- toolbar, click
.Insert excerpt _save _save nopanel true
- toolbar, click
...
- In the Tasks section,
...
- hover over
Insert excerpt _
...
addIcon _
...
and from the drop-downaddIcon nopanel true
...
- 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
.Insert excerpt _save _save nopanel true
- Name:
- In the
- the Basic Settings section, set:
...
- Tables section, click
Insert excerpt _table_
- Tables section, click
...
list _
...
to list thetable_list nopanel true
...
- tables.
- On the right, PhixFlow displays the list of
- tables.
...
- tables in the
...
- Repository.
- Find the
...
- table Customer Summary by Region and drag it into the
...
- Tables section.
- Tables section.
...
- Image Added
- Click
to save and close the analysis task details settings.Insert excerpt _finish _finish nopanel true
- Back in the task plan settings, in the Send By Email section, set:
- Email from:
...
-
training@PhixFlow.com
- This is the email account used to send emails from PhixFlow, see Email Account.
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
-
...
- Notification: click
.Insert excerpt _addIcon _addIcon nopanel true
- In the New Notification Rule tab, select
.Insert excerpt _save _save nopanel true - In the Users section, select
and drag the userInsert excerpt _user _user nopanel true Train
(the user you are currently logged in as) into the list of
- In the Users section, select
...
- Users.
- In the settings toolbar, click
.Insert excerpt _finish _finish nopanel true - Right-click on your task plan
...
- in the Repository and select
. PhixFlow runs the task plan and sends an email to the selected user.Insert excerpt _taskplan_start _taskplan_start nopanel true - 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 Run Customer Details Model in the Repository to open its settings.
- In the Basic Settings section,
...
- set:
- Scheduled:
.Insert excerpt _toggle_on _toggle_on nopanel true
- Scheduled:
- PhixFlow displays a Schedule section
...
- :
- We want to 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
wheremm
is 2 or 3 minutes from now. For example, if the time is now 11:41 am, enter 43. - Hours: hh
- Seconds:
- We want to run the task plan 2 or 3 minutes from now.
...
- where
hh
is the current hour. For example, if the time is now 11:41 am, enter 11.
- where
- Day of Month: *
-
*
indicates everyday
-
- Month: *
- Day of Week: ?
- ? indicates no value, as we have specified everyday above.
- Year: *
- Click
.Insert excerpt _finish _finish nopanel true - Wait for your task plan to start under its schedule.