{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":14967,"path":"field-service-management/planned-work-components.md","title":"Planned Work Management components","bundle":null,"doc_type":null,"release":"australia","body":"\n# Planned Work Management components\n\nSeveral types of components are installed with Planned Work Management, including tables, roles, script includes, and business rules.\n\n## Tables\n\nPlanned Work Management adds the following tables.\n\n<table id=\"table_owq_qtx_d5b\"><thead><tr><th>\n\nTable\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nWork Plan\\[wm\\_planned\\_work\\_plan\\]\n\n</td><td>\n\nStores the entities filtered for the work plan.\n\n</td></tr><tr><td>\n\nPlanned Work Schedule\\[wm\\_planned\\_work\\_schedule\\]\n\n</td><td>\n\nStores the schedules configured for a work plan. A schedule can be duration, meter, condition, or script based.\n\n</td></tr><tr><td>\n\nPlanned Work Schedule Template\\[wm\\_m2m\\_schedule\\_template\\]\n\n</td><td>\n\nStores the list of work order templates applied to planned work schedules.\n\n</td></tr><tr><td>\n\nPlanned Work Record\\[wm\\_m2m\\_work\\_plan\\_to\\_record\\]\n\n</td><td>\n\nRelates a work plan schedule to a record in the system \\(from a document ID\\). Also contains information about the last time or value the schedule ran for the record and the next time or value when the schedule will run.\n\n</td></tr><tr><td>\n\nTemplate Attribute Mapping\\[wm\\_m2m\\_template\\_attribute\\_map\\]\n\n</td><td>\n\nStores the attribute mapping for a work order template.\n\n</td></tr><tr><td>\n\nSchedule Occurrence\\[wm\\_plan\\_work\\_schedule\\_occurrence\\]\n\n</td><td>\n\nStores the occurrences of the work schedule.\n\n</td></tr><tr><td>\n\nSchedule Suppression\\[wm\\_m2m\\_schedule\\_suppression\\]\n\n</td><td>\n\nStores the occurences of suppressed work schedules.\n\n</td></tr></tbody>\n</table>## Roles\n\nPlanned Work Management adds the following roles.\n\n<table id=\"table_prq_wsx_d5b\"><thead><tr><th>\n\nRoles\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nPlanned work admin \\[sn\\_fsm\\_planned\\_wm.planned\\_work\\_admin\\]\n\n</td><td>\n\nCreate work plans, planned work schedules, link work order templates to the schedules, and generate work orders.\n\n</td></tr></tbody>\n</table>## Script Includes\n\nPlanned Work Management adds the following script includes.\n\n|Script Include|Description|\n|--------------|-----------|\n|PlannedWorkManagementExtensionPointImpl|Implements the Global.PlannedMaintenanceExtensionPoint extension point.|\n|PlannedWorkMgmtAjaxUtil|Utility function for client scripts in planned work management.|\n|PlannedWorkMgmtAPIHelperUtil|Utilities for wrapper function to invoke global scoped APIs from planned work management scope.|\n|FSMPWMUtil|Utility function for planned work management scoped application.|\n|PWMForecastWOUtil|Utility function to forecast work orders for the planned work.|\n|PlannedMaintenanceExtensionPointImpl|Default implementation for planned maintenance application.|\n|PlannedMaintenanceExtPointUtil|Utility in the planned maintenance application to retrieve extension points based on sys\\_class\\_name.|\n|PlannedWorkManagementHistoryUtil|Utility in the planned work maintenance application to fetch the maintenance cycles history for an asset or inventory.|\n|PlannedWorkManagementScheduleUtil|Maintains the processing logic for plan work record, schedule occurrences, work note comments etc.|\n|PlannedWorkMangementPlanUtil|Utility methods related to work plan.|\n|PlannedWorkManagementEffectivityUtil|Utility methods to determine and validate the effectivity of the schedule.|\n|PlannedWorkManagementScheduleExeUtil|Acts as switch between the implementations of thePlannedWorkManagementExeExtensionPoint extension point based on order type. The default value of order type is work order.|\n|PWMWorkOrderExeExtensionPointImpl|Implementation of the PlannedWorkManagementExeExtensionPoint extension point for the order type selected as work order.|\n|PlannedWorkManagementConstants|Holds the constants for plan work management.|\n|PWMScheduleSuppression|Maintains the processing logic of schedule suppression.|\n|PWMScheduleOccurrence|Maintains the processing logic of schedule occurrence.|\n|PWMScheduleOccurrenceDAO|Maintains the DAO methods of schedule occurrence.|\n|PWMWorkScheduleDAO|Maintains the DAO methods for work schedule.|\n|PWMPlanWorkRecordDAO|Maintains the DAO methods for plan record.|\n\n## Business rules\n\nPlanned Work Management adds the following business rules.\n\n<table id=\"table_x5f_1wx_d5b\"><thead><tr><th>\n\nBusiness rule\n\n</th><th>\n\nTable\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\ncross scope record creation\n\n</td><td>\n\nWork Plan\\[wm\\_planned\\_work\\_plan\\]\n\n</td><td>\n\nCreates the cross scope access record on the table on which Maintenance plan is created and must be run.\n\n</td></tr><tr><td>\n\ncancel WO when plan record inactive\n\n</td><td>\n\nPlanned Work Record\\[wm\\_m2m\\_work\\_plan\\_to\\_record\\]\n\n</td><td>\n\nCancels the work order for a plan record when that plan record is inactivated. The Plan record gets deactivated when the asset record is modified so that it doesn’t satisfies the filter condition at the plan level.\n\n</td></tr><tr><td>\n\nPlanned work schedule to maintenance plan\n\n</td><td>\n\nPlanned Work Schedule \\[wm\\_planned\\_work\\_schedule\\]\n\n</td><td>\n\nRestricts the creation of Planned work schedule for maintenance plan. Only allows when the Plan is of class Planned work.\n\n</td></tr><tr><td>\n\nRestrict model per schedule\n\n</td><td>\n\nPlanned Work Schedule Template\\[wm\\_m2m\\_schedule\\_template\\]\n\n</td><td>\n\nRestricts the creation of duplicate model schedule in the table.\n\n</td></tr><tr><td>\n\nRestrict table map for model\n\n</td><td>\n\nTemplate Attribute Mapping\\[wm\\_m2m\\_template\\_attribute\\_map\\]\n\n</td><td>\n\nRestricts the user to have single table map per a work order template\n\n</td></tr><tr><td>\n\nUpdate m2m schedule records new fields\n\n</td><td>\n\nPlanned Work Schedule\\[wm\\_planned\\_work\\_schedule\\]\n\n</td><td>\n\nUpdates the schedule record and recalculates the next value or next run time when meter or duration fields change.\n\n</td></tr><tr><td>\n\nValidate plan effective start, end\n\n</td><td>\n\nWork Plan\\[wm\\_planned\\_work\\_plan\\]\n\n</td><td>\n\nChecks if the effective start and end date of the work plan are valid.\n\n</td></tr><tr><td>\n\nWork schedule template to maint schedule\n\n</td><td>\n\nPlanned Work Schedule Template\\[wm\\_m2m\\_schedule\\_template\\]\n\n</td><td>\n\nRestricts the user to add maintenance schedule to planned work schedule template.\n\n</td></tr><tr><td>\n\nUpdate latest completion date in Work order\n\n</td><td>\n\nWork Order Task\\[wm\\_Task\\]\n\n</td><td>\n\nUpdates the latest completion date in work order for grace time SLA.\n\n</td></tr><tr><td>\n\nCompare schedule template tasks\n\n</td><td>\n\nSchedule Suppression\\[wm\\_m2m\\_schedule\\_suppression\\]\n\n</td><td>\n\n \n\n</td></tr><tr><td>\n\nValidate cyclic dependency\n\n</td><td>\n\nSchedule Suppression\\[wm\\_m2m\\_schedule\\_suppression\\]\n\n</td><td>\n\n \n\n</td></tr><tr><td>\n\nSuppress SO by schedule suppression\n\n</td><td>\n\nSchedule Suppression\\[wm\\_m2m\\_schedule\\_suppression\\]\n\n</td><td>\n\n \n\n</td></tr><tr><td>\n\nSuppress SO by schedule\n\n</td><td>\n\nSchedule Occurrence \\[wm\\_plan\\_work\\_schedule\\_occurrence\\]\n\n</td><td>\n\n \n\n</td></tr><tr><td>\n\nSuppress SO by suppressBy schedule\n\n</td><td>\n\nSchedule Occurrence \\[wm\\_plan\\_work\\_schedule\\_occurrence\\]\n\n</td><td>\n\n \n\n</td></tr><tr><td>\n\nCancel WO if SO inactive\n\n</td><td>\n\nSchedule Occurrence \\[wm\\_plan\\_work\\_schedule\\_occurrence\\]\n\n</td><td>\n\n \n\n</td></tr><tr><td>\n\nCheck effective start of SO\n\n</td><td>\n\nSchedule Occurrence \\[wm\\_plan\\_work\\_schedule\\_occurrence\\]\n\n</td><td>\n\n \n\n</td></tr><tr><td>\n\nChange WO fields on SO field changes\n\n</td><td>\n\nSchedule Occurrence \\[wm\\_plan\\_work\\_schedule\\_occurrence\\]\n\n</td><td>\n\n \n\n</td></tr></tbody>\n</table>-   **[Planned Work Management system properties](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/field-service-management/planned_work_management_sys_properties.md)**  \nPlanned Work Management uses the following system properties, which are located in the System Properties \\[sys\\_properties\\] table.\n\n**Parent Topic:**[Components installed with additional plugins for Field Service Management](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/field-service-management/components-inst-additional-plugin.md)\n\n**Related topics**  \n\n\n[Extension points in Field Service Management](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/field-service-management/extension-points-field-service.md)\n\n"}}