Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Activity Beta: Arraw text and color problems

0 votes

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

asked Jan 9, 2015 in bug by pacheco (590 points)

1 Answer

0 votes
 
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,
answered Jan 12, 2015 by plantuml (124,290 points)
selected Jan 13, 2015 by pacheco
Seems to be working way better now.
Thank you very much for it
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
Thanks, we've solve this in the new beta:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Regards,
From my experiments, it looks completely fixed now.
Thank you for your support :)
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
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
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...