-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
final polishing for version 0.8.3, which will be a release.
first step for pumla_project_config.puml file to be used to have a project-specific override of the pumla_global_cfg.puml file values. first test files to play with C4-PlantUML. Extended installation description.
- Loading branch information
1 parent
dbee3b1
commit 2a69cab
Showing
19 changed files
with
153 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
!$PUMLAVersionNumber = "v0.8.3" | ||
|
||
!include pumla_global_cfg.puml | ||
!include pumla_internal.puml | ||
|
||
|
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
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,19 +1,27 @@ | ||
@startuml | ||
!include modelrepo_json.puml | ||
!include pumla_macros.puml | ||
!$PUMVarShowDescr = %false() | ||
!$PUMVarShowTaggedValues = %true() | ||
!$PUMVarShowInstantiationRel = %true() | ||
!include <c4/C4_Container.puml> | ||
AddElementTag("v1.0", $borderColor="#d73027") | ||
AddElementTag("v1.1", $fontColor="#d73027") | ||
AddElementTag("backup", $fontColor="orange") | ||
|
||
title nice diagram | ||
'AddRelTag("backup", $textColor="orange", $lineColor="orange", $lineStyle = DashedLine()) | ||
|
||
'PUMLASetElementFilterInTagValue("Vendor", "C Ltd.") | ||
Person(user, "Customer", "People that need products") | ||
Person(admin, "Administrator", "People that administrates the products via the new v1.1 components", $tags="v1.1") | ||
Container(spa, "SPA", "angular", "The main interface that the customer interacts with via v1.0", $tags="v1.0") | ||
Container(spaAdmin, "Admin SPA", "angular", "The administrator interface that the customer interacts with via new v1.1", $tags="v1.1") | ||
Container(api, "API", "java", "Handles all business logic (incl. new v1.1 extensions)", $tags="v1.0+v1.1") | ||
ContainerDb(db, "Database", "Microsoft SQL", "Holds product, order and invoice information") | ||
Container(archive, "Archive", "Audit logging", "Stores 5 years", $tags="backup") | ||
|
||
'PUMLAPutAllElementsWithTagValue("Vendor", "C Ltd.") | ||
|
||
'PUMLAPutAllElementsWithTagValue("Vendor", "B Inc.") | ||
|
||
PUMLAPutAllElements() | ||
Rel(user, spa, "Uses", "https") | ||
Rel(spa, api, "Uses", "https") | ||
Rel_R(api, db, "Reads/Writes") | ||
Rel(admin, spaAdmin, "Uses", "https") | ||
Rel(spaAdmin, api, "Uses", "https") | ||
Rel_L(api, archive, "Writes", "messages", $tags="backup") | ||
|
||
user .. spa : huhu | ||
|
||
SHOW_LEGEND() | ||
@enduml |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
!$allelems = {"modelrepopath": "/Users/mvoss/Desktop/git/github/pumla/test/examples/thisShallBeIgnored/c4tests", "modelrepofile": "./modelrepo_json.puml", "elements": []} | ||
|
||
!$allrelations = {"modelrelationrepopath": "/Users/mvoss/Desktop/git/github/pumla/test/examples/thisShallBeIgnored/c4tests", "modelrelationrepofile": "./modelrepo_json.puml", "relations": [{"id": "REL#publicStateToIF", "start": "'(publicState", "end": "temp_dF_tempSensorB", "reltype": "..>", "reltxt": "provides", "path": "./", "filename": "simplePerson.puml"}]} | ||
|
||
!$allconnections = {"modelconnectionrepopath": "/Users/mvoss/Desktop/git/github/pumla/test/examples/thisShallBeIgnored/c4tests", "modelconnectionrepofile": "./modelrepo_json.puml", "connections": []} | ||
|
10 changes: 10 additions & 0 deletions
10
test/examples/thisShallBeIgnored/c4tests/pumla_macros.puml
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
' THIS IS AN AUTOMATICALLY GENERATED FILE BY pumla init | ||
' DO NOT CHANGE MANUALLY! | ||
' TO ADOPT THE PATHS TO YOUR SYSTEM, CALL pumla init AGAIN | ||
' IN THE FOLDER OF THIS FILE HERE! | ||
!include /Users/mvoss/Desktop/git/github/pumla/pumla_macros_global.puml | ||
!include /Users/mvoss/Desktop/git/github/pumla/pumla_tagged_values.puml | ||
|
||
!if %file_exists("/Users/mvoss/Desktop/git/github/pumla/test/examples/thisShallBeIgnored/c4tests/pumla_project_config.puml") | ||
!include pumla_project_config.puml | ||
!endif |
19 changes: 19 additions & 0 deletions
19
test/examples/thisShallBeIgnored/c4tests/simpleC4diagram.puml
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@startuml | ||
!include pumla_macros.puml | ||
!include modelrepo_json.puml | ||
|
||
|
||
!$PUMVarShowDescr = %false() | ||
!$PUMVarShowInterfaces = %false() | ||
!$PUMVarShowBodyInternals = %true() | ||
!$PUMVarShowTaggedValues = %true() | ||
|
||
title Put a re-usable element onto the diagram | ||
|
||
' put the "simpleElement" from the model repository | ||
' onto the diagram | ||
'PUMLAPutElement(simplePerson) | ||
!include simplePerson.puml | ||
|
||
|
||
@enduml |
23 changes: 23 additions & 0 deletions
23
test/examples/thisShallBeIgnored/c4tests/simplePerson.puml
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
'PUMLAMR | ||
@startuml | ||
!include pumla_macros.puml | ||
!include modelrepo_json.puml | ||
!include <c4/C4_Container> | ||
|
||
Person(simplePerson, "Simple Person", "People that need products") { | ||
PUMLAPutTaggedValues(simplePerson) | ||
|
||
!if ($PUMVarShowBodyInternals) | ||
component "internal elements" | ||
!endif | ||
} | ||
|
||
PUMLAAddTaggedValue(simplePerson, "Age", "30-49") | ||
|
||
!if ($PUMVarShowDescr) | ||
note bottom of simplePerson | ||
A person defined as C4 model actor. | ||
end note | ||
!endif | ||
%version() | ||
@enduml |
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
20 changes: 20 additions & 0 deletions
20
test/examples/thisShallBeIgnored/simple/pumla_project_config.puml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
'modify this to how you like it. | ||
|
||
' turn on (true) or off (false) the default | ||
' pumla advertising footer. Can also be | ||
' overwritten in each diagram with own | ||
' footer. | ||
!$PUMVarShowPUMLAFooterNote = %true() | ||
|
||
' turn on (true) or off (false) the | ||
' Error Note generation. With error | ||
' notes you get information about a | ||
' failed pumla command in a red note | ||
' on the diagram. | ||
!$PUMVarShowPUMLAErrorNotes = %true() | ||
|
||
' choose the color of the tagged values | ||
' table. Color names have to be written | ||
' in small letters. | ||
!$PUMColorTaggedValues = orange | ||
|
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