Activity Beta: Arraw text and color problems

0 votes
asked Jan 9, 2015 in Bug by pacheco (380 points)

Hi,

I've playing with the arrow text and color for "Activity beta" and found some bugs:


start

:act1;
-[#blue]->
if (cond1) then (yes)
    :act2;
    -[#red]->ending if;
else (no)
    if (cond2)
         -[#lightblue]->
    else
         -[#darkblue]->
    :act3;
    -[#lightgreen]->ending inner else;
    endif
    -[#darkgreen]->ending outer else;
endif
-[#gray]-> going to end;

stop


http://www.plantuml.com/plantuml/png/NSqn3eCm30NGtQUmr0K61kZMIBr8rI4G4w8YfqhCmEsRa89eCpdMy_zHT120cnwaLT0yBlsyqBEvWnkn6ZoRjaQPYB5QATQ0wMNRgMrCFf19dDWujkX61JH7mefzmNjCLxxulPgTdMIlohjyzIEC3gypoAtNetMxju68J-NC5BQWml9wX5FSd_UB7BxOv6pGQo9eVIRYSue2YEBVy040

 

Note:

  • if you pick a color before and if statement, the true path gets that color too [act1+cond1]
  • arrow ending an if/else gets the color but not the text [act2+act3]
  • some arrows only get partical color [true case of cond2]
  • final arrow before the "stop" don't get the color nor the text

 

There might be more flaws, but I was too lazy to test more combinations :P

1 Answer

0 votes
answered Jan 12, 2015 by plantuml (294,960 points)
selected Jan 13, 2015 by pacheco
 
Best answer
Here is a beta version that should fix reported bugs:

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

There are probably other issues, so do not hesitate to do feeback!

Thanks again,
commented Jan 12, 2015 by anonymous
Seems to be working way better now.
Thank you very much for it
commented Jan 12, 2015 by anonymous
Actually I found another small bug:

-------------
start

:act1;
-[#gray]->    #going to end;
:act2;
-[#green]->#going to end;
:act3;

stop
-------------
http://www.plantuml.com/plantuml/png/Aov9B2hXuh9AJ2unjERIZLPEBqgiZDMrKr1Epy_CIrSeoLT8pKkn1YimWYf8JSq3gi2YmDYQYwku9B-02m00

Note that I start text on the gray arrow with some spaces.
But it still recognizes the text as starting with an "#", so it tries to enumerate it
commented Jan 13, 2015 by plantuml (294,960 points)
Thanks, we've solve this in the new beta:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Regards,
commented Jan 13, 2015 by pacheco (380 points)
From my experiments, it looks completely fixed now.
Thank you for your support :)
commented Jan 14, 2015 by anonymous
There still a little bug. if u write a note before the end line, the next start line will be started with that note.

e.g:
http://www.planttext.com/planttext?text=Aov9B2hXKW02g_JK4iU20iyKQp1NDrevlIYnCbRNJg4uDIVDoaeb4I9PN99Vm0KaaVNv9bOufgS69PPavgNZqfwBeWR3bEBKag3KmjBKufA8t1oyyev5G8CXAW00
commented Jan 14, 2015 by pacheco (380 points)
You are right:
* in the stable version that "arrow text" is only written (wrongly) after the next "start bullet"
* in the beta version it gets in both: in the right place and in the next "start bullet"

Well spot ;)

also, I found some other problems. You can check them here:
http://plantuml.sourceforge.net/qa/?qa=2970/represent-while-over-swimlanes-show-document-review-process&show=2981#c2981

@planutml staff: please have a look into it whenever you can
...