Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Display all relations from/to the software system on container views #311

Unanswered
emredaglikfz asked this question in Q&A
Discussion options

We want to display all relations from/to the software system s2 on the container view of s2. But on this view, we can only see the relations from/to containers of s2.

Is it possible to show all relations from/to the software system s2 on container views?

Thanks for your help 🙏

workspace {
 model {
 user = person "User"
 s1 = softwareSystem "s1" {
 c1 = container "c1"
 }
 s2 = softwareSystem "s2" {
 c2 = container "c2"
 }
 s1 -> s2
 // Or:
 c1 -> s2
 // Or:
 user -> s2
 }
 views {
 container s2 {
 include *
 autoLayout
 }
 }
}

The result is:

image
You must be logged in to vote

Replies: 3 comments 1 reply

Comment options

A container view shows relationships to the containers inside the scoped software system only I'm afraid ... there's no way to show relationships to/from the s2 box.

You must be logged in to vote
0 replies
Comment options

@simonbrowndotje Do you have advices about this ?

In a more slightly more complex example, I can have the following model :

workspace {
 !identifiers hierarchical
 model {
 user = person "User"
 s1 = softwareSystem "s1" {
 c1 = container "c1"
 }
 s2 = softwareSystem "s2" {
 public_api = container "api"
 c2 = container "c2"
 db = container "db"
 }
 user -> s1
 s1.c1 -> s2.db
 s1.c1 -> s2.c2
 }
 views {
 container s1 {
 include *
 autoLayout
 }
 container s2 {
 include *
 autoLayout
 }
 }
}

The rendered views :

image

image

In both rendered views, I can see that systems s1 and s2 are connected to each other but I have no idea how.

In this example, I would prefer that s1 use s2 public api instead of internal containers like a direct connection to the db. But this information in not visible in the views si I might miss this point during an architecture review for example.

How do you handle these use case ?

Note that I like the current view as it allow to a quick understanding of the system used but sometimes would like to have more details 😄

You must be logged in to vote
0 replies
Comment options

I just stumble on this issue #358 that is talking about something similar.

By addind this view, I can se all relationships from s1 containers, it works great

container s1 "x" {
 include element.parent==s1
 include "element.parent==s2 && element==s1.c1->"
 autolayout lr
}

And I see that is documented here : https://docs.structurizr.com/dsl/cookbook/container-view-multiple-software-systems/

I just had to search a little more 😄

You must be logged in to vote
1 reply
Comment options

Good thread. Maybe mark this as an answer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /