How can I create a reference to another plantuml file in Activity Beta Diagram?

0 votes
asked Jul 28, 2021 in Question / help by Bastian
edited Jul 29, 2021
To modularize my diagrams I want to refer to other diagrams. Thus I want to create a reference or a link behind a node element in the activity beta diagram type. When clicking on the node element the linked diagram should open.

How can I do this?

1 Answer

0 votes
answered Aug 18, 2021 by The-Lu (64,760 points)

Hello B.,

For that you can use links and SVG output (which manages natively links), like:

A parent file named "Diagram.puml":

@startuml
start
[[Init.svg]]:Initialisation;
:[[Process.svg Processing]];
stop
@enduml

Then 2 files (on the same folder as the first diagram, for this example) named "Init.puml" :

@startuml
:read config file;
:init internal variable;
@enduml

and "Process.puml"

@startuml
:Action 1;
:Action 2;
@enduml
  1. Export all the diagrams on SVG
  2. then browse the first parent diagram ('Diagram.svg')
  3. and follow the different links to navigate on the other diagrams...
  4. Enjoy...

Ref. :

If that can help,
Regards,
Th.

...