The visualization-service is one of many plugins of the DeMAF project. It was developed to layout EDMM Models automatically with the help of GraphVIZ and to visualize them with Eclipse Winery.
The plugin only works (without adaptions) in the context of the entire DeMAF application using the deployment-config. The documentation for setting up the entire DeMAF application locally is here.
You can run the application without the deployment-config, but it will not run as it needs to register itself at the analysis-manager.
If you want to boot it locally nevertheless use the following commands.
mvn clean package
java -jar target/visualization-service-0.2.0-SNAPSHOT.jar
To visualize an EDMM model, follow steps 1-6 from here. Then enter the following command in the DeMAF-shell:
transform --location file:/usr/share/filename.yaml --technology visualization-service --options dpi=96,flatten=partial,width=1920,height=1080,visualize=true
The plugin supports the following flags:
visualize=true/false
(default true)height=pixel
(default 1920)width=pixel
(default 1080)flatten=true/false/partial
(default false)dpi=pixels per inch of your display
(default 96 dpi)
The options arguments can also be specified in other transformations; these are then passed on to the visualization-service for automatic visualization.
This plugin has a few specialties compared to other DeMAF plugins:
- Automatic execution: As long as the option
visualize=false
is not specified during the transformation, this plugin is automatically called to visualize the model after a successful transformation into an EDMM model. - No directories: Since EDMM models are typically defined in a single YAML file, no directories are supported as a location.
When running the project locally using e.g. IntelliJ IDEA or from the command-line, make sure that the plugin is not also running in a Docker container, launched by the deployment-config, otherwise the port is blocked.