Is it possible to draw this flow chart in activity diagram?

0 votes
asked Sep 9 in Question / help by Petty

I want to draw this flow chart with PlantUML. Is it possible?

https://imgur.com/2wX2C0G

How can I achieve [Actoin 1] to [condition B] and [condition C] to [Action 2]?

1 Answer

0 votes
answered Sep 9 by The-Lu (31,200 points)

Hello P.,

Here is a proposal:

@startuml
|Swimlane1|
|Swimlane2|
|Swimlane3|

start
if (Cond A) then (yes)
  |Swimlane1|
  :A1;
else (no)
endif

|Swimlane3|
if (Cond B) then (yes)
  |Swimlane2|
  :A2;
  kill
else (no)
    if (Cond C) then (yes)
'    |Swimlane2|
    :A2;
    kill
  else (no)
  endif
endif
|Swimlane3|
end
@enduml

Unfortunately, there are 2 Actions 2!

And the hint (use of  'goto', ...) from:

is not yet possible on Swimlane...

If that can help,
Regards.

...