Customizing the Schedulers
The following editable schedulers are provided with ThingWorx Apps
• PTC.Factory.StatusEvaluationScheduler—Used for calculating the status of a piece of equipment. It runs every minute.
• PTC.Factory.MidnightDeviceDiscoveryScheduler—Used to automatically discover devices for each connected server. It runs daily at midnight. (You can also discover devices for a server as needed from the Controls Advisor.)
• PTC.Factory.MidnightPurgeWeekOldHistoryScheduler—Used to purge all historical sensor data which is older than one week. It runs daily at midnight. The age of the data to be kept after each purge can be configured. If all historical data needs to be preserved, disable this scheduler.
For each scheduler, you can configure the launch schedule, as well as enable or disable the scheduler. For PTC.Factory.MidnightPurgeWeekOldHistoryScheduler, you can also set the age of data to keep after each purge.
|
Customizations made to the schedulers are not retained during an upgrade, and will need to be re-implemented after the upgrade is complete.
|
Configuring the Launch Schedule for a Scheduler
To configure the launch schedule for a scheduler:
1. Edit the scheduler in ThingWorx Composer.
2. Under Configuration, modify the schedule field to set the launch schedule for a scheduler.
3. Click Save to save the modified scheduler.
Enabling or Disabling a Scheduler
To enable or disable a scheduler:
1. Open the scheduler in ThingWorx Composer.
2. Click Edit and select Configuration.
3. Under General Settings, select the enabled checkbox to enable the scheduler, or clear the enabled checkbox to disable the scheduler.
Setting the Age of Data to Keep After Each Purge
To set the age of the data to keep after each purge:
1. Edit the PTC.Factory.MidnightPurgeWeekOldHistoryScheduler in ThingWorx Composer.
2. Under
Properties and Alerts, click
next to the value for the
TimeCutoff property to set the age of the data to be kept after each purge.
The format required is a combination of numbers and letters: w (weeks), d (days), h (hours), m (minutes), and s (seconds). For example, to purge all data older than 3 and a half days, enter 84h or 3d 12h.
Case, spaces, and order do not affect the value.
3. Click
to set the property value.
4. Click Save.