How to transform this to the new activity diagram?

0 votes
asked Aug 9 in Question / help by pihentagy (140 points)

Is there a way to convert this diagram to the new activity diagram type? (Especially the Bugfix step seems problematic for me)

thanks

@startuml
(*) --> "Submit Code"
"Submit Code" --> Review
if "Has No Findings" then
   --> "Commit to Master"
else
   --> Bugfix
   --> "Submit Code"
endif
"Commit to Master" --> (*)
@enduml

1 Answer

+1 vote
answered Aug 9 by Serge Wenger Work (11,800 points)
selected Aug 9 by pihentagy
 
Best answer

Hello,

New syntax is really like code, but there is 2 non well documented keyword to helo you:

@startuml
start
repeat
:Submit Code;
:Review;
backward:Bugfix;
repeat while (Bug) is (yes)
->no;
:Commit to Master;
stop
@enduml

 

or 

@startuml
start
repeat
:Submit Code;
:Review;
if (Bug) Then (no)
  break
else
  : bugFix;
endif
repeat while
:Commit to Master;
stop
@enduml

 

commented Aug 9 by pihentagy (140 points)

Thanks for the answer!

Can I find at least some documentation about them?

What can I have in the backwards clause? (more actions? branches?)

Note, that in the second diagram, there is a dummy choice, so after bugfix, one can direcly commit to master.

commented Aug 12 by Serge Wenger Work (11,800 points)

@startuml
start 
repeat 
:Submit Code; 
:Review; 
if (Bug) Then (no) 
  break 
else 
  : bugFix; 
endif 
repeat while (1== 1?) is (yes)
:Commit to Master; 
stop
@enduml

 

...