Workplace planned maintenance scheduled job
Summarize
Summary of Workplace Planned Maintenance Scheduled Job
The Workplace Planned Maintenance Nightly Run is a scheduled job that operates at a configured time to generate maintenance cases. It can also create maintenance cases for durations of less than a day, up to two days in advance, based on the time zone settings of the system and the workplace agent. This functionality helps organizations efficiently manage maintenance schedules and ensure proactive upkeep of assets.
Show less
Key Features
- Case Creation: The job creates both duration-based and meter-based maintenance cases based on active plan records.
- Template Association: Maintenance schedules must have an associated template from the Workplace Maintenance Service Configuration table (snwsdmaintenanceserviceconfig) for cases to be created.
- Lead Time Definition: Users can define a Minimum lead time in days, determining how far in advance cases are created.
- Next Run Time Management: The job updates the Next run time in the configuration table after creating cases, ensuring timely follow-ups.
Key Outcomes
By utilizing the Workplace Planned Maintenance Nightly Run, customers can expect:
- Automated creation of maintenance cases, reducing manual intervention and enhancing operational efficiency.
- Improved asset management through proactive scheduling, leading to better maintenance practices.
- Clear visibility and tracking of maintenance schedules, thanks to effective template and configuration management.
The scheduled Job Workplace Planned Maintenance Nightly Run runs at the configured time and creates maintenance cases. It also pre-creates maintenance cases when the scheduled duration is less than a day.
The scheduled job can pre-create cases for day and up to two days ahead of the scheduled time. This is based on the time difference between the system time zone where the job is running, and the workplace agent time zone working on the cases.
- Creates duration-based cases.
- Creates meter-based cases.
The scheduled job can also pre-create maintenance cases when the schedule configured is less than a day. The duration is based on your system time zone settings. For example, if you have a maintenance schedule of six hours, it creates the following number of maintenance cases:
- For a six-hour schedule, four maintenance cases are created for each maintenance asset or location in a day.
- For a six-hour schedule, eight maintenance cases are created for two maintenance assets or locations in a day (four cases for each).
Figure 1. Workplace Maintenance cases - For a six-hour schedule, 12 maintenance cases are created for three maintenance assets or locations (four cases for each).
Duration-based cases
- Fetches all active plan records having the Next run time duration.
- Filters out plan records where the Next run time is 48 hours or less than a day.
Figure 2. Schedule job Next run time - Checks for an entry in the Workplace Maintenance Service Configuration (sn_wsd_maintenance_service_config) table.
- Gets all records from the Workplace Maintenance Service Configuration table.
- For each record in the Workplace Maintenance Service Configuration table, the schedule for the current plan record must have a template associated to it.
- If there’s a template, the scheduled job creates a maintenance case and updates the Next run time in the Workplace Maintenance Service Configuration table for a plan record.
- If there’s no template associated to a plan record, the scheduled job fetches the next plan record in a queue.
Meter-based cases
- The scheduled job fetches all active plan records having a Next run value.
- For each plan record, the Next run value depends on the Field name value. The Field value is available when you’re creating a meter-based schedule.
For more information, see in Create or copy a maintenance schedule.
- The scheduled job retrieves the value of the Field name from the Asset (sn_ent_asset) table and compares it with the Next run value for a plan record.
- The schedule job checks if the Next run Value is less than the actual value in the Asset table and proceeds further.
- if the Next run value is more, it fetches the next plan record in a queue.
- The maintenance schedule for a current plan record must have an entry in the Workplace Maintenance Service Configuration (sn_wsd_maintenance_service_config) table.
- Gets all the records from the Workplace Maintenance Service Configuration table for that schedule in a Plan record.
- For each record in the Workplace Maintenance Service Configuration table, the schedule for the current plan record must have a template associated to it.
- If there’s a template associated to a maintenance schedule, the schedule job creates a workplace maintenance case and updates the Next run value for a plan record.
- If there’s no template associated to a maintenance schedule, the scheduled job picks up the next plan record in a queue.