Can Repeat and While be nested in Activity Beta

0 votes
asked Jun 12, 2014 in To be sorted by anonymous
I fail to wrap repeat-repeatwhile around a while-whileend loop. PlantUML tells me it is skipping lines from opening "repeat" to the "endwhile" where it complains "can not find while".

2 Answers

0 votes
answered Jun 12, 2014 by plantuml (298,440 points)
Could you put here a simple non-working example ?

Thanks,
0 votes
answered Jun 12, 2014 by anonymous
Well, I fixed my broken markup as the following code sample shows:

repeat
while (x?) is (yes)
  :A;
endwhile (no)
if (y?) then (yes)
  :B;
endif
repeatwhile (y?)

It seems I lacked a semicolon before the while statement. Sorry I didn't get that.

On the other hand the above is somewhat screwed as I am using the repeat to model a conditional retract to an earlier step in the main process. I feel that having the possibility to set a jump mark and using some kind of goto statement to generate the outer retraction path while leaving the main graph layout intact flowing down from above would make for a better visualisation:

label L
while (x?) is (yes)
  :A;
endwhile (no)
if (y?) then (yes)
  :B;

  goto L

endif
 

Best Regards

Bernd
...