Activity diagram : fork in if/then/else branch

0 votes
asked Jul 9 in Question / help by FredF
Hello,

I am working on an activity diagram and I don't know how to set a fork in a "if then else" structure.

I would like to modelize something like :

If condition is true then { fork A and B in //}

Is it possible ?

Regards

1 Answer

0 votes
answered Jul 9 by The-Lu (33,360 points)

Hello F.,

You can use:

@startuml
start

if (condition is true) then (yes)

  fork
    :action A;
  fork again
    :action B;
  end fork

else (no)
  :action C;
endif

stop
@enduml

See also doc.:

If that can help,
Regards,
Th.

...