Scheduled scripts

Scheduled

Uses of scheduled scripts include daily reviews, special or unique events, custom asset schedule implementation or random shutdowns. A scheduled script is triggered based on the parameters assigned to the script. Similar to setting up the Demand or Shipments table, there are four parameters: First Time, First Time Formula, Interval, Occurrences. If you want the script to start on a specific date, enter this date in the First Time parameter. If you want the script to start on a 'day of model', enter this value in the First Time Formula parameter. First Time Formula will override First Time if both are present. Use the Occurrences value to determine the number of times you want the script to trigger. If Occurrences is greater than 1, then use the Interval parameter to specify the time between each trigger. For example, if you want a script to trigger on every 5th day of the model at 6 a.m. starting on the 20th day of the model and continuing for approximately one month, then the inputs would be:

First Time Formula: 20.25 DAY (0.25 of a day is 6 a.m.)

Interval: 5 DAY

Occurrences: 6 (6 occurrences * 5 days interval = 30 days)

InvokeScript

A script can be scheduled by another script. See InvokeScript in Global Functions for more details.

Last modified: Wednesday May 15, 2024

Is this useful?