How to make a state transition to a downtime at a scheduled time?
This article explains how to configure OFS to automatically allocate a downtime reason e.g. lunch break — at a set time each day.
Step 1 — Create the downtime reason
-
Open Fusion Manager and navigate to the Reason tab.
-
Create a new reason — e.g. Lunch — and set the type to Planned Downtime.
-
Note the Reason Code assigned to this reason. You will need it in Step 3

1d) Navigate to Reason Assignment and assign the reason to the relevant line(s).

Step 2 — Create a dedicated user account
This account is used to authenticate the web service call. Create one account and reuse it across all scheduled downtime services.
- Navigate to the Users & Operators tab in Fusion Manager.
- Click Add User and complete the following fields:
-
- Name — e.g. Alerts
- Login — e.g. alerts
- Password — set a strong password and record it; you will need it in Step 3
- Role — set to Analytics User
-

Step 3 — Create a web service
NOTE: You will need one web service for each downtime reason you want to schedule.
- Navigate to the Services tab in Fusion Manager.
- Click Web to create a new web service.
- Give the service a clear name — e.g. Lunch Start.

- In the URL field, enter the downtime allocation endpoint for your line: https://customer.ofsxpress.com/WorkcentreID/server/control/downtime/allocate/@reasoncode
- customer — your organisation's OFS subdomain (e.g. demo)
- If OFS is hosted on a local server, use localhost instead of a subdomain: https://localhost/WorkcentreID/server/control/downtime/allocate/@reasoncode
- WorkcentreID — the OFS line identifier (e.g. OFS001). Find this in Fusion Manager or in the console page URL.
For multiple lines, use the code below in place of a fixed WorkcentreID.
- @reasoncode — replace with the Reason Code from Step 1 (e.g. @Administration::Lunch1). The Reason Code is found in the reason created in Step 1.

- Example:

- Open the Authentication tab and enter the login credentials for the user created in Step 2.

Step 4 — Create an alert and alert group
Alerts organise the triggers that fire your web services. Create a dedicated alert group for scheduled downtime alerts, then add an alert inside it.
- Navigate to the Alerts & Flow tab in Fusion Manager.
- Click Add Alert Group and give it a name — e.g. Scheduled Downtime.
- Inside the new group, click Add Alert.
- Complete the alert fields:
- Click Save.

Step 5 — Create the scheduled trigger
-
Within the alert created in Step 4, navigate to the Total Time or Count trigger type and create a new trigger.
- Configure the trigger as follows:
- Select the line(s) this trigger applies to
- Select the web service created in Step 3 (e.g. Lunch Start)
- Toggle on 'On Schedule'
- Enter the time the downtime should start (e.g. 12:00)
- Select the date from which the schedule should begin
- Select the repeat frequency (e.g. Daily, Weekly)
- Select the days of the week the trigger should fire
- Click Update to save the trigger.
