Activity Diagram with repeat and switch-case

0 votes
asked Oct 29 in Question / help by J.B.

Hello!

I try to create a Activity Diagram which should looks like this at the end:


I tried with repeat. switch case and labels. like this:
:Create;
repeat :Discussion;
  switch (Decision)
  case (feedback)
    :Update;
  case  (accept)  
    :Merge;
    goto 1
   case  (denied)
    goto 1
  endswitch
repeat while
label 1
:Close;
:Delete;


But it looks horrible!

How can I create such an activity diagram?

Many thanks in advance for your help!

Regards,
J.B.

4 Answers

0 votes
answered Nov 11 by J.B.

Hello!
No suggestions here? sad

Best regards,
J.B.

0 votes
answered Nov 11 by kirchsth (7,140 points)

Hi J.B.

in your context you could try it with a state diagram (image has a link to the source)

BR Helmut

+1 vote
answered Nov 12 by Bert de Brock

With the successive decisions made explicit (so, more clearly structured):

Plantuml-code used

<style>

activityDiagram {

BackgroundColor #lightblue

}

document {

   BackgroundColor transparent

}

  diamond {

    BackgroundColor #white

  }

</style>

:Create;

repeat

:Discussion;

backward:Update;

repeat while (feedback?) is ( yes)

if () then (accept)

:Merge;

else ( denied)

endif

:Close;

:Delete;

commented Nov 12 by The-Lu (74,900 points)

Here is the corresponding image:

0 votes
answered Nov 12 by J.B.

Hello Helmut and Bert de Brock,

both solutions looks really cool!


Thank you!

...