Skip to content

Instantly share code, notes, and snippets.

@dotnich-io
Created January 9, 2024 05:12
Show Gist options
  • Save dotnich-io/38ddc4596e4657bbd1d513e49d9ab560 to your computer and use it in GitHub Desktop.
Save dotnich-io/38ddc4596e4657bbd1d513e49d9ab560 to your computer and use it in GitHub Desktop.
context-mapper-cli bug report
import "./domains.cml"
BoundedContext TenancyContext implements Tenancy {
type = FEATURE
domainVisionStatement = "Patients interact with the plaform under the umbrella of a tenancy"
responsibilities = "Tenancy", "Users", "Patients"
knowledgeLevel = CONCRETE
Aggregate TenantManagement {
Entity Tenant {
aggregateRoot
String name
States tenantState
}
enum States {
aggregateLifecycle
ACTIVE,
INACTIVE
}
}
}
BoundedContext AuthenticationContext implements Authentication {
type = FEATURE
domainVisionStatement = "Patients can authenticate themselves"
responsibilities = "Users"
Aggregate UserManagement {
Entity User {
aggregateRoot
String name
List<Device> devices
}
Entity Device {
String name
String platform
}
}
}
BoundedContext SalesTeam {
type = TEAM
}
import "./stories.cml"
Domain Tenancy {
domainVisionStatement = "Everything that relates to *how* and under whose auspices patients interact with the platform"
Subdomain TenantManagement supports ActivateTenant {
type = CORE_DOMAIN
domainVisionStatement = "Everything related to the management of tenants"
}
Subdomain UserManagement supports NewPatientSignUp {
type = CORE_DOMAIN
domainVisionStatement = "Everything related to the management of users within a tenant"
}
Subdomain Authentication supports ExistingPatientSignIn {
type = SUPPORTING_DOMAIN
domainVisionStatement = "Everything related to the authentication of users"
}
}
UserStory ActivateTenant {
As an "Salesperson"
I want to "activate" a "Tenant"
so that "patients can use the platform"
}
UserStory NewPatientSignUp {
As a "Patient"
I want to "signup" a "User" for an "existing Tenant"
I want to "register" a "Device"
I want to "create" a "Session"
so that "I can use the platform with my Device"
}
UserStory ExistingPatientSignIn {
As a "Patient"
I want to "create" a "Session" for an "existing Device"
so that "I can use the platform with that Device"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment