ContextMapper / context-mapper-dsl

ContextMapper DSL: A Domain-specific Language for Context Mapping & Service Decomposition
https://contextmapper.org/
Apache License 2.0
216 stars 27 forks source link

New semantic validator: Show warning if Bounded Contexts of different types are used in relationship #97

Open stefan-ka opened 4 years ago

stefan-ka commented 4 years ago

Bounded Contexts can be of different types (reflecting different perspectives: FEATURE, APPLICATION, SYSTEM, TEAM).

Show a compiler warning if there is a Context Map relationship between two contexts of different types.

stefan-ka commented 4 years ago

I understand the user feedback, although a warning seems too hard for me since there are situations where such relationships are legitimate.

For example in our insurance scenario: Most contexts (customer management, policy management, etc.) are features, but printing is an external system. And the self-service context represents a single web-application which is why it has the type application. Makes perfectly sense for me to model it like this.

stefan-ka commented 4 years ago

Idea: A model linter could just give a "hint". However, this issue as low priority for now.