The OSCM BaSyx Connector. This tool is meant to enhance OSCM for discovering and importing service data provided from asset administration shells.
Latest OSCM is up running on your server <OSCM_HOST> (install dir referred as /docker). Checkout this Readme for getting started with OSCM.
Install the Basyx off-the-shelf components Registry and AAS Server on your OSCM docker host. Create the configuration under /docker/config/basyx/aasServer and /docker/config/basyx/registry.
The scripts contained in the oscm-scripts directory shall help you integrating the two services in your OSCM docker network. Ensure the volume mounts in the docker-compose yaml file are satisfied and copy all into your /docker directory, where OSCM is installed.
Following environment variables are required.
OSCM_HOST=<fully qualified named of your OSCM server>
AAS_REGISTRY_HOST=<Host or IP>:9082
## OSCM user (needs user roles service manager + technology manager)
API_USER_KEY=<User key, e.g. 10000>
API_PASS=<OSCM password>
Add the variables in /docker/var.env
Clone this repo and import it in your <workspace>.
- Locate the pom.xml file and choose Run As->Run Configurations... from the context menu.
- Name the Maven Build configuration, enter Goals: clean install.
- On the tab Environment add the variables above and press Run.
- Enter Settings CTRL+ALT+S, search and select "Maven Runner".
- In the field Environment variables, place the above variables as semicolon separated list in form var1=value1;var2=value2; etc.
- Open the Maven Tool window and run clean and install from the Maven lifecycle tree.
- Add the variables in var.env.
- Restart OSCM.
- Deploy oscm-basyx discovery.
docker cp <workspace>/oscm-basyx/target/discovery*.war oscm-app:/opt/apache-tomee/webapps/discovery.war
- Expose the above variables in your shell environement (export
OSCM_HOST=...
etc.). - Deploy your AAS as aasx file in the registry, therfore place it in /docker/config/basyx/registry.
- Ensure it loads with
http://$AAS_REGISTRY_HOST/registry/api/v1/registry
- Run
import.sh <TS_ID>