In this repository you will find example code, code snippet and a example scheduling workbench-app application to work with SAP FSM APIs for advanced scheduling use cases and reference implementation for integration scenarios.
Find a workbench demo here: demo-application
to use the examples in this repository you will need a SAP FSM account with admin-role data access with account (id & name) / company (id & name) / user (id & name) as well as the name of the data-cluster (eu|de|us|au|cn)
to build and run the source code:
- docker 19.x
- nodejs v10.x
- npm v6.9.x
NOTE: We recommend using unix based systems to follow this guide. Note that for OSX and Windows tools might be installed differently.
Checkout the how-to.md quick guide in the /docs
-folder.
HTTP requests may be found in /workbench/backend/http_requests
directory. You will need to set an environment with with several variables in order to execute the requests.
docker run --rm -e PORT=3000 -p 3000:3000 --name fsm-scheduling-samples gausim/fsm-scheduling-samples:latest
open http://localhost:3000 in your browser
use the cli the following command in the /workbench-app
-folder
cd workbench && ./cli.sh
use commands:
r -> run container
b -> build container
d -> deploy
- For workbench configuration options see this readme-file
- Refer to constraints and limitations documentation
- Maintainers of the project have to observe changes in the DTO Model and make sure the fsm-sdk dependency is updated accordingly, otherwise the query API will fail. The update in fsm-sdk has to be manually executed.
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 folder.
- In case you need further help, check out the SAP Field Service Management Help Portal or report and incident in SAP Support Portal with the component "CEC-SRV-FSM".
-
Technical questions about code in this repository, please open an issue here
- SAP Field Service Management - Product Website
- AI-based Scheduling
- Optimization API
- Service Management API Spec
Want to contribute? Check out our contribution guide and follow our code of conduct.
Copyright (c) 2021 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.