Multiple columns in the new Activity Diagram (flow chart)

0 votes
asked Jun 16, 2022 in Wanted features by Mike

I'm trying to use plantuml to create a flow chart.  My current diagram is more than 30 lines long.  This makes a very long and narrow flow chart.

1.  How can I use multiple columns (swimlanes don't work).

for example:

<previous code>

:calculate result

NewColumn

:Output result

<following code>

2.  How can I control what goes on the left or the right

3.  Suggestion:  Add the ability to use different flow chart symbols (output, input, off page, etc.)

1 Answer

0 votes
answered Jun 16, 2022 by The-Lu (64,340 points)

Hello M.,

  • What do you mean with `<previous code>` and `<following code>`?

1/ Here is an attempt:

@startuml
label l1 [
{{
:<previous code>;
:calculate result;
}}
]

label l2 [
{{
:Output result;
:<following code>;
}}
]
@enduml

2/ By definition of separate label, compare:

CodeOutput
@startuml
label l1 [
{{
:a1;
:a2;
}}
]

label l2 [
{{
:b1;
:b2;
}}
]
@enduml
@startuml
label l1 [
{{
:a1;
:a2;
}}

{{
:b1;
:b2;
}}
]
@enduml

3/ See Specification and Description Language (SDL):

If that can help,
Regards,
Th.

...