Working hours & holidays
Section titled “Working hours & holidays”This guide is for tenant administrators. It shows you how to define your organization’s working hours and holidays. App builders use them when they give a workflow step a time limit: the countdown then counts only working time, so a “two-day” approval does not run out over a weekend or a public holiday.
How it works
Section titled “How it works”A builder can give any workflow step a time limit, for example “HR must approve a leave request within 16 working hours”. To know what “working hours” means, the step points at one of your working-hours schedules. When a request reaches the step, OSOS calculates its deadline by counting only the time inside that schedule, and skips every day that is a holiday.
Example. Your office works Sunday to Thursday, 8:00 to 16:00. A leave request reaches HR on Thursday at 14:00 with a 16-working-hour limit:
- Thursday 14:00–16:00 counts 2 hours.
- Friday and Saturday are not in the schedule, so they count nothing.
- Sunday is a public holiday you entered, so it counts nothing.
- Monday 8:00–16:00 counts 8 hours, and Tuesday 8:00–14:00 the last 6.
The deadline is Tuesday at 14:00. If HR has not acted by then, the step becomes Overdue, and any escalation the builder set up starts.
You set up the schedules and holidays. The builder decides which steps have time limits, how long they are, and what happens when one is missed.
Before you begin
Section titled “Before you begin”- You need access to Administration › Applications › Data Entities. Working hours and holidays are kept there, as records of the Working Hours and Holidays entities.
- Decide how many schedules you need: usually one per distinct working pattern, for example Office hours, 24×7 support desk, Branch weekend shift.
Create a working-hours schedule
Section titled “Create a working-hours schedule”Example: Office hours, Sunday to Thursday, 8:00 to 16:00.
-
Open Administration › Applications › Data Entities and open the Working Hours entity.
-
Select Add Working Hours.
-
Enter a Name in each language, for example Office hours.
-
Under Working Hours, add one row for each working day:
- Day: for example Sunday.
- Starting Time: 8:00.
- Ending Time: 16:00.
Each day can appear only once. A day with no row is a day off.
-
Select Save.
Create a separate schedule for each working pattern.
Add holidays
Section titled “Add holidays”Example: Eid al-Fitr, three days, for everyone.
- Open Administration › Applications › Data Entities and open the Holidays entity.
- Select Add Entry.
- Enter the Name, for example Eid al-Fitr.
- In Start and End Date, choose the first and the last day of the holiday. Both days are included, and every day in between is a day off.
- In Related Working Hours, choose the schedules the holiday applies to. Leave it empty to apply the holiday to every schedule.
- Select Save.
Use Related Working Hours when a holiday applies to some teams only, for example a holiday the 24×7 support desk works through.
Change or remove a schedule or holiday
Section titled “Change or remove a schedule or holiday”Edit or archive the record as you would any other. Changes apply straight away to every step that a request reaches from then on. Since 1.10
A step that is already counting down keeps the deadline it was given when the request reached it. Adding a holiday today does not move the deadline of a request that arrived yesterday.
Before you archive a schedule, ask your builders whether any step still uses it. A step whose schedule has no working days gets no deadline at all.
How builders use your schedules
Section titled “How builders use your schedules”This is what a builder sets on a step, so you know what to expect. The step’s Timing settings are:
| Setting | What it does |
|---|---|
| Timing | Turns the time limit on for the step. |
| Timing Schedule | The working-hours schedule to count against: one of yours. |
| Time Unit | Minutes, Hours or Seconds. |
| Timing method | Fixed Value (the same limit every time), Field Value (taken from a field of the record) or Expression (calculated, for example a shorter limit for urgent requests). |
| Value / Fallback Value | The limit itself, and the value used when a field or expression gives no number. |
Each monitored step is tracked as Pending while it waits, Achieved when it is completed in time, and Overdue when the deadline passes first. OSOS checks for missed deadlines every minute, so a step can turn Overdue up to a minute after its deadline.
The builder’s side is described in Workflows: time limits and escalation.
When a step runs late
Section titled “When a step runs late”A missed deadline on its own only marks the step Overdue. To act on it, a builder adds a reaction to the entity, in the Time Monitoring section of its Reactions tab, with the event On Time Exceeded:
- Choose Step: the step the reaction watches.
- Wait for: how long after the deadline to act the first time, in seconds.
- Repeat after: how long to wait between repeats, in seconds.
- Stop after: how many times to repeat.
- The action, for example notify the step owner’s manager, or move the step to someone else.
The waits are counted in working time too, against the same schedule and holidays. A typical escalation: remind the owner at the deadline, then notify their manager every four working hours, three times. For the manager’s reaction that is Wait for 14400 (four hours in seconds), Repeat after 14400 and Stop after 2: the first run, then two repeats.
Time zones
Section titled “Time zones”A schedule has no time zone of its own. OSOS takes the Starting Time and Ending Time as times of day and applies them to every day it counts, and treats holidays as whole calendar days.
After you set up your first schedule, check one deadline: send a test request through a monitored step and compare its deadline with what you expect. If deadlines are shifted by a few hours, ask your operator to check the time zone the platform’s time calculation runs in. See Working time & SLA engine.
Good to know
Section titled “Good to know”- Every schedule needs at least one working day. A schedule with no working time can never produce a deadline.
- Archived holidays are ignored.
- Holidays are whole days. There are no half-day holidays.
- Time-limit data feeds reporting. Builders can report on which steps ran late and where, to spot bottlenecks.
Troubleshooting
Section titled “Troubleshooting”| What you see | What to check |
|---|---|
| A monitored step never becomes Overdue. | The step’s Timing Schedule is empty, archived, or has no working days, or the step’s limit came out as zero. Ask the builder to check the step’s Timing settings. |
| A deadline falls on a holiday. | The holiday is not linked to that schedule. Check Related Working Hours, or leave it empty to apply the holiday everywhere. |
| A new holiday did not move a deadline. | That request reached the step before you added the holiday. Deadlines are fixed when a request reaches the step. |
| Deadlines are a few hours off. | See Time zones. |
| Timing cannot be turned off on a step. | A reaction uses it. The builder must remove or change that reaction first. |
Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27