Closed arieltorti closed 2 years ago
even when listing all containers instead of using include *
That should work, for example:
container A {
include A.app A.db B.app B.db
}
Ahhh I see, I was also including the software systems:
container A {
include A B A.app A.db B.app B.db
}
Which resulted in:
On a separate note, is there a way to show relations between software systems in container views ? Take the same example and add a new relation A -> B
, when using the container view it's not displayed:
Generated from:
workspace {
!identifiers hierarchical
model {
A = softwaresystem "A" {
app = container "app"
db = container "db"
}
B = softwaresystem "B" {
app = container "app"
db = container "db"
}
A -> B
}
views {
container A {
include A.app A.db B.app B.db
}
}
}
On a separate note, is there a way to show relations between software systems in container views
No, it's the containers that are the focus of the diagram.
Is the ordering in the include
statement important ?
When switching the order of the elements I get different diagrams:
container A {
include A.app A.db B.app B.db A B
}
Renders:
But when the software systems are at the beginning:
container A {
include A B A.app A.db B.app B.db
}
It renders:
Is that intended ?
Is that intended ?
Yes.
Could we add that to the language reference documentation ?
Explain that ordering matters and how it impacts rendering ?
I have a use case were we can to show to software systems in the container view like so:
I know this is not entirely aligned with the C4 model but it's a use case that I have.
When using container and system landscape views I haven't found a way to make it work, only one of the software systems is expanded, even when listing all containers instead of using
include *
.Is there a workaround to make this work ? I was checking custom views but I haven't found much information about them.
Example DSL:
Actual result:
Expected result: