Introduction and Motivation
The PlantUML tool allows to quickly write UML diagrams. With our PlantUML generator you can generate a UML component diagram and class diagrams for every Bounded Context of your model. If the implemented Subdomains contain entities, the generator produces class diagrams for these subdomains as well. Thereby we offer a transformation from our DSL into a graphical representation of the system. The component diagram illustrates all Bounded Contexts and their relationships, while the class diagrams show the domain models of the Bounded Contexts and Subdomains if you used the Tactic DDD Syntax to model them.
The following section describes how you use the PlantUML generators to create the UML component and class diagrams of your modeled system.
Generating plantUML Diagrams
We assume you have a CML file with your model in Eclipse (with our plugin installed). With a right-click to the CML-file you will find a Context Mapper context menu. With the action PlantUML: Generate Diagrams you generate all the plantUML diagrams for your context map:
All the diagrams will be generated into the src-gen folder. If you have installed one of the recommended plantUML Eclipse plugins (see recommendations here), you can directly open and view the diagrams in eclipse:
UML Component Diagram
The transformation will generate one component diagram for your context map, showing the bounded contexts and its relationships. The component diagram for our insurance example:
UML Class Diagram
Further, the transformation generates a class diagram for every bounded context. An example from the insurance scenario: