Skip to content

Commit

Permalink
resolves #50
Browse files Browse the repository at this point in the history
the issue occured due to changed behaviour in the included C4_Dynamic.puml. when dynamic is included, the enumeration of interactions is done automatically. therefore, the use of the C4_Dynamic is now configurable in the pumla_project_config.puml and the pumla_global_cfg.puml. per default it is deactivated to make sure that the original behaviour is recreated.
  • Loading branch information
DrMarkusVoss committed Jan 1, 2025
1 parent 26dfc7b commit 526533e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
7 changes: 7 additions & 0 deletions pumla_global_cfg.puml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@
' the user. Therefore, default is false.
!$PUMUseC4Model = %false()

' choose whether to use the dynamic
' extension for C4 model or not.
' This leads to enumerated (automatically
' numbered) interactions (e.g. number before
' interaction description).
!$PUMC4UseDynamicExt = %false()

4 changes: 3 additions & 1 deletion pumla_macros_c4int.puml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
!include <c4/C4_Container.puml>
!include <c4/C4_Component.puml>
!include <c4/C4_Deployment.puml>
!include <c4/C4_Dynamic.puml>
!if ($PUMC4UseDynamicExt)
!include <c4/C4_Dynamic.puml>
!endif


!unquoted procedure PUMLAC4Person($alias, $label, $descr="", $sprite="", $tags="", $link="")
Expand Down
6 changes: 6 additions & 0 deletions test/examples/C4example/pumla_project_config.puml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@
' the user.
!$PUMUseC4Model = %true()

' choose whether to use the dynamic
' extension for C4 model or not.
' This leads to enumerated (automatically
' numbered) interactions (e.g. number before
' interaction description).
!$PUMC4UseDynamicExt = %false()
1 change: 1 addition & 0 deletions test/examples/WeatherStation/plantuml_example.puml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
!$cnt = 0
!$cnt = $cnt + 1
[$cnt]
component tralalala

rectangle "heloo" <<huhu>> as helo
!$strcomp = "[HEEEELLLOOOO]"
Expand Down

0 comments on commit 526533e

Please sign in to comment.