This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DSL identifiers (if present) will now be loaded when extending a JSON…
… workspace (see #328).
- Loading branch information
1 parent
d609e3f
commit 1af4ce1
Showing
10 changed files
with
96 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,11 @@ | ||
workspace extends workspace.dsl { | ||
name "A new name" | ||
description "A new description" | ||
|
||
model { | ||
softwareSystem = softwareSystem "Software System" { | ||
!ref softwareSystem1 { | ||
webapp = container "Web Application" | ||
} | ||
} | ||
|
||
views { | ||
systemContext softwareSystem "SystemContext" "An example of a System Context diagram." { | ||
include * | ||
autoLayout | ||
} | ||
|
||
styles { | ||
element "Software System" { | ||
background #1168bd | ||
color #ffffff | ||
} | ||
element "Person" { | ||
shape person | ||
background #08427b | ||
color #ffffff | ||
} | ||
} | ||
user -> softwareSystem1 "Uses" | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,11 @@ | ||
workspace extends https://raw.githubusercontent.com/structurizr/dsl/master/src/test/dsl/extend/workspace.dsl { | ||
name "A new name" | ||
description "A new description" | ||
|
||
model { | ||
softwareSystem = softwareSystem "Software System" { | ||
!ref softwareSystem1 { | ||
webapp = container "Web Application" | ||
} | ||
} | ||
|
||
views { | ||
systemContext softwareSystem "SystemContext" "An example of a System Context diagram." { | ||
include * | ||
autoLayout | ||
} | ||
|
||
styles { | ||
element "Software System" { | ||
background #1168bd | ||
color #ffffff | ||
} | ||
element "Person" { | ||
shape person | ||
background #08427b | ||
color #ffffff | ||
} | ||
} | ||
user -> softwareSystem1 "Uses" | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,17 @@ | ||
workspace extends workspace.json { | ||
name "A new name" | ||
description "A new description" | ||
|
||
model { | ||
softwareSystem = softwareSystem "Software System" { | ||
webapp = container "Web Application" | ||
// !ref with DSL identifier | ||
!ref softwareSystem1 { | ||
webapp1 = container "Web Application 1" | ||
} | ||
} | ||
|
||
views { | ||
systemContext softwareSystem "SystemContext" "An example of a System Context diagram." { | ||
include * | ||
autoLayout | ||
// !ref with canonical name | ||
!ref "SoftwareSystem://Software System 1" { | ||
webapp2 = container "Web Application 2" | ||
} | ||
|
||
styles { | ||
element "Software System" { | ||
background #1168bd | ||
color #ffffff | ||
} | ||
element "Person" { | ||
shape person | ||
background #08427b | ||
color #ffffff | ||
} | ||
} | ||
user -> softwareSystem1 "Uses" | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,17 @@ | ||
workspace extends https://raw.githubusercontent.com/structurizr/dsl/master/src/test/dsl/extend/workspace.json { | ||
name "A new name" | ||
description "A new description" | ||
|
||
model { | ||
softwareSystem = softwareSystem "Software System" { | ||
webapp = container "Web Application" | ||
// !ref with DSL identifier | ||
!ref softwareSystem1 { | ||
webapp1 = container "Web Application 1" | ||
} | ||
} | ||
|
||
views { | ||
systemContext softwareSystem "SystemContext" "An example of a System Context diagram." { | ||
include * | ||
autoLayout | ||
// !ref with canonical name | ||
!ref "SoftwareSystem://Software System 1" { | ||
webapp2 = container "Web Application 2" | ||
} | ||
|
||
styles { | ||
element "Software System" { | ||
background #1168bd | ||
color #ffffff | ||
} | ||
element "Person" { | ||
shape person | ||
background #08427b | ||
color #ffffff | ||
} | ||
} | ||
user -> softwareSystem1 "Uses" | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
workspace "Getting Started" "This is a model of my software system." { | ||
workspace { | ||
|
||
model { | ||
user = person "User" "A user of my software system." | ||
softwareSystem = softwareSystem "Software System" "My software system." | ||
|
||
user -> softwareSystem "Uses" | ||
user = person "User" | ||
softwareSystem1 = softwareSystem "Software System 1" | ||
softwareSystem "Software System 2" | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.