R39596 ServiceActivity - Create Checklist Execution
| Code | R39596 |
| Entity | Applications.Service.ServiceActivities |
| Name | CreateChecklistExecution |
| Attribute | Document State |
| Layer | Back-End |
| Events | STATECHANGED |
| Priority | Normal |
| Modify | NO |
| Action | On STATECHANGED to FirmPlanned For all existing Service Activity Services records search Service and check where: (Service.OperationalProcedure is not null ) For each found Operational Procedure check if there is OperationalProcedureExecution; if missing, create it. For each checklist template assigned to the operational procedure, create the corresponding Checklist Execution Items by copying all Checklist Template Items into the execution (one execution item per template item). The rule must be idempotent. Do not create a second Operational Procedure Execution for the same (Service Activity, Operational Procedure). |
| Description | Creates operational procedure executions and initializes checklist execution items when a Service Activity is moved to Firm Planned. For each service line whose service has an Operational Procedure, the rule ensures an Operational Procedure Execution exists and generates the related Checklist Execution Items from the procedure’s checklist template items. The rule is idempotent and skips services without an operational procedure. |
| Message | - |
| Version | Introduced: |
| Revocable | NO |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.