contextmapper / context-mapper-examples Goto Github PK
View Code? Open in Web Editor NEWContextMapper DSL: Examples
Home Page: https://contextmapper.org/
License: Apache License 2.0
ContextMapper DSL: Examples
Home Page: https://contextmapper.org/
License: Apache License 2.0
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.
I'm just learning about DDD context maps.
Just for learning purposes, I'm trying to model something like this inside a cml document:
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.
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...
The Knowledge Level pattern is not really used in the examples at the moment. Enhance them accordingly.
Hi Stefan et al.,
I've got some issues with the team map example. I copied https://github.com/ContextMapper/context-mapper-examples/blob/master/src/main/cml/insurance-example/Insurance-Example_Team-Map.cml but the result looks like this.
I'm working on Mac OSX with latest VS Code and also tried the Eclipse way, but there I got other issues 😉 .
Responsibility Layers are not really used in the examples at the moment. Enhance them accordingly.
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
:
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:
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.
What is your opinion?
Many thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.