View on GitHub

ewm-cloud-robotics

Source code, containers & Helm charts enabling users to leverage the core of Google Cloud Robotics to automate fulfilment warehouse orders & tasks commissioned by SAP EWM

Coverage Status

ewm-sim (v2)

This project is inspired by the mockserver-server by Arnaud Buchholz. It makes use of the SAPUI5 MockServer and runs it in a standalone mode to mock the real odata service of an EWM system. By this, we now achieved a much slimmer approach compared to the former version of ewm-sim.

Getting Started

Note that the mockserver will not start, if the environment variables ODATA_USER and ODATA_PASSWD have not been set and optionally you can set the interval for the generation of warehouse orders with GEN_INT in milliseconds :warning:

Local

To get the project up and running, issue the following commands in the root directory of the project (docker/ewm-sim):

Docker :whale:

Start your docker daemon and run:

$ docker pull ghcr.io/sap/ewm-cloud-robotics/ewm-sim:latest

Now we need to set our environment variables, forward traffic to the host’s port and run our docker image.

$ docker run -e ODATA_USER=root -e ODATA_PASSWD=123 -e GEN_INT=30000 -p 8080:8080 ghcr.io/sap/ewm-cloud-robotics/ewm-sim:latest

(Surely the first occurrence of 8080 can be replaced with any desired and free port of the host. DO NOT specify $ODATA_PORT when running in docker mode.)

OR

Make sure you’re in the correct directory (docker/ewm-sim) and run:

$ docker build --tag ewm-sim:1.0 .
$ docker run -e ODATA_USER=root -e ODATA_PASSWD=123 -p 8080:8080 ewm-sim:1.0

Making Requests

Here you can find a postman collection with example requests.

Maybe it’s also helpful to have a look on our unit tests, to get a deeper understanding of the workflow.

Postman Collection

Included in the project folder is a Postman Collection. It enables you to send a few test requests to the server.

To use it:

Current State of Implementation

Currently, the basic mockserver is up and running. It is served by an express web service. This includes:

Function Imports

Additionally we are currently working to get the special functionality provided by the oData service of a real EWM system. Current status of those function imports is:

¹ Due to missing properties in the oData model, implementation is only for demo purpose. The returned values will differ from an actual EWM system. The resource type is hardcoded to RB01, the resource group to RB02.

Additional Notes