This is the WEE (Workflow Enactment Engine) repository.
|
18 小時之前 | |
---|---|---|
src | 1 周之前 | |
tutorial | 2 年之前 | |
.dockerignore | 2 年之前 | |
.editorconfig | 2 年之前 | |
.gitignore | 1 周之前 | |
.gitlab-ci.yml | 2 年之前 | |
Dockerfile | 2 年之前 | |
HELP.md | 2 年之前 | |
LICENSE | 2 年之前 | |
README.md | 1 周之前 | |
all_sketches.drawio | 18 小時之前 | |
flake.lock | 2 年之前 | |
flake.nix | 2 年之前 | |
main | 1 周之前 | |
mvn2nix-lock.json | 2 年之前 | |
mvnw | 2 年之前 | |
mvnw.cmd | 2 年之前 | |
pom.xml | 2 年之前 | |
tasks.py | 2 年之前 |
This directory contains a script that is meant to be used with the following drawio plugin:
https://msdl.uantwerpen.be/git/jexelmans/drawio/src/master/src/main/webapp/myPlugins/dtdesign.js
The plugin uses the backend to:
gradle
) and load them into a running Fuseki instance.On top of the dependencies listed in this repo's main README, you also need:
PATH/TO/SDO2L
.gradle
will be invoked by the backend script, so it needs to be in your PATH)
When building the backend (or the service monitor, see below) with Nix, all dependencies are taken care of automatically. The complete dependency graph of the service monitor (and hence, the Docker container), can be observed in dependencies.svg.
There are three ways to run the backend:
In order to run the backend script directly, there are some prerequesites:
gradle startFuseki
in PATH/TO/SDO2L
)dtdesign-backend PATH/TO/SDO2L
To use the backend, you also need to host a version of the drawio webapp that has the dtdesign-plugin enabled. Any static web server (e.g., Nginx, Lighttpd, Apache, ...), serving the following directory as its root will work:
https://msdl.uantwerpen.be/git/jexelmans/drawio/src/master/src/main/webapp/
Included in this project is a service monitor script (based on supervisord) that will start, monitor, restart, and cleanly stop the following services:
This allows running the DTDesign demo as if it were a single application.
To use the script:
PROJECTDIR=/PATH/TO/SDO2L nix run .#serviceMonitor
To end the script, hit Ctrl+C in the same terminal and all services will be cleanly shut down.
A Docker container that contains the service monitor script and all its dependencies, as well as a clone of the SystemDesignOntology2Layers OML project.
To build the container:
nix build #.dockerContainer
This places a symlink result
in the current directory, pointing at the created Docker container image file.
Pre-built containers are regularly uploaded in this directory:
https://msdl.uantwerpen.be/cloud/public/dfbe22
Just download the latest container version there.
To run the container, load the container image, then create and start an instance:
docker load < container.tar.gz # load the image
docker run -p "8081:8081" -p "5000:5000" -p "3030:3030" -p "8700:8700" # create and start an instance - replace XXX by the hash printed by the previous command
Once the backend, Fuseki and drawio web server are running, navigate to the following URL:
http://localhost:8700/?p=ftgpm;dtdesign&dev=1&stealth=1
this is an exemple how to run the back-end: python dtdesign-backend drawio/src/main/webapp/myPlugins/shape_libs update-oml-project (but in this case you need to consider the both projects update-oml-project and drawio are in the same folder)