WebScheduler ENU
WebScheduler ENU
The run-time component of the Web Scheduler is normally started automatically when the PC starts.
Project
The Supervisor's project that is being used with the Web Scheduler has the following requirements.
l The Web Services toolkit must be set up using the Toolkit Server tab of the Web Server configuration dialog.
(Configuration.Communication.WebVue server)
l At least one WebVue enabled user account (profile and user) must be configured.
Do not call the Supervisor's project WebScheduler, since that will create a virtual directory with the same
name as the one used by the Web Scheduler and prevent it from operating correctly.
Run-time engine
The Supervisor does not need to be running to start and run the Web Scheduler's run-time engine as it only con-
nects to the Supervisor when it executes an action collection or updates the (optional) watchdog variable.
If the Supervisor is not running when the run-time engine tries to connect an error will be generated in the run-
time log.
Configuration tool
The Supervisor must be running with a suitable project before the configuration tool is started as the first action it
takes is to connect to the Supervisor using the user name and password of a WebVue enabled user account.
The Supervisor must be running so that its Web Services can let you log in as follows.
Before you can use the configuration tool you must log in using the User name and Password of a user
account that is WebVue enabled in the Supervisor.
The configuration tool opens with two panes. The left pane always displays the configuration tree and the right
pane displays the configuration item selected from the configuration tree. After login the right pane displays Wel-
come information. Show picture
Login options
l Language - Selects the language for the configuration tool. This effects the static texts that are displayed and
the format of the date and time entry fields. If you leave the Language setting at [default] the locale will be
taken from the host operating system.
l Enable automatic login on this machine - If ticked the User name and Password are saved in a cookie. The
next time the configuration tool is started you are automatically logged in.
Action collections
The Action Collection Overview
To open the Action Collections Overview pane click Action collections in the configuration tree. The pane displays a
list of configured action collections and their status. Show picture
From the Action Collections Overview you can directly change the status of an action collection or display its details
(by clicking on its name).
l
To disable an action collection click the disable button. The disable button is then replaced with the ena-
ble and delete buttons .
l
To enable a disabled action collection click the enable button .
l
To permanently delete an action collection click the delete button .
1. Click on the Edit button to open the action collection for editing.
2. You can perform the same operations as when you add a new action collection, as follows.
Add action
Edit action
Delete action
3. You can click the Save button to apply your changes to the action collection.
4. To create a new action collection from the original, enter a new name in the drop-down box then click the
Save button. The original action collection is unaffected.
l
You can click on the Trashcan button to delete the selected action collection.
l
The Trashcan button turns into a Restore from trashcan button . If you change your mind or deleted the
action collection by mistake, you can click on that button to restore it.
l To delete an action collection permanently, it must first be put into the trashcan. You then click on the Delete
button to delete it.
An action collection that is currently in trash is still displayed normally but cannot be used for new
triggers and exceptions.
2. Click the Add action button to add an action. A dialog is displayed from where you can select the name of the
variable and enter the value to which it will be set. See the table below for an explanation of what you can
do. Show picture
3. When you have selected the variable and the value to which it is to be set click the OK button.
4. Repeat steps 3 and 4 until the action collection is complete.
5. Enter a Name for the action collection and click the Save button.
l
Click the Edit button to edit an action.
l
Click the Delete button to delete the action.
Triggers
The Triggers Overview
To open the Trigger Overview pane click Triggers in the configuration tree. The pane displays a list of configured
triggers their status. Show picture
From the Trigger Overview you can directly change the status of a Trigger or display its details (by clicking on its
name).
l
To disable a trigger click the disable button. The disable button is then replaced with the enable and
delete buttons .
l
To enable a disabled trigger click the enable button .
l
To permanently delete a trigger click the delete button .
By default the View or edit trigger pane displays the general properties of the trigger. You can display the trigger
schedule from the Schedule button or the trigger exceptions from the Exceptions button.
For information on the properties available see the topics Adding a single shot or repeating trigger and Adding a
time-table standard week trigger.
1. Click on Create Trigger in the left-hand menu to open the Trigger Wizard pane.
2. Select the option Create a single shot or repeating trigger then click on Continue. Show picture
To create a single or recurring trigger, you must provide the following information. Show picture
l Trigger name - A name for the trigger.
l Repeat - The frequency of repetition, if any. If you choose a repeating basis, the pane changes.
l Valid from - The date and time from which a repeating trigger is valid. You can tick the box Now to select the
current date and time.
l Valid to - A date and time until which the repeating trigger is valid to, or click the Forever checkbox to create
a trigger that never expires.
l Execution - The time (and optionally day or date depending on the repeat type) at which the action collection
is executed.
l Action - The action collection that is to be executed.
Activating a trigger
1. Click the Save button. Your input is confirmed.
2. The wizard presents the configuration of the newly created trigger. Show picture
Adding exceptions
Optionally, you can add exceptions to the trigger by clicking the Add exceptions button. See the book on Trigger
Exceptions for how to do that.
Adding a Time-table Standard Week Trigger
Time-table scheduled triggers consist of events that are executed on a specified time and day of the week. A single
time-table trigger can execute, in a single week, one or several action collections, once or several times.
1. Click on Create Trigger in the left-hand menu to open the Trigger Wizard pane.
2. Select the option Create a time-table standard week then click on Continue. Show picture
The pane Create a Time-table Standard Week opens. Show picture
The toolbar
1. Click the add (+) symbol in the toolbar or double-click the timetable. A dialog will open asking for the fol-
lowing information for the event. Show picture
1. Once you have finished scheduling the events, click the green save ('tick') symbol in the toolbar. The Create
a Time-Table Standard Week pane is displayed. Show picture
Adding exceptions
Optionally, you can add exceptions to the trigger by clicking the Add exceptions button. See the book on Trigger
Exceptions for how to do that.
Exceptions
The Exceptions Overview
To open the Exceptions Overview pane click Exceptions in the configuration tree. The pane displays a list of con-
figured exceptions their status. Show picture
From the Exceptions Overview you can directly change the status of an exception or display its details (by clicking
on its name).
l
To disable an exception click the disable button. The disable button is then replaced with the enable
and delete buttons .
l
To enable a disabled exception click the enable button .
l
To permanently delete an exception click the delete button .
By default the View or edit exceptions pane displays the general properties of the exception. You can display the
exception schedule from the Schedule button.
For information on the properties available see the topic Adding an exception to a trigger.
At the foot of the pane there are three choices for adding an exception.
Although the exception itself is single shot (it does not repeat) it can contain single shot or repeating actions.
1. In the left-hand menu, click on Create Global Exception. The Create Global Exception pane opens. Show pic-
ture
2. Click on Create a single shot global exception or Create a time-table global exception.
l Valid from - The date and time from which an exception is valid. You can tick the box Now to select the
l Repeat: the frequency of repetition, if any. If you choose a repeating basis, the pane changes.
l An Execution time, that is the time of day at which the action collection is executed.
l Action: the action collection that is to be executed.
1. Click the plus (+) symbol in the toolbar or double-click the timetable. A dialog will open asking for the fol-
lowing information for the event.
l Once you have finished scheduling the events, click the green Accept button in the toolbar.
Specifying exceptions
In the next dialog, you will be asked for details as follows. Show picture
The calendar shows the event at the specified day and time. Show picture
Activating an exception
You can select a particular date by clicking on the box Choose a Date to open a pop-up month index. Click on a date
to view its events. Show picture
When you select a single date in either Week View or Week Day View, the week containing that date is dis-
played.
l Two buttons are visible at a time for displaying a Week View, a Week Day View and a Day View. The name of
the current view is not shown.
Week View: one cell for each day of one week.
Week Day View: one cell for each hour of each day of one week.
Day View: one cell for each hour of one day.
Double-click on an event in the calendar to open the View Trigger pane or the View Exception pane, depend-
ing on the type of event. See the topics Viewing and Editing Triggers and Viewing and Editing Exceptions for
how to use these.
l Navigate within the calendar by clicking the arrowheads on the long button (a time-period navigation bar). In
the Week and Week Day views, they display the previous or next week. In the Day view, they display the pre-
vious or next day. Show picture
l Double-click on the icon will display the run-time engine's log window and configuration menu.
English
German
French
Spanish
Italian
Japanese
Russian
Chinese (Simplified)
Latvian
Recovery Behavior
The Roll back all events since last shutdown tickbox determines how the application behaves at startup. When the
option is ticked, at start-up the run-time engine will play all triggers that were scheduled during the time the
engine was shutdown.
Use this option with caution as it could result in a considerable number of actions in a short period of time.
l For Internet Explorer - From the Tools menu select the Options command. You can select the preferred lan-
guage in the General tab.
l For Mozilla Firefox - From the Tools menu select the Options command. You can select the preferred lan-
guage in the Content tab.
Examples
http://localhost/webscheduler/?mode=edittrigger&triggerid=5
http://localhost/webscheduler/delault.aspx?mode=calendar&day=23&month=10&year=2009
http://192.168.2.30/webscheduler/?mode=createglobalexception
How often does the Web Scheduler read the configuration database
The Web Scheduler run-time reads the database every 60 seconds as long as a connection to the Supervisor is
available. Therefore changing the configuration, using the Web Scheduler configuration tool or by some other
means, has an immediate effect.
1. In the WebScheduler folder open the web.config file and replace the section
<setting name="DatabaseType" serializeAs="string">
<value>Xml</value>
</setting>
with
<setting name="DatabaseType" serializeAs="string">
<value>SqLite</value>
</setting>
2. In the Runtime folder open the WebScheduler.Runtime.exe.config file and replace the section
<add key="DatabaseType" value="Xml" />
with
<add key="DatabaseType" value="SqLite" />
To adjust these settings open the web.config file in the WebScheduler folder and edit the following lines.
<setting name="EndWorkDay" serializeAs="String">
<value>1439</value>
</setting>
<setting name="StartWorkDay" serializeAs="String">
<value>0</value>
</setting>
<setting name="ShowWeekendDays" serializeAs="String">
<value>True</value>
</setting>