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

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

Open stefan-ka opened this issue 5 years ago • 2 comments

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 avatar Oct 02 '19 14:10 stefan-ka

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 avatar Oct 10 '19 08:10 stefan-ka

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

stefan-ka avatar Oct 10 '19 08:10 stefan-ka