From 1a3533e10be264756a04b812b97c77e3445faec5 Mon Sep 17 00:00:00 2001 From: Nikhil Rane Date: Tue, 31 Aug 2021 22:35:33 +0200 Subject: [PATCH] Add supplement for BRs (#11) * Add supplement for BRs * Remove Email ID to avoid spamming * Remove Email ID to avoid spamming --- README.md | 5 ++++- business-rules/no-overlapping-assignments/customRules.json | 4 ++-- business-rules/re-optimize/customRules.json | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 989d435..7b9904f 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,9 @@ d -> deploy # Known Issues - There are no known issues for the moment. +# Supplements +On top of the workbench application, you can also configure Business Rules to trigger reoptimization and avoid scenarios like overlapping jobs for a Technician. Refer to [business-rules](/business-rules) folder. + # How to obtain support ## Product support @@ -68,7 +71,7 @@ d -> deploy - [SAP Field Service Management - Product Website](https://www.sap.com/germany/products/field-service-management.html) - [AI-based Scheduling](https://help.sap.com/viewer/fsm_ai/Cloud/en-US/ai-based-scheduling-overview.html) - [Best Matching Technician](https://help.sap.com/viewer/fsm_ai/Cloud/en-US/best-matching-technician-two-versions.html) - - [Sample Business Rules for Optimization](https://help.sap.com/viewer/fsm_ai/Cloud/en-US/optimization-business-rules.htm) + - [Sample Business Rules for Optimization](https://help.sap.com/viewer/fsm_ai/Cloud/en-US/optimization-business-rules.html) - [Optimization API](https://eu.coresystems.net/optimization/api/v1/swagger-ui/#/) - [Service Management API](https://help.sap.com/viewer/fsm_service_api/Cloud/en-US/service-api-overview.html) [Spec](https://app.swaggerhub.com/apis/coresystemsFSM/ServiceManagementAPI) diff --git a/business-rules/no-overlapping-assignments/customRules.json b/business-rules/no-overlapping-assignments/customRules.json index c320937..bc47625 100644 --- a/business-rules/no-overlapping-assignments/customRules.json +++ b/business-rules/no-overlapping-assignments/customRules.json @@ -23,7 +23,7 @@ "name" : "SAMPLE - Validation - Do not allow overlapping assignment", "objectType" : "SERVICEASSIGNMENT", "permissionsType" : "USER", - "responsible" : "s.gausmann@sap.com", + "responsible" : "", "type" : "TWO", "variables" : [ { "name" : "overlapping_sa", @@ -40,4 +40,4 @@ "dtoVersions" : "PersonReservation.18", "query" : "SELECT overlap.id FROM PersonReservation overlap WHERE overlap.person = ${serviceAssignment.technician} AND ((overlap.startDate >= ${serviceAssignment.startDateTime} AND overlap.endDate <= ${serviceAssignment.endDateTime}) OR (overlap.startDate < ${serviceAssignment.startDateTime} AND overlap.endDate > ${serviceAssignment.startDateTime}) OR (overlap.startDate < ${serviceAssignment.endDateTime} AND overlap.endDate > ${serviceAssignment.endDateTime})) limit 20" } ] -} ] \ No newline at end of file +} ] diff --git a/business-rules/re-optimize/customRules.json b/business-rules/re-optimize/customRules.json index 8f0e75a..1c25ee3 100644 --- a/business-rules/re-optimize/customRules.json +++ b/business-rules/re-optimize/customRules.json @@ -96,7 +96,7 @@ "name": "RE_OPTIMIZE", "objectType": "", "permissionsType": "MAXIMUM", - "responsible": "s.gausmann@sap.com", + "responsible" : "", "type": "TWO", "variables": [ { @@ -116,4 +116,4 @@ } ] } -] \ No newline at end of file +]