Schedule & Activity Management¶
Module: Schedule Management | Audience: Admin, Owner
Table of Contents¶
- Overview
- Schedules
- Schedule List
- Creating a Schedule
- Editing a Schedule
- Schedule Detail
- Schedule Statuses
- Activities
- Activity List
- Creating a One-Off Activity
- Activity Detail
- Activity Execution
- Activity Statuses
- SLA Tracking
- Supporting Configuration
- Movement Tracking in Activities
- Master Data Used by This Module
Overview¶
The schedule module enables recurring and one-off maintenance, inspection, and operational activities. Schedules define the recurrence pattern, while Activities are the individual tasks generated from those schedules (or created directly as one-offs). Activities support checklists, cost tracking, file attachments, SLA monitoring, and RFID movement tracking.
How the pieces fit together:
- An admin creates a Schedule for one asset (Asset, Activity Type, Start/End Date, Frequency, User Group, optional templates).
- A daily background job generates an Activity from every
ACTIVEschedule whose start date has been reached and whose frequency interval has elapsed since the last generated activity. Each generated activity copies the schedule's cost template, checklist template, attachments and movement-tracking settings, and notifies the assigned user group (plus a reminder notification when Reminder Before is set). - A member of the user group starts the activity, executes it (checklist, costs, files, comments) and completes it.
- A second daily job marks any
IN_PROGRESSactivity whose due date has passed asBREACHED.
Permissions: the screens are guarded by
view_schedule_scr,add_schedule_scr,edit_schedule_scr,view_activity_scr,add_activity_scrandexecute_activity_scr. Buttons you lack permission for are disabled or hidden.
Schedules¶
Schedule List¶
Path: Sidebar → Schedule Management → Schedules | URL: /schedule-management/schedules
Paginated, configurable grid of schedules with search, column filters, sorting and a Clear Filters button (enabled only when a filter is active). Row actions: View, Edit and Delete. Add Schedule opens the create form.
Deleting a schedule opens a Delete Schedule confirmation that first asks the server whether deletion is allowed:
| Schedule state | Can be deleted? |
|---|---|
| Status is Inactive | Yes - always |
| Any other status with no activities generated | Yes |
| Has pending or in-progress/paused activities | No - "Cannot delete schedule with active or pending activities" |
| Has only completed/cancelled (already generated) activities | No - "Cannot delete schedule with generated activities" |
When deletion is blocked, the dialog shows the activity counts (Total / Active / Pending / Completed / Cancelled) and the Delete button is disabled. To retire a schedule that already produced activities, set its status to Inactive first - Inactive schedules can then be deleted.
Creating a Schedule¶
Path: Schedules → Add Schedule | URL: /schedule-management/schedules/create
The form is split into sections. A schedule belongs to exactly one asset; for the same task on many assets use a one-off activity (which accepts several assets) or create one schedule per asset.
Basic Information
| Field | Type | Required | Validation / Behaviour |
|---|---|---|---|
| Schedule Name | Text | Yes | - |
| Activity Type | Searchable dropdown | Yes | From Activity Types |
| Asset | Search box | Yes | Type at least 2 characters; searches by asset name or tag |
| Location | Read-only | - | Auto-populated from the selected asset's location |
| Status | Dropdown | No | Inactive / Active (default) / Completed / Cancelled |
Execution Period
| Field | Type | Required | Validation / Behaviour |
|---|---|---|---|
| Start Date | Date | Yes | Cannot be in the past |
| End Date | Date | Yes | Cannot be in the past; must be after Start Date |
| Frequency Type | Dropdown | No | Daily (default), Weekly, Monthly, Yearly |
| Repeat Every | Number | No | Minimum 1; the unit label follows the Frequency Type (Days / Weeks / Months / Years) |
Notifications & Assignment
| Field | Type | Required | Validation / Behaviour |
|---|---|---|---|
| Execution Before (days) | Number | No | Min 0. Each generated activity's due date = generation date + this many days (0 = due the same day) |
| Reminder Before (days) | Number | No | Min 0. A reminder notification is scheduled this many days before the due date |
| User Group | Searchable dropdown | No | Members of this group see and can execute the generated activities |
Movement Tracking
| Field | Type | Required | Validation / Behaviour |
|---|---|---|---|
| Asset Movement Tracking Required | Checkbox | No | Default off. Unticking clears Tracking Type |
| Tracking Type | Dropdown | Yes, when ticked | Asset Tracking or Vehicle Tracking (stored as asset / vehicle) |
Templates, Description, Attachments
| Field | Type | Required | Notes |
|---|---|---|---|
| Cost Template | Searchable dropdown | No | Cost lines copied to each generated activity |
| Checklist Template | Searchable dropdown | No | Checklist items copied to each generated activity |
| Description | Text area | No on create | Required on the Edit form |
| Attachments | Upload Files | No | Multiple files; copied to every generated activity; each file has a remove icon |
Click Create Schedule to save, or Cancel to leave without saving.
Tracking Type values: Selecting Asset Tracking or Vehicle Tracking stores
assetorvehicle(lowercase) on the schedule/activity - the label is just the display form of that same value.
How Activity Type Affects Execution:
| Activity Type Setting | Effect on Generated Activities |
|---|---|
| Payment Required = On | Mandatory cost lines (from the Cost Template) must have a value before completion |
| Checklist Required = On | Checklist items (from the Checklist Template) must be addressed before completion |
| File Upload Required = On | At least one file attachment is required to complete the activity |
Editing a Schedule¶
Path: Schedules → Edit icon | URL: /schedule-management/schedules/:id/edit
Same sections and validation as the create form, with Update Schedule as the save button, plus:
- Description is mandatory when editing.
- Existing attachments are listed with a delete icon; new files can be uploaded in the same section.
Schedule Detail¶
URL: /schedule-management/schedules/:id
Read-only view showing the schedule header (name, status) and fields for Activity Type, Asset, Location, User Group, Start/End Date, Frequency, Checklist and Cost Template, Execution/Reminder notification days and Description, followed by the linked Asset, Location and Activity Type details (including the Payment / Checklist / File Upload Required flags) and attachments.
Schedule Statuses¶
| Status | Description |
|---|---|
| Active | Schedule is generating activities per its frequency |
| Inactive | Schedule paused; no new activities generated. Can be deleted |
| Completed | Set automatically by a daily job once the End Date has passed (only for schedules that were Active) |
| Cancelled | Schedule permanently stopped |
Activities¶
Activity List¶
Path: Sidebar → Schedule Management → Activities | URL: /schedule-management/activities
Paginated, configurable grid with search, column filters, sorting and Clear Filters. Add One-Off Activity opens the one-off form. Row actions:
| Row status | Action shown | What it does |
|---|---|---|
| Pending | Start Activity (play icon) | Starts the activity (see below) |
| In Progress / Paused | Execute Activity (arrow icon) | Opens the execution page |
| Any | View | Opens the activity detail |
Visibility rule: you only see activities whose User Group you belong to, plus activities that have no user group. If you belong to no user group, the list is empty.
What Start does (requires execute_activity_scr):
- Only
PENDINGactivities that have not been started can be started. - The activity is assigned to you, the start time is stamped and the status becomes
IN_PROGRESS. - The activity's asset is temporarily assigned to you (its previous owner is remembered and restored when the activity is completed or breached).
- Start is refused when the asset already has another in-progress/paused activity, an open transfer request, or an open disposal request.
Creating a One-Off Activity¶
Path: Activities → Add One-Off Activity | URL: /schedule-management/activities/create-one-off
A one-off activity is a standalone task not linked to any schedule. One activity is created per selected asset, and a permit of type Activity is generated for each.
| Field | Type | Required | Validation / Behaviour |
|---|---|---|---|
| Activity Name | Text | Yes | Used as the prefix of the generated task id |
| Activity Type | Dropdown | Yes | - |
| User Group | Dropdown | Yes | Who can see and execute it |
| Start Date | Date | Yes | Cannot be in the past |
| Execution Before (days) | Number | No | Min 0. Due date = Start Date + this value |
| Assets | Search + list | Yes (at least one) | Search and add; selected assets appear under Selected Assets with a remove icon |
| Asset Movement Tracking Required | Checkbox | No | - |
| Tracking Type | Dropdown | Yes, when tracking ticked | Asset Tracking / Vehicle Tracking |
| Vehicle | Dropdown | Yes, when Tracking Type = Vehicle | Chosen at creation |
| Cost Template | Dropdown | Yes (on this form) | - |
| Checklist Template | Dropdown | Yes (on this form) | - |
| Description | Text area | No | - |
Each created activity starts as Pending, takes the location of its asset, copies the cost/checklist items from the templates and notifies the user group.
Activity Detail¶
URL: /schedule-management/activities/:id
Read-only view of header fields (Activity Type, Location, Assigned To, User Group, Due Date, Started, Completed, Schedule, SLA Status, Description) and, where applicable, the sections Asset Information, Movement Tracking (Check-out / Check-in state, with Force Check-out / Force Check-in buttons while the activity is In Progress), Movement Sessions (table: Timestamp, Event, Reader / Location, Authorized, Notes), Cost Information, Checklist, Execution Comments, Schedule Files and Activity Files (activity files are shown once the activity is completed).
Activity Execution¶
Path: Activities → row Execute icon | URL: /schedule-management/activities/:id/execute (requires execute_activity_scr)
A Pending activity cannot be opened here - you are sent back to the list with "This activity must be started before it can be executed". The execution page shows the activity header, asset information, and these sections (each only when applicable):
| Step | Section | Condition |
|---|---|---|
| 1 | Cost Information | Enter a value per cost line (currency symbol shown). Required for lines marked mandatory when the Activity Type has Payment Required |
| 2 | Checklist | Tick items; a progress bar shows n/m and % completed. Required when the Activity Type has Checklist Required |
| 3 | Movement Tracking | Shown when tracking is enabled - see below |
| 4 | Execution Comments | Required - the server rejects completion without comments |
| 5 | File Attachments | Upload Files (multiple). Required when the Activity Type has File Upload Required |
| 6 | Complete Activity (footer; Cancel leaves without saving) | Status becomes Completed, time taken is calculated, the asset's original owner is restored |
Who can complete: you must belong to the activity's user group (an activity with no user group cannot be completed) and be the assigned user (the person who started it) or a staff user. Only IN_PROGRESS activities can be completed.
Pause / Resume: the portal has no Pause or Resume button; the Paused status exists in the data model but cannot be set from these screens.
Movement Tracking panel and force actions¶
The panel shows Tracking Type and whether Check-out and Check-in are Recorded or Pending. While the activity is In Progress:
- Force Check-out (shown if no check-out is recorded) and Force Check-in (shown if no check-in is recorded and either a check-out exists or the activity is one-off) open a dialog with a mandatory Comments box and a Confirm button. They record the step without an RFID scan.
- A warning banner lists the scan(s) still missing. If you click Complete Activity with a blocking step missing, the dialog Complete without full movement history? appears; enter Comments and click Force Complete to close the missing steps and complete anyway.
- Blocking rule: a scheduled activity needs both check-out and check-in; a one-off activity needs only the check-in (a missing check-out is recorded as a force-closure but does not block).
- Force actions are available only to users in the activity's user group who are the assigned user or staff, and are recorded as movement sessions with the comment and the user who forced them.
Checklist Completion¶
| Field | Description |
|---|---|
| Label | The question/task from the template |
| Is Completed | Checkbox to mark as done |
| Completed At | Auto-recorded timestamp (on completion) |
| Completed By | Auto-recorded user |
Cost Entry¶
| Field | Type | Required | Validation |
|---|---|---|---|
| Label | Text | Pre-filled from template | Read-only |
| Value | Currency | Conditional | Required if the template item is mandatory and Payment Required is on; minimum 0, 2 decimals |
Activity Statuses¶
| Status | Description | How it changes |
|---|---|---|
| Pending | Generated/created; awaiting start | Start -> In Progress |
| In Progress | Started by a user; being worked on | Complete -> Completed; overdue -> Breached |
| Paused | Exists in the data model; no portal action sets it | - |
| Completed | Activity finished | (terminal) |
| Cancelled | Activity cancelled | (terminal) |
| Breached | Set automatically by a daily job when an In Progress activity's due date has passed; the asset's original owner is restored | (terminal) |
SLA Tracking¶
SLA status shown on the activity is derived from the due date (due date = generation/start date + Execution Before):
| SLA Status | Meaning |
|---|---|
| On Time | Due date is in the future |
| At Risk | Due date is today |
| Breached | Due date has passed |
The Activity SLA report and Activity Cost report summarise these across activities.
Supporting Configuration¶
These master data items must be configured before creating schedules. See Master Data Configuration for details on each.
| Entity | Path | Purpose |
|---|---|---|
| Activity Types | /activity-types |
Define activity categories and their execution requirements |
| User Groups | /user-groups |
Assign groups of users to schedules and activities |
| Checklist Templates | /checklist-templates |
Define reusable checklists for activity execution |
| Cost Templates | /cost-templates |
Define reusable cost tracking structures |
Movement Tracking in Activities¶
When Movement Tracking is enabled on a schedule or one-off activity:
- Check-Out: A reader configured as an Exit reader (see RFID Management) scans the asset or vehicle leaving the activity's location.
- Check-In: A reader configured as an Entry reader scans it returning. A check-in is only accepted once a check-out for the same activity has already been recorded — a stray entry scan with no prior checkout doesn't match.
- Same location, not a pair: Unlike a transfer's separate "from" and "to" locations, an activity's check-out and check-in are both expected at the activity's own location — there's no separate return location involved in the gate logic.
- Asset vs. Vehicle tracking: Asset tracking requires the individual asset to be scanned; Vehicle tracking requires the assigned vehicle's tag to be scanned instead.
- Force Checkout / Force Checkin: If the expected scan doesn't arrive, an authorized user can manually close that step from the activity (each requires a comment) — the same mechanism used on Transfers.
- Force Complete: If you try to complete the activity while a checkout or check-in step is still outstanding, completion is blocked until you either get the real scan or pass Force Complete with a comment, which force-closes whatever step is still missing.
Every checkout/checkin event — real or force-closed — is recorded as a Movement Session, viewable from the activity's detail view, with its reader (for real scans) and timestamp.
Master Data Used by This Module¶
| Master Entity | Where Used | Purpose |
|---|---|---|
| Activity Types | Schedule / Activity — Activity Type field | Categorize and configure execution requirements |
| Assets | Schedule / Activity — Asset field | Link to specific asset |
| Locations | Schedule / Activity — Location field | Specify work location |
| User Groups | Schedule / Activity — User Group field | Assign responsible team |
| Users | Activity — Assigned User field | Individual assignment |
| Cost Templates | Schedule / Activity — Cost Template field | Structured cost tracking |
| Checklist Templates | Schedule / Activity — Checklist Template field | Structured task tracking |
| Vehicles | One-off Activity — Vehicle field (when Vehicle Tracking selected) | Vehicle tracking |
Related: Master Data Configuration · Permits · RFID Management · Reports