context-mapper-dsl icon indicating copy to clipboard operation
context-mapper-dsl copied to clipboard

Imported subdomains are not generated by PlantUML generator

Open tk opened this issue 2 years ago • 0 comments

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:

  1. Create Domain with Subdomain in other cml file
  2. Generate PlantUML diagrams for "import-to-other-domain.cml"
  3. 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.

tk avatar Mar 28 '22 10:03 tk