From 4a04898c0dc9bbef8429fc81b64a39e211ddccd8 Mon Sep 17 00:00:00 2001 From: Saeed Ganji Date: Thu, 19 Oct 2023 14:49:12 +0200 Subject: [PATCH] added extra samples for container level diagrams with dependencies --- .../container-view-multiple-software-systems/index.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dsl/cookbook/container-view-multiple-software-systems/index.md b/dsl/cookbook/container-view-multiple-software-systems/index.md index 44d3bca..5b0febc 100644 --- a/dsl/cookbook/container-view-multiple-software-systems/index.md +++ b/dsl/cookbook/container-view-multiple-software-systems/index.md @@ -78,7 +78,15 @@ and replace the `include` statement with one of the following: - `include element.type==container` - `include element.parent==s1 element.parent==s2` +Or if you just want to see containers from other systens that are only connected to the containers in your software system use the following: + +``` +container CONTAINER_NAME "DIAGRAM_KEY" "DESCRIPTION" { + include "->element.parent==CONTAINER_NAME-> && element.type==Container" +} +``` + ## Links - [DSL language reference - container](/dsl/language#container-view) -- [DSL - Expressions](/dsl/expressions) \ No newline at end of file +- [DSL - Expressions](/dsl/expressions)