How add two saperate activity diagrams on a single UML file to generate a single .PNG file

0 votes
asked Aug 11 in Question / help by Gil

Hi,

I wish to generate a single .PNG file that contains two separate activity diagrams.

Is it possible?

I tried the below but it connects the diagrams together:

@startuml
group
if (condition_1 ?) then (YES)
  :bla;
endif
endgroup
@enduml

@startuml
group
if (condition_2 ?) then (YES)
  :bla;
endif
endgroup

@enduml

Thanks !

Gil

1 Answer

0 votes
answered Aug 11 by The-Lu (49,760 points)

Hello G.,

You can see, among other things:

Then, here is an example, with sub-diagram:

@startuml
label l1 [
{{
group
if (condition_1 ?) then (YES)
  :bla;
endif
endgroup
}}
]

label l2 [
{{
group
if (condition_2 ?) then (YES)
  :bla;
endif
endgroup
}}
]
@enduml

Regards.

...