By the end of this chapter you will be able to:
- Set up Tasks tasks and Task Planstask plans
- Schedule Task Planstask plans
Task Plans plans allow you to set up collections of components to run at the same time – and to schedule when analysis will run on these models. In this exercise you will set up a simple Task Plan task plan to run your model, and schedule it.
...
Creating Tasks and Task Plans
- In the left-hand menu bar press - Show the list of Task Plans
- Press
- In the Task Plan details form that pops uprepository browser find Task Plans
- Right click on the heading Task Plans and select Add Task Plan
- In the task plan details form:Hold down the Shift key on your keyboard, select the Stream
- Enter the Name:
Run Customer Details Model
- Tick the flag Enabled
- Press - Apply
- In the Tasks section of the form, press
- From the drop-down menu choose Analysis Task
- In the Analysis Task Details form that pops up:
- Enter the Name:
Run Customer Summary by Region
- Press Apply
- Go to the
- Streams
- section
- Open the model
Introduction to Modelling
- Find the
- stream
Customer Summary by Region
- Enter the Name:
- Enter the Name:
- If this has hidden the task configuration form, bring it back up – remember to use the task bar at the bottom of the PhixFlow application to find it
- Press - Show the list of Streams
- Find the stream
Customer Summary by Region
- and drag it into the list of streams to be run by the task
- Press
- In the main Task Plan task plan details form go to the Send Results By Email tab
- Enter the following:
- Email from:
system@PhixFlow.com
- Subject Expression:
- Email from:
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 |
- Go to the User Recipients tab
- Notification section
- Drag the user Train (the user you are currently logged in as) into the list of recipients
- In the main Task Plan task plan details form press
- Right-click on your Task Plan task plan and select Start
- 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 task plan to open the details form
- In the Details tab:Tick Basic Settings section, tick the flag ScheduledGo to the
- Schedule tab that appearsASchedule section will appear
- Enter the values:
- Seconds: 0
- Minutes: (2 or 3 minutes from now)
- Hours: (the current hour)
- Day of Month: *
- Month: *
- Day of Week: ?
- Year: *
- Press
- Wait for your Task Plan task plan to start under its schedule