A Modelio project that models the MYRTUS Face Application as a TOSCA service template, using the ToscaDesigner Modelio module.
The project describes the application topology (software components, hosts, requirements, capabilities and deployment artifacts) with TOSCA node types defined in the example.eu.myrtus.nodetypes package.
| Item | Value |
|---|---|
| Project name | MYRTUS Face Application |
| Project type | Local Modelio project |
| Modelio version | 5.4 |
| Modeling module | ToscaDesigner 0.5.02 |
| Libraries | PredefinedTypes 3.9.00, ToscaLibrary 0.0.05 |
| Diagram theme | Cobalt |
The model fragment MYRTUS Face Application contains the following.
TOSCA node types (package example.eu.myrtus.nodetypes):
MyrtusSWComponent: base software component type, built ontosca.nodes.SoftwareComponent.MyrtusCameraFeed: camera feed service (web service interfaceCameraFeed.WebService).MyrtusFaceDetectionService: face detection service.MyrtusProxy: proxy service (web service interfaceMyrtusProxy.WebService).Myrtus-Workstation: workstation host, built ontosca.nodes.Compute.FaceApplication: the top-level application type.
Service template (MYRTUS_FaceApplication):
- Node templates instantiating the types above (for example
Myrtus_Proxy_0,Myrtus_Workstation_1,MyrtusCameraFeed_0,MyrtusFaceDetectionService_0). - Requirements, capabilities,
host,connectsandegressrelationships between nodes. - Deployment artifacts such as
nginx.conf,fullchain.pemandkey.
Diagrams:
ToscaModelDiagramServiceTemplateDiagramTopology Template Diagram
- Modelio 5.4 (the project was created with this version).
- The ToscaDesigner module, version 0.5.02.
- The
ModelerModule(activated in the project).
-
Clone the repository:
git clone https://github.com/Modelio-R-D/MyrtusFaceAppToscaDesigner.git
-
Install the ToscaDesigner module (0.5.02) in Modelio through the module catalog or from a local
.jmdacfile. -
In Modelio, choose File > Open a project and select the cloned folder (the one containing
project.conf). -
If Modelio reports that a module or library cannot be found at its original path, point it to your local copy of ToscaDesigner 0.5.02 and activate the module.
-
Open the diagrams from the model explorer.
.
├── LICENSE
├── project.conf Modelio project descriptor
├── .runtime/ Modelio runtime and index files
└── data/
├── .config/ Diagram styles, themes, audit configuration
├── localmodel/ Local model storage
├── modelchanges.conf
└── fragments/
├── MYRTUS Face Application/ Project model (.exml files)
├── ToscaDesigner/ ToscaDesigner module library content
└── PredefinedTypes 3.9.00/ Predefined UML types
project.confis generated by Modelio and should not be edited by hand. It contains absolute Windows paths from the machine where the project was created; Modelio resolves them again when the project is opened on another machine.- Files in
.runtime/and the index files indata/are regenerated by Modelio. - The model files (
.exml) are Modelio's own XML format and are meant to be edited from within Modelio.
This project is distributed under the GNU General Public License v3.0. See the LICENSE file for details.