Activity-Beta : Condition of RepeatWhile multi-lines?

0 votes
asked May 22, 2015 in Wanted features by MAV (460 points)

Hi guys !

Is it possible to have the condition of the REPEATWHILE written on multi-lines as it is possible for the IF? (whitout using '\n')

 

repeat

:Hello world!;

repeatwhile(bool1 is True

AND bool2 is False)

 

possible with the if structure :

if(beginning of

the day)

:say hello!;

else

endif

 result here

Thank you!

 

 

3 Answers

0 votes
answered May 25, 2015 by plantuml (294,960 points)
Good idea!

This has not been very tested, but should be working with last beta:

https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Thanks for the suggestion!
commented May 26, 2015 by MAV (460 points)
Thank you !

Same kind of question : is it possible to have the IS-label of the repeatwhile written on multi-lines?

 repeat
    :Hello world!;
repeatwhile(a==1
and b ==2)is(The condition
is True)
-> The condition
is False;

If it is possible, I would have the same question for the THEN-label of the IF structure =D
commented Jun 13, 2015 by plantuml (294,960 points)
This has been implemented in version 8026.
If you have other request on multi-lines, please post them here.
commented Jun 15, 2015 by MAV (460 points)
Thank you guys!

By the way, the multi-lines is possible with the IF but not with the ELSEIF, is it possible to fix it?
0 votes
answered Jul 2, 2015 by MAV (460 points)
By the way, the multi-lines is possible with the IF but not with the ELSEIF, is it possible to fix it?
commented Jul 2, 2015 by plantuml (294,960 points)
This should be ok in the last beta:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Example:
@startuml
start
if (some test) then (yes)
    :foo1;
elseif (no on
several lines)
    :foo2;
endif
@enduml

Is it ok for you ?
0 votes
answered Aug 20, 2015 by MAV (460 points)

Hi guys,

I have tested the repeatwhile structure with the last version and I have noted some bugs :

Bug 1 : if the condition of the repeatwhile is on several lines, and the label is on only one line : the diagram is generated but contains mistakes. Please see the following plantuml text and the generated diagram here :

@STARTUML
START
REPEAT
:hello world!;
repeatwhile(condition
on several lines)is(TRUE)
->[FALSE];
STOP
@ENDUML

Bug 2 : if the condition of the repeatwhile is written on only one line and the label is written on several lines, an error is generated. Please see the following plantuml text and the generated error here :

@STARTUML
START
REPEAT
:hello world!;
repeatwhile(condition on only one line)is(true or
several lines)
->[FALSE];
STOP
@ENDUML

 

Thank you very much for your support!

commented Aug 25, 2015 by plantuml (294,960 points)
Thanks for the bug report.
This has been fixed in last beta
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Regards,
...