context-mapper-dsl
context-mapper-dsl copied to clipboard
Imported subdomains are not generated by PlantUML generator
Describe the bug A model distributed over several files, does not generate subdomain PlantUML diagrams of the imported domains.
To Reproduce Steps to reproduce the behavior:
- Create Domain with Subdomain in other cml file
- Generate PlantUML diagrams for "import-to-other-domain.cml"
- See list of generated PlantUML diagrams:
- src-gen/import-to-other-domain_BC_context1.puml
- src-gen/import-to-other-domain_BC_context2.puml
- src-gen/import-to-other-domain_ContextMap.puml
- src-gen/import-to-other-domain_SD_DirectSubdomain.puml
Expected behavior The file "src-gen/import-to-other-domain_SD_OtherSubdomain.puml" is also created.
Input files to reproduce File: import-to-other-domain.cml
import "./other-domain.cml"
Domain DirectDomain {
Subdomain DirectSubdomain {
Entity DirectEntity
}
}
ContextMap testMap {
}
BoundedContext context1 implements DirectDomain
BoundedContext context2 implements OtherSubdomain
File: OtherDomain.cml
Domain OtherDomain {
Subdomain OtherSubdomain {
Entity OtherEntity
}
}
IDE and Plugin (please complete the following information):
- Eclipse version 2022-03 (4.23.0)
- ContextMapper plugin version 6.6.1
Additional context I don't know if this behavior is intended or not. But from my understanding of the Imports language feature, I would expect the generation of all model elements, as if they were in the same file.