structurizr / dsl

Structurizr DSL
https://docs.structurizr.com/dsl
Apache License 2.0
1.41k stars 266 forks source link

Is there a possibility to show container level dependencies between systems #347

Closed shahabganji closed 11 months ago

shahabganji commented 11 months ago

Question

I would like to show the container level dependencies between different systems, without explicitly naming them, is there a possibility to do so?

workspace {

    model {
        sys1 = softwareSystem "Software System 1" {
            container1 = container "Container 1" {
                component1 = component "Component 1"
            }
        }

        sys2 = softwareSystem "Software System 2" {
            container2 = container "Container 2" {
                component2 = component "Component 2"
            }
        }

        component1 -> component2 "Uses"
    }

    views {
        component container1 {
            include component1 component2  //<- here  instead of explicitly adding them, having a wild card or something like sys2.*
            autoLayout
        }
    }

}

The same question also applies for component level view, where automatically show the dependency components from another container (either in the same system or different system)

Thanks!