-
-
Notifications
You must be signed in to change notification settings - Fork 318
Closed
Description
Description
We are trying to model complex enterprise landscape using c4 according to the enterprise modelling example, everything works fine except deployment diagrams. When trying to extend deploymentNode the following error occurs:
workspace.dsl: An element/relationship identified by "dataCenter" could not be found
Steps to reproduce
- Define some deploymentEnvironment and deploymentNode in system-catalog.dsl
- Try to !extend deploymentNode from system-catalog in software system workspace
Screenshot
No response
Code sample
// system-catalog.dsl
workspace {
!identifiers hierarchical
model {
customer = person "Customer"
orderService = softwareSystem "Order Service"
invoiceService = softwareSystem "Invoice Service"
customerService = softwareSystem "Customer Service"
live = deploymentEnvironment "Live" {
dataCenter = deploymentNode "Data Center"
}
}
views {
styles {
element "Person" {
shape person
}
}
}
}
// order-service/workspace.dsl
workspace extends ../system-catalog.dsl {
name "Order service"
model {
!extend orderService {
webapp = container "Orders UI"
database = container "Orders Database"
customer -> webapp "Makes orders using"
webapp -> customerService "Manages customer data using" "JSON/HTTPS"
webapp -> database "Reads from and writes to"
}
!extend dataCenter {
softwareSystemInstance orderService
}
}
views {
systemContext orderService "SystemContext" {
include *
autolayout lr
}
container orderService "Containers" {
include *
autolayout lr
}
deployment orderService live {
include *
autolayout lr
}
}
configuration {
scope softwaresystem
}
}
Configuration
No response
Severity
Minor
Priority
I have no budget and there's no rush, please fix this for free
More information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels