Activity diag whith multiple lanes and a lane between elseif - visualy wrong and broken lines

0 votes
asked Sep 2 in Bug by NS
v1.2021.10 i'm trying to make this working but I can't:

https://plantuml-server.kkeisuke.dev/svg/ZP5DJiCm44RtFiKimGj4WjWa1HfHSGAMtHWoIKVnJsLF44LPSHvEnKcODW5Qr4fiB6lcUs-iyJonYTmxgr97VcsYSL1ZOthBZ_ZAbQNME_GCpt9WL8g9BOBMZ8crNdgb1bYWW0mP36gdKyLJlu4K7FAAV5l-PfQZR500HUZs6f1ByR2qdtt1ICscb2irS5PZMcCoC8Ei-tp_k3kNEjg4szuChgUQYAhQaR_OFKmaMZyij2wWwZb4UZEGoRIHX17DBYVsN-XFA3yHoW_zjpVJWAt_lZe1NOsGhwdvivqsGF375bH4QbTSVbld0ikFVW40.svg

@startuml
skinparam defaultTextAlignment center

title **test**\n

| Depart 1 |
start
:buy something;

| Depart\nment |
  :ok;

| Depart 2 |
:ok;

| Depart\nment |
  :verify;
  if (despesa < 1k€?)
  elseif (< 5k€?)

| Admin. 1 |
  :**FD**: Autoriza 1;

  else if (< 10k€?)
| Admin. 1 |
  :**FD**: Autoriza 1;

| Admin. 2 |
  :**FD**: Autoriza 2;

  else if (>= 10k€)
| CA |
  :**FD**: Autoriza 3;

  endif
| Depart 2 |
:go on;

| Depart\nment |
:right;
| CA |
@enduml

The lines after the ifs are not separated and the lines after the endif are broken.

Can you please help me and see if I´m doing something wrong?

Thank you very much for your time.

Best regards,
NS

1 Answer

0 votes
answered Sep 2 by The-Lu (31,620 points)

Hello N.,

Here is a proposal:

@startuml
skinparam defaultTextAlignment center
title **test**\n
| Depart 1 |
start
:buy something;
| Depart\nment |
  :ok;
| Depart 2 |
:ok;
| Depart\nment |
  :verify;
  if (despesa < 1k€?)
  else
| Admin. 1 |
  if (< 5k€?)
  :**FD**: Autoriza 1;
  else
| Admin. 1 |
if (< 10k€?)
  :**FD**: Autoriza 1;
| Admin. 2 |
  :**FD**: Autoriza 2;
  else
| CA |
 if (>= 10k€)
  :**FD**: Autoriza 3;
  endif
| Depart 2 |
:go on;
| Depart\nment |
:right;
| CA |
@enduml

If that can help, it is not so perfect...
See this wanted feature:


Regards,
Th.

commented Sep 3 by NS
Thank you for your help.

That's right. That will do.

By the way I try with "switch" but it got worse.

Regards,

NS
...