Activity Beta: Colour for other box types (e.g. repeat while)

0 votes
asked Dec 16, 2013 in Wanted features by anonymous
Using the "Activity Beta" syntax, I would like to colour in the text box in:

repeat while (#red:text)

But I can't do that as the syntax is not supported. Not saying this is the correct syntax, but something like it would be useful.

1 Answer

0 votes
answered Jan 9, 2014 by plantuml (295,000 points)

With version V7990, you can use the following syntax:

@startuml
start
:foo1;
:#red:foo2;
#AliceBlue:while (data available?)
  :read data;
  :generate diagrams;
endwhile
#blue:if (graphviz installed?) then (yes)
  :process all\ndiagrams;
else (no)
  :process only
  __sequence__ and __activity__ diagrams;
endif
#DarkCyan:repeat
  :read data;
  :generate diagrams;
repeat while (more data?)
stop
@enduml


What do you think about it ?

 

commented Jan 9, 2014 by anonymous
It looks good and works for me. Slightly confused why standard nodes want to have a : infront of the colour, but branch nodes don't... I'd stick with one or the other unless I'm missing something.
commented Jan 10, 2014 by plantuml (295,000 points)
You're 100% right : let's stick with NOT having : in front of the color.
You can try the beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

@startuml
start
:foo1;
#red:foo2;
#AliceBlue:while (data available?)
  :read data;
  :generate diagrams;
endwhile
#blue:if (graphviz installed?) then (yes)
  :process all\ndiagrams;
else (no)
  :process only
  __sequence__ and __activity__ diagrams;
endif
#DarkCyan:repeat
  :read data;
  :generate diagrams;
repeat while (more data?)
stop
@enduml

Other feedbacks still welcome!
...