Activity diagram not produced

0 votes
asked Feb 6, 2017 in Bug by anonymous
Hello,
 
the following example is not translated into activity diagram and display a bug report.
Please any suggestions?
 
 
 
@startuml
skinparam monochrome true
start
:Text ;
repeat
:Text 0;
if (condition A ? ) then (yes)
  :Text 6;
elseif (condition B ? ) then (yes)
  break
else
 :Text7
endif
repeat while (condition C ? )is (yes) not (no)
->
 :Text 8;
stop
@enduml

1 Answer

0 votes
answered Feb 8, 2017 by Serge Wenger Work (16,630 points)

Hello,

This is a bug. You already ask this 2 days ago on the forum. PlantUML is a very good open source product.  "break" is quite new so there is still some bugs. 

I reduce the problem to the minimal (break in elsif of a repeat loop ):

@startuml
start
repeat
if (condition A ? ) then (yes)
  :Text 6;
elseif (condition B ? ) then (yes)
  break
endif
repeat while (condition C ? )is (yes) not (no)
stop
@enduml
 
As workaround (not perfect it is a workaround):
@startuml
skinparam monochrome true
start
:Text ;
repeat
:Text 0;
if (condition A ? ) then (yes)
  :Text 6;
elseif (condition B ? ) then (yes)
  :break;
else
 :Text7;
endif
repeat while (condition C ? )is (yes) not (no)
->
 :Text 8;
stop
@enduml

 

commented Feb 8, 2017 by plantuml (298,440 points)
Thanks for your support Serge :-)

Yes, this feature is still under test, so do not hesitate to post examples that breaks (but only once!)

Anyway, this should be fixed in last beta:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
...