ContextMapper / context-map-generator

A graphical DDD Context Map Generator based on Graphviz
Apache License 2.0
21 stars 2 forks source link

Aggregate Root in Context map #14

Open xenoterracide opened 2 years ago

xenoterracide commented 2 years ago

How can I show the aggregate root in the context map? e.g. this picture from Domain Driven Design Distilled Context Map with Aggregates

stefan-ka commented 2 years ago

Thanks for reporting this one; would be a very nice feature, I agree :+1:

Contributions are always welcome, by the way ;)

xenoterracide commented 2 years ago

maybe, probably not, too much to do. Much more important open source projects to deal with, like forking immutables. though this is kind of a key feature to me since plantuml already exists but has no way to do context maps. context maps plus "event storming" is kind of what I was looking for. Especially with the ability from CI. Just commenting on level of importance.

tk commented 2 years ago

I tried to find a Graphviz structure that would support this representation, but subgraphs only have rectangle shapes.

ceilfors commented 5 months ago

@stefan-ka Would be lovely to have this.

Alternatively, I was trying to make this work via PlantUML, because it's capable of generating Module i.e. use that as a means to generate a grouping of aggregates.

Unfortunately, I discovered that the PlantUML generator doesn't show the relationship between bounded contexts. Maybe a simpler solution is to get PlantUmlGenerator to have the ability to generate aggregates for the entire context map?

I'm referring to this diagram (from this page), it'll be great if this sort of diagram can be generated to contain multiple bounded contexts, and only focus on showing aggregate, entity, value objects, relationships (omit all other properties).

image

stefan-ka commented 5 months ago

Hi @ceilfors That's actually a nice idea, thanks! We'll have to see how we handle that with the references between Bounded Contexts, but I'll look into it and keep your idea in mind. Thanks and best regards, Stefan

ceilfors commented 5 months ago

@stefan-ka Looking forward to it!

Out of curiosity, without this idea, how do you currently show that high-level picture of aggregate+BCs via context mapper? Any workaround to that? :)

stefan-ka commented 5 months ago

@ceilfors, we actually don't have that yet. There is the Context Map and the PlantUML component diagram that both illustrate relationships between Bounded Contexts. But we don't have such a diagram that goes down to the Aggregate level.