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. 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. The generator further produces one class diagram for every Bounded Context, if you use 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: