Coder Social home page Coder Social logo

context-mapper-examples's People

Contributors

boxleytw avatar mleveist avatar socadk avatar stefan-ka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

context-mapper-examples's Issues

Example for Resource Operation delegate

It would be good to have an example of resource operation delegate to the service operation. I have defined a service and a resource and I am able to inject the service into the resource. I am not able to provide a delegation to the service operation from resource operation. My understanding is following should work but I am getting syntax error.
String createEmployee(@EmployeeDto emp) POST path="/employee" DELEGATE @EmployeeService.addEmployee;
When I use ctrl spacebar I don't get Delegate in the proposal.

help with a context map that includes aggregates

I'm just learning about DDD context maps.

Just for learning purposes, I'm trying to model something like this inside a cml document:

enter image description here

This is what I have so far for my cml. I have defined two aggregates. One is frontend and the other Backend Api.

ContextMap CMSRAGService {
	contains SharePointWebPart
	contains BackendApi
	contains AnswerGenerationService
  contains DocumentSummarizationService
	contains AzureOpenAiApi
  contains MSGraphSharePointApi
  contains NaturalLanguageProcessingService

	AzureOpenAiApi [OHS, PL] -> [ACL] AnswerGenerationService
  AnswerGenerationService -> DocumentSummarizationService 
  MSGraphSharePointApi [OHS, PL] -> [ACL] DocumentSummarizationService
  MSGraphSharePointApi ->  NaturalLanguageProcessingService
  NaturalLanguageProcessingService -> DocumentSummarizationService
}

BoundedContext SharePointWebPart{
	Aggregate Frontend {
	}
}

BoundedContext BackendApi
{
	Aggregate BackendApi {
	}
}

BoundedContext AnswerGenerationService

BoundedContext AzureOpenAiApi

BoundedContext NaturalLanguageProcessingService 

BoundedContext MSGraphSharePointApi 

BoundedContext DocumentSummarizationService

The problem is I don't know how to include these other services as a part of the Aggregate.
I saw an example of the keyword "service" and i tried playing around with it, but it doesn't give me what I'm looking for. Just for ha has and giggles, I tried to update the BackendApi context like so:

BoundedContext BackendApi
{
	Aggregate BackendApi {
    knowledgeLevel = CONCRETE
      enum States {
    aggregateLifecycle
    CREATED, POLICY_CREATED, RECALLED
  }
    Service ContractService{
      boolean createPolicy(): write [CREATED -> POLICY_CREATED];
    }
	}
}

It doesn't actually impact the SVG that's rendered.

Graphical context map

Does this example:

/context-mapper-examples/blob/master/src/main/cml/architectural-refactorings/AR-02-Split-Bounded-Context-by-Features/example-output.cml

work with the graphical context map generator?

It only shows the PolicyManagementContext and thats it.

test_ContextMap

DDD-sample UML BC diagrams contain only (first?) CargoBookingContext modules?

Hi! I've been diving into ContextMapper with great interest and enthusiasm, looks like a valuable tool for a system design at hand. However, when playing around with VS Code extension and DDD-Sample, I found out that if I generate PlantUML diagrams, the bounded context diagram is generated only for the first context (in this case Cargo Booking context). How can the UML diagrams be generated for other contexts in the cml file? I did not find documentation about this. I guess I could copy the parts to separate files, but that's not really in the spirit of automatic generation...

Add an example in an asynchronous scenario

Hi,

In the last months, I was exploring the project and I liked to much because the DSL allow exploring the different scenarios designed by Eric Evans:

  • Open Host Service [OHS]
  • Published Language [PL]
  • Anticorruption Layer [ACL]
  • Shared Kernel [SK]
  • Conformist [CF]
  • Customer / Supplier [C,S]
  • Partnership [P]
  • Separate ways *
  • Big ball of Mud *

but in relation to the technical context map patterns, I didn´t find an asynchronous example for example using a Broker. Maybe at BC level, it is not necesary to represent the physical way to communicate 2 BC but I have the impression that:

  • Open Host Service [OHS]
  • Published Language [PL]
  • Anticorruption Layer [ACL]

Are more oriented to blocking communications. In the other hand, if one BC need to send a Domain Event, maybe every BC send a message based on a contract so it is a kind of PL.

image

What is your opinion?

Many thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.